Hi all(adsbygoogle = window.adsbygoogle || []).push({});

A basic question here:

I am deriving the equation for the expectation of a lognormal variable. This involves rearranging the contents of the integral

[itex]

\int_{-\infty}^{+\infty} e^x e^{-(x-\mu)^2/2\sigma^2}dx

[/itex]

A proof I have seen completes the square like so:

[itex]

x-\frac{(x-\mu)^2}{2\sigma^2} = \frac{2\sigma^2x-(x-\mu)^2}{2\sigma^2}

[/itex]

[itex]

= \frac{(x-(\mu+\sigma^2))^2}{2\sigma^2} + \mu + \frac{\sigma^2}{2}

[/itex]

So, trying this (ignoring the 2\*sigma^2 denominator for now):

[itex]

2\sigma^2x-(x-\mu)^2 = 2\sigma^2x-(x^2-2\mu x +\mu^2)

[/itex]

[itex]

=-x^2+(2\mu+2\sigma^2)x-\mu^2

[/itex]

[itex]

\Rightarrow x^2-(\mu+2\sigma^2)x =\mu^2

[/itex]

[itex]

x^2-(2\mu+2\sigma^2)x+(-\mu-\sigma^2)^2 = -\mu^2 + (-\mu-\sigma^2)^2

[/itex]

When attempt to express the LHS as a square:

[itex]

(x-(\mu+\sigma^2))^2 = -\mu^2 + (\mu^2 + 2\sigma^2\mu + \sigma^4)

[/itex]

[itex]

\Rightarrow (x-(\mu+\sigma^2))^2 = 2\sigma^2\mu+\sigma^4)

[/itex]

Bringing over the RHS terms, and factoring in the 2*sigma^2 denominator:

[itex]

\Rightarrow \frac{(x-(\mu+\sigma^2))^2}{2\sigma^2} + \mu + \frac{\sigma^2}{2} = 0

[/itex]

[ok , got it now. thanks to the poster below]

**Physics Forums - The Fusion of Science and Community**

Dismiss Notice

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Completing The Square

Loading...

Similar Threads - Completing Square | Date |
---|---|

Completing a Fourier Transform Integral | Jun 23, 2014 |

Partial Vs. Complete differentials when dealing with non-independent variables | May 12, 2012 |

Equivalence of Completeness Properties | Feb 15, 2012 |

Complete Fields property | Mar 22, 2011 |

Hellp with fourier integral via completing the square | Sep 28, 2003 |

**Physics Forums - The Fusion of Science and Community**