Mathematica Stack Exchange is a question and answer site for users of Mathematica. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top
 Integrate[DiracDelta[a + k] DiracDelta[-b + k], {k, -\[Infinity], \[Infinity]}]
 (*DiracDelta[a + b]*)

This works fine.


 Integrate[k DiracDelta[a + k] DiracDelta[-b + k], {k, -\[Infinity], \[Infinity]}]

does not give the expected b DiracDelta[a + b].

Why not? How can it be fixed?

share|improve this question
@NasserM.Abbasi The two answers are completely equivalent. – Jens Dec 11 '12 at 0:16
Looking at the possible issues in the DiracDelta documentation, there doesn't seem to be a definitive reason for this behavior. But at least a further integration will work correctly: Assuming[a\[Element]Reals,Integrate[k DiracDelta[a+k] DiracDelta[-b+k],{k,-\[Infinity],\[Infinity]},{b,-\[Infinity],\[Infinity]}]] yields -a. – Jens Dec 11 '12 at 0:25

It seems similar to this and you can use the workaround :

Integrate[k f[a + k] DiracDelta[-b + k], {k, -\[Infinity], \[Infinity]},      
    Assumptions -> {{a, b} \[Element] Reals}] /. f -> DiracDelta

(* b DiracDelta[a + b] *)
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.