MathGroup Archive 1998

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Bug in Calculus`DiracDelta`

  • To: mathgroup at
  • Subject: [mg14821] Re: Bug in Calculus`DiracDelta`
  • From: "W. K. Bertram" <wkb at>
  • Date: Wed, 18 Nov 1998 01:29:27 -0500
  • Organization: Australian Nuclear Science and Technology Organisation
  • References: <72je71$>
  • Sender: owner-wri-mathgroup at

M. Rommel wrote:

> I know normally "it's the user, stupid!" but this one seems real.
> In[1]:=    <<Calculus`DiracDelta`
> In[2]:=    Integrate[DiracDelta[Cos[x]],{x,0,\[Pi]}]
> Out[2]=  1
> That's what I agree with but the next line I cannot:
> In[3]:=    Integrate[DiracDelta[Cos[x]],{x,\[Pi],2\[Pi]}]
> Out[3]=  0
> Any comments/insights/etc. pp.?

The second result is certainly wrong! I have always been told to be very
with expressions containing delta functions. As a result I would always
an integral such as the one above by making the argument of the delta
function the
variableof integration. Therefore, making the substitution,

   u = Cos[x]

you would instead evaluate

 Integrate[Sqrt[1-u^2] DiracDelta[u],{u, Cos[Pi], Cos[2Pi]}]

and this gives the correct result for all  limits of integration.

  • Prev by Date: Re: Simplify
  • Next by Date: Re: Permutations.
  • Previous by thread: Re: Bug in Calculus`DiracDelta`
  • Next by thread: RE: Re: Bug in Calculus`DiracDelta`