Varaiance of Normal Distribution

Click For Summary

Discussion Overview

The discussion revolves around the calculation of the variance of the normal distribution through the evaluation of a specific integral involving integration by parts. Participants explore different approaches to solving the integral and express confusion regarding discrepancies in their results.

Discussion Character

  • Technical explanation
  • Mathematical reasoning
  • Debate/contested

Main Points Raised

  • One participant presents an integral to find the variance of the normal distribution and attempts to solve it using integration by parts, leading to confusion over a factor of 2 in the result.
  • Another participant questions the initial setup of the integration by parts, suggesting that the integral of xe^(-x^2/2) is misrepresented.
  • A participant describes their own method using integration by parts with u=x^2 and expresses uncertainty about why their result differs from the expected answer.
  • There is a suggestion that using u=x and dv/dx=x*exp(-x^2/2) leads to the correct answer, while the other method does not yield the same result.
  • Some participants point out potential errors in the differentiation of the chosen functions in the integration by parts process, indicating that the anti-derivative of e^(-x^2/2) does not have an elementary form.

Areas of Agreement / Disagreement

Participants express differing views on the correct approach to the integral, with no consensus reached on why the factor of 2 appears in some calculations but not others. The discussion remains unresolved regarding the correct application of integration by parts in this context.

Contextual Notes

Participants note that the integral of e^(-x^2/2) does not have an elementary anti-derivative, which may affect the validity of certain approaches. There are also mentions of limits and the behavior of terms as they approach infinity, which are not fully resolved.

Bazman
Messages
20
Reaction score
0
When solving for the variance of the normal distribution one needs to evaluate the following integral:

INT(-infinfity to infinity)[x^2*e^(-x^2/2).dx]

I proceed using integration by parts:

[-x.e^(-x^2/2)|(infin to -infin) + INT(-infin to infin) 2*e(-x^2/2)dx]

However apparently correct answer is:

[-x.e^(-x^2/2)|(infin to -infin) + INT(-infin to infin) e(-x^2/2)dx]

but I don't see how the 2 cancels?
 
Last edited:
Physics news on Phys.org
The integral of xe^(-x^2)/2) is xe^(-x^2)/2), while the derivative of x is 1. I don't see where you got the 2 from.
 
Hi, thanks:

First I'll take you through what I did before I follow your solution through fully:

When I tried to solve the following integral:

INT(-infinfity to infinity)[x^2*e^(-x^2/2).dx]

To solve using integration by parts: INT uv` = uv - INT u'v
I take u=x^2
u`=2*x

v`=e^(-x^2/2)
v =-(e^(-x^2/2))/x

hence

INT(-infinfity to infinity)[x^2*e^(-x^2/2).dx]

= x^2*-(e^(-x^2/2))/x|(inf -inf) - INT(inf - inf) (2*x)*-(e^(-x^2/2))/x

= x*-(e^(-x^2/2))|(inf -inf) + INT|(inf -inf) (2)*(e^(-x^2/2))

clearly first term equates to 0

INT|(inf -inf) (2)*(e^(-x^2/2))
=2*INT|(inf -inf) (e^(-x^2/2))

I know that INT|(inf -inf) (e^(-x^2/2)) = SQRT(2pi).
so I get final answer of 2*SQRT(2pi) but the correct answer is SQRT(2pi)






It seems from the above you wish to take:

u=x
u`=1

v`=x.e^(-x^2/2)
v =-e^(-x^2/2)

correct?

In which case:

INT(-infinfity to infinity)[x^2*e^(-x^2/2).dx]

= x*-(e^(-x^2/2))|(inf -inf) - INT(inf - inf) (1)*-(e^(-x^2/2))

= x*-(e^(-x^2/2))|(inf -inf) + INT|(inf -inf) (1)*(e^(-x^2/2))

Which seems to give the correct answer of SQRT(2pi)

However I cannot find any error in my working above if you follow it through the answer still seems to be 2*SQRT(2pi)?
 
Last edited:
Hi Quasar,

Thanks for that it confirms that using u=x and dv/dx= x*exp(-x^2/2)dx in the integration by parts it gives the correct answer. Which I agree with.

However my remaining question is that how come when I work through using u=x^2 and dv/dx= exp(-x^2/2)dx in the integration by parts the calculation out by a factor of 2?

I just would like to know in case I face similar problems in future. To me it seems more "natural" to choose u=x^2 and I guess it must yield the same answer if worked through correctly. My question is where am I going worng at present?

I take u=x^2
u`=2*x

v`=e^(-x^2/2)
v =-(e^(-x^2/2))/x

hence

INT(-infinfity to infinity)[x^2*e^(-x^2/2).dx]

= x^2*-(e^(-x^2/2))/x|(inf -inf) - INT(inf - inf) (2*x)*-(e^(-x^2/2))/x

= x*-(e^(-x^2/2))|(inf -inf) + INT|(inf -inf) (2)*(e^(-x^2/2))

clearly first term equates to 0

INT|(inf -inf) (2)*(e^(-x^2/2))
=2*INT|(inf -inf) (e^(-x^2/2))

I know that INT|(inf -inf) (e^(-x^2/2)) = SQRT(2pi).
so I get final answer of 2*SQRT(2pi) but the correct answer is SQRT(2pi)
 
Bazman said:
Hi Quasar,

Thanks for that it confirms that using u=x and dv/dx= x*exp(-x^2/2)dx in the integration by parts it gives the correct answer. Which I agree with.

However my remaining question is that how come when I work through using u=x^2 and dv/dx= exp(-x^2/2)dx in the integration by parts the calculation out by a factor of 2?

I just would like to know in case I face similar problems in future. To me it seems more "natural" to choose u=x^2 and I guess it must yield the same answer if worked through correctly. My question is where am I going worng at present?

I take u=x^2
u`=2*x

v`=e^(-x^2/2)
v =-(e^(-x^2/2))/x
This is incorrect as you can see by differentiating your v. [tex]e^{-x^2/2}[/itex] does <b>not have</b> an elementary anti-derivative.<br /> <br /> <blockquote data-attributes="" data-quote="" data-source="" class="bbCodeBlock bbCodeBlock--expandable bbCodeBlock--quote js-expandWatch"> <div class="bbCodeBlock-content"> <div class="bbCodeBlock-expandContent js-expandContent "> hence<br /> <br /> INT(-infinfity to infinity)[x^2*e^(-x^2/2).dx]<br /> <br /> = x^2*-(e^(-x^2/2))/x|(inf -inf) - INT(inf - inf) (2*x)*-(e^(-x^2/2))/x<br /> <br /> = x*-(e^(-x^2/2))|(inf -inf) + INT|(inf -inf) (2)*(e^(-x^2/2))<br /> <br /> clearly first term equates to 0<br /> <br /> INT|(inf -inf) (2)*(e^(-x^2/2))<br /> =2*INT|(inf -inf) (e^(-x^2/2))<br /> <br /> I know that INT|(inf -inf) (e^(-x^2/2)) = SQRT(2pi).<br /> so I get final answer of 2*SQRT(2pi) but the correct answer is SQRT(2pi) </div> </div> </blockquote>[/tex]
 
v`=e^(-x^2/2)
v =-(e^(-x^2/2))/x
wrong (take the derivative of your v and you won't get your v')!
you should use
v'=xe^(-x^2/2)
v=-e^(-x^2/2)
 
Last edited:

Similar threads

  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 27 ·
Replies
27
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 6 ·
Replies
6
Views
3K