Finding ⟨x⟩ for a Gaussian: can integration by parts work?

  • Thread starter Thread starter PICsmith
  • Start date Start date
  • Tags Tags
    Integral
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
10 replies · 2K views
PICsmith
Messages
54
Reaction score
0
This should be a fairly simple integral but I can't get it for some reason. Here's the problem:
[tex]A\int_{-\infty}^{\infty} x e^{-\lambda(x-a)^2}dx[/tex]
Now I know that
[tex]\int_{-\infty}^{\infty} e^{-x^2}dx=\sqrt{\pi}[/tex]
only for those limits.
Okay so I do parts,
[tex]u=x[/tex]
[tex]du=dx[/tex]
[tex]dv=e^{-\lambda(x-a)^2}dx[/tex]
[tex]v=?[/tex]
When you evaluate the integral from dv to get v, you substitue say
[tex]s=\sqrt{\lambda}(x-a)[/tex]
to make it like the second integral i put down, but you can't evaluate it between the limits of -infinity to infinity when doing parts right? And the indefinite integral of this form is not solvable as far as I know.

BTW, This is for my QM class, finding the average/expectation value of x,
[tex]<x>[/tex]

Am I even going about this the right way? I don't know anymore. Please tell me where I screwed up and point me in the right direction. :cry:
 
Physics news on Phys.org
Here's a hint :

[tex]\frac{d}{dx}e^{-x^2} = -2xe^{-x^2}[/tex]

Use a substitution to get the integrand to a form like the above. You'll still have a term that needs the error function, but you already know how to handle that.
 
Awesome, I got it!
Much thanks Curious :D
 
doh!

I'm stuck again

Okay, so I found <x> and now I have to find <x^2>, which gives,
[tex]A\int_{-\infty}^{\infty} x^2 e^{-\lambda(x-a)^2}dx[/tex]
I made the same substitution that I made last time, namely,
[tex]u=\sqrt{\lambda}(x-a)[/tex]
which gives me a error function term that just equals [tex]\sqrt{\pi}[/tex], a term that goes to zero and another term that is,
[tex]\int_{-\infty}^{\infty}u^2e^{-u^2}du[/tex]
and I'm having trouble solving this now.

Is there another substitution that I should have made initially? I couldn't find one. I swear this is the last time I'll need help :biggrin:. Any help is greatly appreciated.
 
HerrSchlauberger said:
[tex]\int_{-\infty}^{\infty}u^2e^{-u^2}du[/tex]
and I'm having trouble solving this now.

Is there another substitution that I should have made initially? I couldn't find one. I swear this is the last time I'll need help :biggrin:. Any help is greatly appreciated.

You can solve the above integral using integration by parts.
 
for an equation of form:

[tex]\int_{-\infty}^{\infty}x^2e^{-x^2}dx[/tex]

do integration by parts with

[tex]u=x[/tex]
[tex]dv=xe^{-x^2}dx[/tex]
 
Geez how could I not see that? Thanks for spending your 300th post helping me out learningphysics! And thanks to you too FulhamFan3.
 
I hope your first integral was zero... :rolleyes: As u had to integrate the odd function on a symmetric interval wrt to the origin...

Daniel.


P.S.The Cauchy principal value...
 
dextercioby said:
I hope your first integral was zero... :rolleyes: As u had to integrate the odd function on a symmetric interval wrt to the origin...

I forget to mention that lambda and a are positive real constants (and A = sqrt(lambda/pi)), so the function is symmetric about x=a not the origin, and the first integral turns out to be just <x> = a, and the second one <x^2> = a^2 + 1/(2*lambda) (for anyone who's interested).
 
Yes,you're right,it's not symmetric wrt 0...I should have looked better...

Good thing you finally pulled them through.

Daniel.