Results 1 to 4 of 4

Math Help - M(t) calculus - can you pls double check?

  1. #1
    Member
    Joined
    Dec 2007
    Posts
    80
    Awards
    1

    M(t) calculus - can you pls double check?

    Hello...

    Would someone please double check and see if I make mistakes in the calculus of this integral?

    Thanks in advance!

    <br />
M_X(t)=\int_0^\infty 2 \lambda x\ e^{-\lambda{x^2}+tx} dx\<br />

    The exponent can be rewritten as:

    <br />
-\lambda{(x-\frac{t}{2\lambda})^2}+\lambda{(\frac{t}{2\lambda}  )^2}<br />
Therefore:

    <br />
M_X(t)=e^{\lambda{(\frac{t}{2\lambda})^2}}\int_0^\  infty 2 \lambda x\ e^{-\lambda{(x-\frac{t}{2\lambda})^2}} dx\ =\<br />
e^{\lambda{(\frac{t}{2\lambda})^2}}\int_0^\infty 2 \lambda (x-\frac{t}{2\lambda}+\frac{t}{2\lambda})\ e^{-\lambda{(x-\frac{t}{2\lambda})^2}} dx\ =\\<br />

    <br />
=\ e^{\lambda{(\frac{t}{2\lambda})^2}}[\int_0^\infty 2 \lambda (x-\frac{t}{2\lambda})\ e^{-\lambda{(x-\frac{t}{2\lambda})^2}} dx\ +\ t\int_0^\infty e^{-\lambda{(x-\frac{t}{2\lambda})^2}} dx]\ =\\<br />

    <br />
=\ e^{\lambda{(\frac{t}{2\lambda})^2}}[-e^{-\lambda{(x-\frac{t}{2\lambda})^2}}\mid_0^\infty\ +\ t\int_0^\infty e^{-\lambda{(x-\frac{t}{2\lambda})^2}} dx]\ =\\<br />

    I now convert the last remaining integral into normal gaussian of area 1/2 between zero and infinity:

    <br />
\mu=\frac{t}{2\lambda}\ ;\ \sigma^2=\frac{1}{2\lambda} \Rightarrow\ \ t\frac{\sigma\sqrt{2\pi}}{\sigma\sqrt{2\pi}}\int_0  ^\infty e^{-\frac{(x-\mu)^2}{2\sigma^2}}dx\ =\ \frac{t\sigma\sqrt{2\pi}}{2}\ =\ \mu\sqrt{\lambda\pi}\ ]<br />

    Therefore, substituting:

    <br />
M_X(t)=e^{\lambda\mu^2}[-e^{-\lambda{(x-\mu)^2}}\mid_0^\infty +\mu\sqrt{\lambda\pi}\ ] = e^{\lambda\mu^2}[e^{-\lambda{\mu^2}} +\mu\sqrt{\lambda\pi}\ ] = 1+\mu\sqrt{\lambda\pi}e^{\lambda\mu^2}<br />
    Follow Math Help Forum on Facebook and Google+

  2. #2
    Flow Master
    mr fantastic's Avatar
    Joined
    Dec 2007
    From
    Zeitgeist
    Posts
    16,948
    Thanks
    5
    Quote Originally Posted by paolopiace View Post
    Hello...

    Would someone please double check and see if I make mistakes in the calculus of this integral?

    Thanks in advance!

    <br />
M_X(t)=\int_0^\infty 2 \lambda x\ e^{-\lambda{x^2}+tx} dx\<br />

    The exponent can be rewritten as:

    <br />
-\lambda{(x-\frac{t}{2\lambda})^2}+\lambda{(\frac{t}{2\lambda}  )^2}<br />
Therefore:

    <br />
M_X(t)=e^{\lambda{(\frac{t}{2\lambda})^2}}\int_0^\  infty 2 \lambda x\ e^{-\lambda{(x-\frac{t}{2\lambda})^2}} dx\ =\<br />
e^{\lambda{(\frac{t}{2\lambda})^2}}\int_0^\infty 2 \lambda (x-\frac{t}{2\lambda}+\frac{t}{2\lambda})\ e^{-\lambda{(x-\frac{t}{2\lambda})^2}} dx\ =\\<br />

    <br />
