Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2007
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2007

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

Search the Archive

Integral of Piecewise function involving DiracDelta

  • To: mathgroup at smc.vnet.net
  • Subject: [mg74769] Integral of Piecewise function involving DiracDelta
  • From: "Andrew Moylan" <andrew.j.moylan at gmail.com>
  • Date: Wed, 4 Apr 2007 04:09:41 -0400 (EDT)

Here is an integral that I expect Mathematica to evaluate to 1:

Integrate[Piecewise[{{DiracDelta[x], -1 < x < 1}}, 0],
  {x, -Infinity, Infinity}]

However, Mathematica 5.2 (Windows) gives the answer as 0. Here's a
similar integral that I also expect to evaluate to 1:

Integrate[Piecewise[{{DiracDelta[x-1/2], -1 < x < 1}}, 0],
  {x, -Infinity, Infinity}]

For this integral, Mathematica doesn't return 0. It returns the
following:

Integrate[Piecewise[{{2*DiracDelta[-1 + 2*x], -1 < x < 1}},
  0], {x, -Infinity, Infinity}]

Can anyone help me understand what's happening here?

Cheers,

Andrew



  • Prev by Date: Drawing a 3D representation of complex Fermat curve x^n + y^n = 1
  • Next by Date: Re: Timing in Mathematica
  • Previous by thread: Re: Drawing a 3D representation of complex Fermat curve x^n + y^n = 1
  • Next by thread: Re: Integral of Piecewise function involving DiracDelta