Somewhat related issues relating the the use of the Dirac delta function have
been discussed on the forum already. I have posted a number of times on these
are other threads. Here's a sample of what was discussed - I am sure you
can pick up some ideas here.