1. Not finding help here? Sign up for a free 30min tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Gaussian Form Integration

  1. Jan 6, 2008 #1
    [SOLVED] Gaussian Form Integration

    1. The problem statement, all variables and given/known data


    I'm trying to do the last part.

    2. Relevant equations

    Stated in the question.

    3. The attempt at a solution

    For (iii) i know the probability density is:

    [tex]A^2e^{- \frac{x^2}{\sigma ^2}}[/tex]

    Edit: Deleted my first attempt which i'm pretty sure was wrong and I tried using integration by parts which looked quite promising:

    The integral i'm trying to do is:

    [tex]\int_{0}^{\sigma} A^2e^{- \frac{x^2}{\sigma ^2}} dx [/tex]

    (Take the [tex]A^2[/tex] out for now)

    Which i can split into:

    [tex]A^2\int_{0}^{\sigma} e^{- \frac{x^2}{2\sigma ^2}} e^{- \frac{x^2}{2\sigma ^2}} dx [/tex]

    Let u = [tex]e^{- \frac{x^2}{2\sigma ^2}}[/tex] and dv = [tex]e^{- \frac{x^2}{2\sigma ^2}}[/tex]

    then du = [tex]-\frac{x}{\sigma ^2}e^{- \frac{x^2}{2\sigma ^2}} dx [/tex] and v = [tex](0.68) \sqrt{2\pi} \sigma[/tex]

    Using [tex]\int udv = uv - \int vdu[/tex] The integral becomes:

    [tex]\left[e^{- \frac{x^2}{2\sigma ^2}}(0.68) \sqrt{2\pi}\sigma \right]_{0}^{\sigma}[/tex] - [tex](0.68) \sqrt{2\pi} \sigma \int_{0}^{\sigma} -\frac{x}{\sigma ^2}e^{- \frac{x^2}{2\sigma ^2}} dx [/tex]

    = [tex]\left[e^{- \frac{x^2}{2\sigma ^2}}(0.68) \sqrt{2\pi} \sigma\right]_{0}^{\sigma}[/tex] - [tex]\left[e^{- \frac{x^2}{2\sigma ^2}}(0.68) \sqrt{2\pi} \sigma\right]_{0}^{\sigma}[/tex]

    Which i think = 0 and then multiplied by [tex]A^2[/tex] still = 0

    Is this right?


    Edit 2: Woops i put xs instead of es that was probably really confusing to anyone who read this before my edit, sorry!

    Edit 3: Actually when i think about the graph for this which would generally be a gaussian shape and it wants me to integrate or find the area between 0 and [tex]\sigma[/tex] i don't see how the result can be 0, i think i might have went wrong somewhere but i can't see where.

    Edit 4: Ok i just found these answers in a different paper apparently:

    [tex]\int_{0}^{\sigma} e^{- \frac{x^2}{\sigma ^2}} dx = (0.421)\sigma \sqrt{\pi} [/tex]


    [tex]\int_{-\infty}^{\infty} e^{- \frac{x^2}{\sigma ^2}} dx = \sigma \sqrt{\pi} [/tex]

    From this i can see that the probability of finding the particle is 0.421 but why didn't my integration work? How would i work this out without this knowledge?
    Last edited: Jan 6, 2008
  2. jcsd
  3. Jan 6, 2008 #2


    User Avatar
    Science Advisor
    Homework Helper

    Great. You found it. You can't figure that out by integrating by parts like that. You do it by changing variables so the integrand becomes exp(-t^2), so in this case t=x/sigma. Once you have done that, you STILL can't do the integral but the function, integral from 0 to x of (2/sqrt(pi))exp(-t^2) is a standard function called erf(x). You can find tables of it or you may find it on your calculator. In your case the 0.421 is erf(1)/2. BTW, I think the two integrals given in your hint are both off by a factor of two.
    Last edited: Jan 6, 2008
  4. Jan 7, 2008 #3
    Thanks for the help Dick,

    I've never come across the erf() function before but i understand what it is now, apparently my calculator isn't that good :P (unless perhaps it has a different name i couldn't see any "erf" button) mathcad can probably do it though or i could find some tables like you say.

    Which integrals are you talking about by the way? I'm sure the ones i copied down are correct.

    Also both these questions are exactly the same (same marks, same wording) the only difference is one has [tex]2\sigma ^2[/tex] whereas the other has [tex]\sigma ^2[/tex] yet the methods seem to be completely different? I mean with this the ratio would give me an answer of 0.68/2 = 0.34 but this is for the [tex]2\sigma ^2[/tex] function and therefore not at all helpful?

    I guess what i'm trying to ask is with the question i originally posted can i use those integrals given to me in any useful way? Or is the erf() function the only way to go about this?
    Last edited: Jan 7, 2008
  5. Jan 7, 2008 #4


    User Avatar
    Science Advisor
    Homework Helper

    The integrals you were given in the problem were not the integrals you needed to do the problem (as you know). And you would compute them the same way as you would the other one. For the first one, I get erf(1/sqrt(2))/2 times the sqrt(2*pi)*s. That numerical erf part comes out to 0.34 - not 0.68. So they aren't only the wrong integrals, they aren't even correct. It's a pretty sloppy problem.
    Last edited: Jan 7, 2008
  6. Jan 7, 2008 #5
    Thanks again for the help, that's cleared things up for me.
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?

Similar Discussions: Gaussian Form Integration
  1. Gaussian Integral (Replies: 1)