Help with integral of a gaussian function

maxtor101
Messages
22
Reaction score
0
Hi all!

I'm curious as to how one would go about actually computing this integral

\int_0^\pi \exp(\frac{-x^2}{2c^2})\sin(\frac{m\pi x}{2}) dx

I start off by using integration by parts but I am unsure how to solve this integral

v = \int_0^\pi \exp(\frac{-x^2}{2c^2}) dx

Any help would be greatly appreciated
Max
 
Mathematics news on Phys.org
Note that \intexp(-ax^{2})dx x \intexp(-ay^{2})dy = \int\intexp{-a[x^{2}+y^{2}]}dxdy.

Then change to polar coordinates.
 
Note that a lot of integrals of that form (including the normal probability density function) don't have solutions in closed form.
 
grzz said:
Note that \intexp(-ax^{2})dx x \intexp(-ay^{2})dy = \int\intexp{-a[x^{2}+y^{2}]}dxdy.

Then change to polar coordinates.

I don't think the OP is doing the integral you think he's doing.

maxtor101 said:
Hi all!

I'm curious as to how one would go about actually computing this integral

\int_0^\pi \exp(\frac{-x^2}{2c^2})\sin(\frac{m\pi x}{2}) dx

I start off by using integration by parts but I am unsure how to solve this integral

v = \int_0^\pi \exp(\frac{-x^2}{2c^2}) dx

Any help would be greatly appreciated
Max

You're not really going to have much luck with that integral. Without the sine, the integral can only be expressed in terms of the error function, but the error function is defined by

\mbox{erf}(x) = \frac{2}{\sqrt{\pi}} \int_0^x dt~e^{-t^2},

so you haven't gained much except that you know you can express it as the error function, which mathematica, matlab, etc., have code to compute.

If you through the sine back in there, that just makes it worse. wolframalpha calculates the integral in terms of functions related to the error function. I imagine the way it does this is to use Euler's identity and write

\sin x = \frac{e^{ix}-e^{-ix}}{2i},

and then complete the square in the exponential, but there's some trickiness associated with that because you'll be introducing imaginary numbers into the limits of the integral. That's not really a problem if you know contour integrals and complex analysis, but if you don't writing the integral that way isn't really going to help you much.
 
Insights auto threads is broken atm, so I'm manually creating these for new Insight articles. In Dirac’s Principles of Quantum Mechanics published in 1930 he introduced a “convenient notation” he referred to as a “delta function” which he treated as a continuum analog to the discrete Kronecker delta. The Kronecker delta is simply the indexed components of the identity operator in matrix algebra Source: https://www.physicsforums.com/insights/what-exactly-is-diracs-delta-function/ by...
Fermat's Last Theorem has long been one of the most famous mathematical problems, and is now one of the most famous theorems. It simply states that the equation $$ a^n+b^n=c^n $$ has no solutions with positive integers if ##n>2.## It was named after Pierre de Fermat (1607-1665). The problem itself stems from the book Arithmetica by Diophantus of Alexandria. It gained popularity because Fermat noted in his copy "Cubum autem in duos cubos, aut quadratoquadratum in duos quadratoquadratos, et...
Thread 'Imaginary Pythagorus'
I posted this in the Lame Math thread, but it's got me thinking. Is there any validity to this? Or is it really just a mathematical trick? Naively, I see that i2 + plus 12 does equal zero2. But does this have a meaning? I know one can treat the imaginary number line as just another axis like the reals, but does that mean this does represent a triangle in the complex plane with a hypotenuse of length zero? Ibix offered a rendering of the diagram using what I assume is matrix* notation...
Back
Top