=\ e^{\lambda{(\frac{t}{2\lambda})^2}}[\int_0^\infty 2 \lambda (x-\frac{t}{2\lambda})\ e^{-\lambda{(x-\frac{t}{2\lambda})^2}} dx\ +\ t\int_0^\infty e^{-\lambda{(x-\frac{t}{2\lambda})^2}} dx]\ =\\<br />

    <br />
=\ e^{\lambda{(\frac{t}{2\lambda})^2}}[-e^{-\lambda{(x-\frac{t}{2\lambda})^2}}\mid_0^\infty\ +\ t\int_0^\infty e^{-\lambda{(x-\frac{t}{2\lambda})^2}} dx]\ =\\<br />

    I now convert the last remaining integral into normal gaussian of area 1/2 between zero and infinity: Mr F says: This is your mistake. When the Gaussian has a mean of \mu, the area is 1/2 between \mu and infinity. Only if the mean is equal to zero will what you've got here be true.

    <br />
\mu=\frac{t}{2\lambda}\ ;\ \sigma^2=\frac{1}{2\lambda} \Rightarrow\ \ t\frac{\sigma\sqrt{2\pi}}{\sigma\sqrt{2\pi}}\int_0  ^\infty e^{-\frac{(x-\mu)^2}{2\sigma^2}}dx\ =\ \frac{t\sigma\sqrt{2\pi}}{2}\ =\ \mu\sqrt{\lambda\pi}\ ]<br />

    Therefore, substituting:

    <br />
M_X(t)=e^{\lambda\mu^2}[-e^{-\lambda{(x-\mu)^2}}\mid_0^\infty +\mu\sqrt{\lambda\pi}\ ] = e^{\lambda\mu^2}[e^{-\lambda{\mu^2}} +\mu\sqrt{\lambda\pi}\ ] = 1+\mu\sqrt{\lambda\pi}e^{\lambda\mu^2}<br />
    ..
    Follow Math Help Forum on Facebook and Google+

  3. #3
    Member
    Joined
    Dec 2007
    Posts
    80
    Awards
    1

    Mr. F, Thanks...

    ... believe it or not, this error came to my brain tonight. Problem is that if I make mu=0, the starting point of the integral changes and that area cannot be calculated analytically (or... can it?).

    It seems this problem is not resolvable with regular analytical tools.

    Mr.F, what do you suggest?
    Follow Math Help Forum on Facebook and Google+

  4. #4
    Grand Panjandrum
    Joined
    Nov 2005
    From
    someplace
    Posts
    14,972
    Thanks
    4
    Quote Originally Posted by paolopiace View Post
    ... believe it or not, this error came to my brain tonight. Problem is that if I make mu=0, the starting point of the integral changes and that area cannot be calculated analytically (or... can it?).

    It seems this problem is not resolvable with regular analytical tools.

    Mr.F, what do you suggest?
    When an integral does not have a known closed form what we do is invent
    a new function who's derivative is the integrand.

    \int_0^\infty e^{-\lambda{(x-\frac{t}{2\lambda})^2}} dx = \lambda^{-1/2}\ {\rm{erfc}}\left(-\frac{t}{2 \sqrt(\lambda)}\right)
    =\lambda^{-1/2}\left[1-{\rm{erf}}\left(-\frac{t}{2 \sqrt(\lambda)}\right)\right]

    In this case you need the error function {\rm{erf}}(x) , or the complementary error function {\rm{erfc}}(x) ,
    see the Wikipedia page.

    (you will need to check that I have the constants etc correct)

    RonL
    Last edited by CaptainBlack; February 1st 2008 at 11:26 AM.
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Replies: 11
    Last Post: June 1st 2010, 08:39 AM
  2. Double Check
    Posted in the Calculus Forum
    Replies: 5
    Last Post: November 15th 2009, 06:11 PM
  3. double check
    Posted in the Calculus Forum
    Replies: 1
    Last Post: May 10th 2009, 07:38 PM
  4. Double check
    Posted in the Algebra Forum
    Replies: 1
    Last Post: December 4th 2008, 04:36 PM
  5. double check
    Posted in the Algebra Forum
    Replies: 1
    Last Post: October 21st 2008, 11:03 AM

Search Tags


/mathhelpforum @mathhelpforum