Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.
 Integrate[DiracDelta[a + k] DiracDelta[-b + k], {k, -\[Infinity], \[Infinity]}]
 (*DiracDelta[a + b]*)

This works fine.

But

 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
1  
@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

1 Answer 1

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

 
discard

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.