Integration of a gaussian function

In summary, the conversation was about a particular integral that came up in quantum mechanics homework and the struggle to compute it. A clever trick was suggested to break the integral into two parts, with the first part being solvable by u-substitution and the second part being a constant. After some confusion and further discussion, it was realized that the integral identity found online needed to have the constant in front of the integral applied. This led to the solution being equivalent to the one derived earlier with help.
  • #1
JHans
36
0
Hey, all. I need help computing a particular integral that's come up in my quantum mechanics homework (Griffith 1.3 for anyone who's interested). It involves integration of a gaussian function:

[tex]\sqrt{\frac{\lambda}{\pi}}\int_{-\infty}^{+\infty} \! {x}{e^{{-\lambda}{(x-a)^2}}} \, dx[/tex]

Where [tex]\lambda[/tex] and [tex]a[/tex] are positive real constants.


For the life of me I cannot figure out how to compute that integral... u-substitution doesn't seem to be an option, and integration by parts just makes things more confusing. Can someone please help me?
 
Physics news on Phys.org
  • #2
JHans said:
Hey, all. I need help computing a particular integral that's come up in my quantum mechanics homework (Griffith 1.3 for anyone who's interested). It involves integration of a gaussian function:

[tex]\sqrt{\frac{\lambda}{\pi}}\int_{-\infty}^{+\infty} \! {x}{e^{{-\lambda}{(x-a)^2}}} \, dx[/tex]

Where [tex]\lambda[/tex] and [tex]a[/tex] are positive real constants.


For the life of me I cannot figure out how to compute that integral... u-substitution doesn't seem to be an option, and integration by parts just makes things more confusing. Can someone please help me?

You could do it easily if you had

[tex]\sqrt{\frac{\lambda}{\pi}}\int_{-\infty}^{+\infty} \! {(x-a)}{e^{{-\lambda}{(x-a)^2}}} \, dx[/tex]
right? Because then it would be a simple substitution. So write

[tex]\sqrt{\frac{\lambda}{\pi}}\int_{-\infty}^{+\infty} \! {x}{e^{{-\lambda}{(x-a)^2}}} \, dx = \sqrt{\frac{\lambda}{\pi}}\int_{-\infty}^{+\infty} \! {(x-a)}{e^{{-\lambda}{(x-a)^2}}} \, dx + \sqrt{\frac{\lambda}{\pi}}\int_{-\infty}^{+\infty} \! {a}{e^{{-\lambda}{(x-a)^2}}} \, dx[/tex]
and think about how to do the second piece. It should look familiar.
 
  • #3
I hadn't thought of that! That's a clever trick. Am I correct in thinking the second integral simplifies to:

[tex]{\sqrt{\frac{\lambda}{\pi}}\int_{-\infty}^{+\infty} \! {a}{e^{{-\lambda}{(x-a)^2}}} \, dx}={a}[/tex]

And so the integral:


[tex]\sqrt{\frac{\lambda}{\pi}}\int_{-\infty}^{+\infty} \! {x}{e^{{-\lambda}{(x-a)^2}}} \, dx[/tex]

is simply the first integral you wrote down (solvable by u-substitution) + a?
 
  • #4
JHans said:
[tex]{\sqrt{\frac{\lambda}{\pi}}\int_{-\infty}^{+\infty} \! {a}{e^{{-\lambda}{(x-a)^2}}} \, dx}={a}[/tex]

How did you obtain a from that? I'm not saying that's wrong, but you need to show how you got it.
 
  • #5
I'm sorry! Here's the process I went through:

[tex]{\sqrt{\frac{\lambda}{\pi}}\int_{-\infty}^{+\infty} \! {a}{e^{{-\lambda}{(x-a)^2}}} \, dx}[/tex]

Because a is a constant, it can be taken out of the integral:

[tex]{{a}\sqrt{\frac{\lambda}{\pi}}\int_{-\infty}^{+\infty} \! {e^{{-\lambda}{(x-a)^2}}} \, dx}[/tex]

Then I performed a u-substitution:

[tex]{u ={x-a}},{du = dx}[/tex]

[tex]{{a}\sqrt{\frac{\lambda}{\pi}}\int_{-\infty}^{+\infty} \! {e^{{-\lambda}{u^2}}} \, du}[/tex]

I then used a second u-substitution:

[tex]{v = {\sqrt{\lambda}u}}, {\frac{dv}{\sqrt{\lambda}} = du}[/tex]

