Completing the Square: How do we Derive the Expectation of a Lognormal Variable?

  • Thread starter rwinston
  • Start date
  • Tags
    Square
In summary, the conversation involves deriving the equation for the expectation of a lognormal variable by rearranging the contents of an integral. This is done by completing the square and expressing the left-hand side as a square. A mistake made in the first line is pointed out and corrected by another poster.
  • #1
rwinston
36
0
Hi all

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]
 
Last edited:
Physics news on Phys.org
  • #2
1st line mistake: When expanding the square parenthesis into the full parenthesis, there shall be a + in front of [itex]\mu^{2}[/itex], not - as you have done.
 
  • #3


Completing the square is a technique used to simplify quadratic expressions and make them easier to work with. In this case, we are trying to derive the expectation of a lognormal variable, which can be represented by the integral shown above. By completing the square, we can simplify the expression and make it easier to integrate.

The process of completing the square involves adding and subtracting a constant term to the expression in order to create a perfect square. In this case, we are adding and subtracting (\mu + \sigma^2)^2 to the expression. This allows us to express the quadratic term as a perfect square, which makes it easier to integrate.

By rearranging the contents of the integral using this technique, we are able to express the integral as a Gaussian integral, which is much easier to solve. This allows us to derive the expectation of a lognormal variable by solving the Gaussian integral and evaluating the resulting expression.

In summary, completing the square is a useful technique for simplifying quadratic expressions and making them easier to work with. In the case of deriving the expectation of a lognormal variable, it allows us to express the integral as a Gaussian integral, which can be solved to obtain the desired result.
 

1. What is the purpose of "completing the square"?

The purpose of completing the square is to solve quadratic equations by rewriting them in a standard form that makes it easier to factor or use the quadratic formula.

2. How do you complete the square for a quadratic equation?

To complete the square for a quadratic equation, you first need to make sure that the coefficient of the squared term is 1. Then, you take half of the coefficient of the x-term, square it, and add it to both sides of the equation. This will create a perfect square trinomial, which can then be factored to solve the equation.

3. Why is completing the square useful?

Completing the square is useful because it allows you to solve quadratic equations that cannot be easily solved by factoring or using the quadratic formula. It also helps in graphing quadratic functions and finding the vertex of the parabola.

4. Can completing the square be used for all quadratic equations?

Yes, completing the square can be used for all quadratic equations. However, it may not always be the most efficient method for solving the equation, depending on the values of the coefficients.

5. Are there any tips for completing the square more efficiently?

One tip for completing the square more efficiently is to make sure the coefficient of the squared term is 1 before beginning the process. Additionally, it can be helpful to break down larger coefficients into smaller, easier to work with numbers. Practice and familiarity with the process can also make it easier and quicker to complete the square.

Similar threads

Replies
5
Views
1K
Replies
3
Views
2K
  • Classical Physics
Replies
0
Views
99
Replies
12
Views
1K
Replies
2
Views
498
  • Special and General Relativity
Replies
4
Views
3K
  • Advanced Physics Homework Help
Replies
11
Views
2K
Replies
4
Views
317
Replies
5
Views
372
  • Mechanical Engineering
Replies
2
Views
989
Back
Top