[tex]{{a}\sqrt{\frac{1}{\pi}}\int_{-\infty}^{+\infty} \! {e^{{-\lambda}{v^2}}} \, dv}[/tex]


The integral is the well-known Gaussian integral:

[tex]{\int_{-\infty}^{+\infty} \! {e^{{-\lambda}{v^2}}} \, dv}={\sqrt{\pi}}[/tex]

And so I have:

[tex]{{a}{\sqrt{\frac{1}{\pi}}}\sqrt{\pi}}={a}[/tex]
 
  • #6
Now I'm a bit confused, though... I came across an integral on Wikipedia's list of integrals for exponential functions, and they have this:

[tex]\int_{-\infty}^{\infty} \! {x}{e^{-a{(x-b)^2}}} \ dx={b\sqrt{\frac{\pi}{a}}}[/tex]

How does the integral we've broken into two parts become that?
 
  • #7
Is anyone able to help? This is seriously stumping me.
 
  • #8
JHans said:
Is anyone able to help? This is seriously stumping me.

You have already been given a complete solution, but it does require some final work on your part.RGV
 
Last edited:
  • #9
I'm sorry, but I'm having difficulty "seeing" this complete solution and how to work it.

I understand what was said earlier, that:

[tex]{\sqrt{\frac{\lambda}{\pi}} \int_{-\infty}^{+\infty} \! {x}{e^{-\lambda{(x-a)^2}}} \ dx} = {\sqrt{\frac{\lambda}{\pi}} \int_{-\infty}^{+\infty} \! {(x-a)}{e^{-\lambda{(x-a)^2}}} \ dx} + {\sqrt{\frac{\lambda}{\pi}} \int_{-\infty}^{+\infty} \! {a}{e^{-\lambda{(x-a)^2}}} \ dx}[/tex]

It seems to me that the first integral is solvable by u-substitution:

[tex]{u=(x-a)}, {du=dx}[/tex]
[tex]{\sqrt{\frac{\lambda}{\pi}} \int_{-\infty}^{+\infty} \! {(x-a)}{e^{-\lambda{(x-a)^2}}} \ dx} = {\sqrt{\frac{\lambda}{\pi}} \int_{-\infty}^{+\infty} \! {u}{e^{-\lambda{u^2}}} \ dx}[/tex]

The antiderivative of that integral is:
[tex]\frac{-e^{-\lambda{u^2}}}{2\lambda}[/tex]

Evaluating that antiderivative at the limits of negative and positive infinity seems to yield 0.

Meanwhile, as I've shown about, the second integral can be solved by two round of u-substitution, yielding the constant a. Altogether, then:

[tex]{\sqrt{\frac{\lambda}{\pi}} \int_{-\infty}^{+\infty} \! {x}{e^{-\lambda{(x-a)^2}}} \ dx}=a[/tex]

However, that doesn't mesh with the definite integral identity I found online (shown in an earlier reply). Have I gone awry somewhere in my calculations, or is the identity I found incorrect?

EDIT: Nevermind... I realized that in examining the integral identity I found in an integral table, I'd been neglecting to apply the constant in front of the integral. Once I did that, it all clicked and became equivalent to the answer I derived (with help) above. Thank you all so much. I apologize for being a bit dense toward the end.
 
Last edited:

FAQ: Integration of a gaussian function

What is a gaussian function?

A gaussian function, also known as a normal distribution, is a mathematical function that describes the probability distribution of a continuous random variable. It is often used in statistics and data analysis.

How do you integrate a gaussian function?

The integration of a gaussian function can be done using various methods such as substitution, integration by parts, or by using the properties of definite integrals. It is a standard technique in calculus and can be solved using software or by hand.

What is the purpose of integrating a gaussian function?

The integration of a gaussian function allows us to calculate the area under the curve, which represents the probability of a certain event occurring. This is useful in statistical analysis and can also help in solving various real-world problems.

Are there any special techniques for integrating a gaussian function?

Yes, there are special techniques such as the Gaussian quadrature method, which uses a weighted sum of function values at specific points to approximate the integral. This method is commonly used when the limits of integration are infinite.

Can a gaussian function be integrated using calculus?

Yes, a gaussian function can be integrated using calculus. It is a standard technique taught in calculus courses and is used in various fields such as physics, engineering, and economics.

Similar threads

Replies
47
Views
3K
Replies
7
Views
1K
Replies
9
Views
2K
Replies
3
Views
1K
Replies
4
Views
2K
Replies
4
Views
2K
Replies
5
Views
1K
Back
Top