Processing math: 100%
 
+0  
 
0
2742
6
avatar

How do you integrate e^(-x^2)?

 Apr 29, 2014

Best Answer 

 #1
avatar+33657 
+5

It depends on the limits of the integration.  If the limits are ±infinity then the integral can be done analytically - see below.  However, if at least one of the limits is finite then the integral can only be done numerically (an exception is if one of the limits is zero, then the integral from zero to infinity is just half of the integral from -infinity to infinity).

Here is a brief derivation of the integral of e-x^2 from - infinity to infinity: 

LetI=\int_{-\infty}^{\infty}e^{-x^2}dxBecausexisadummyvariablewecanalsowritethisasI=\int_{-\infty}^{\infty}e^{-y^2}dyMultiplythetwotogethertogetI^2=\int_{-\infty}^{\infty}\int_{-\infty}^{\infty}e^{-(x^2+y^2}dxdyNowifwethinkofxandyasbeingaxesonastandardCartesiangraph,thentherighthandsideisjusttheintegraloverthewholeplaneof$e(x2+y2)$.Changetopolarcoordinates,$r,θ$wherex = r.cos\theta, y = r.sin\theta.Thelimitsoftheintegrationbecome$0$to$$for$r$and$0$to$2π$for$θ$.$dxdy$becomes$r.drdθ$.So:

I2=2π00er2r.drdθ\\
I2=2π0er2r.dr\\
I2=2π0er212dr2\\
I2=π0ezdz\\

where I've substituted $z$ for $r^2$ in that last integral. So:
I2=π
as $\int_{0}^{\infty}e^{-z}dz=1$
Finally, $I=\sqrt\pi$ or
ex2dx=π$$

 Apr 29, 2014
 #1
avatar+33657 
+5
Best Answer

It depends on the limits of the integration.  If the limits are ±infinity then the integral can be done analytically - see below.  However, if at least one of the limits is finite then the integral can only be done numerically (an exception is if one of the limits is zero, then the integral from zero to infinity is just half of the integral from -infinity to infinity).

Here is a brief derivation of the integral of e-x^2 from - infinity to infinity: 

LetI=\int_{-\infty}^{\infty}e^{-x^2}dxBecausexisadummyvariablewecanalsowritethisasI=\int_{-\infty}^{\infty}e^{-y^2}dyMultiplythetwotogethertogetI^2=\int_{-\infty}^{\infty}\int_{-\infty}^{\infty}e^{-(x^2+y^2}dxdyNowifwethinkofxandyasbeingaxesonastandardCartesiangraph,thentherighthandsideisjusttheintegraloverthewholeplaneof$e(x2+y2)$.Changetopolarcoordinates,$r,θ$wherex = r.cos\theta, y = r.sin\theta.Thelimitsoftheintegrationbecome$0$to$$for$r$and$0$to$2π$for$θ$.$dxdy$becomes$r.drdθ$.So:

I2=2π00er2r.drdθ\\
I2=2π0er2r.dr\\
I2=2π0er212dr2\\
I2=π0ezdz\\

where I've substituted $z$ for $r^2$ in that last integral. So:
I2=π
as $\int_{0}^{\infty}e^{-z}dz=1$
Finally, $I=\sqrt\pi$ or
ex2dx=π$$

Alan Apr 29, 2014
 #2
avatar+118703 
0

hi Alan,

I have had to split up LaTex before.  It seems to happen when the output is long.

Today and I think yesterday the \frac was not working properly.  

I'll try it now to show you

1-\frac{3}{(x+5)^2}

displays as - NOW IT WORKS!  It wouldn't work when i was anwering Stu's question. 

13(x+5)2

Have you managed to get begin{align} or begin{equarray} (I used to use this one all the time and now I am not even sure that the command is correct)  to work?  I have really missed not having those.

Thanks.

 Apr 29, 2014
 #3
avatar+33657 
0

I haven't used either of begin{align} or begin{equarray}, I'm afraid.  

I suspect that my problems are more likely to be of my own making in the main as I'm still very much a beginner with LaTeX.  I find it easier to use Texmaker and then copy and paste into the LaTex Formula box than write it directly here.   

 Apr 29, 2014
 #4
avatar+118703 
0

I didn't think that would work properly - they are not usually that compatible.

Do copy in everything or just the main command parts?  I'll have to try that.

Thanks.

To dispaly properly we really need some version of align! I'll leave him alone at the moment but when other problems lessen I will ask Andre about it.  Maybe by then I (or you) will have worked it out. 

 Apr 29, 2014
 #5
avatar+33657 
0

...I didn't think that would work properly - they are not usually that compatible.

I copy everything between, and including, begin{document} and end{document}

I haven't used any esoteric features so I don't know what the limitations of this are!

 Apr 29, 2014
 #6
avatar+118703 
0

Thanks Alan I will definitely try that.

I am quite comfortable with typing straight into the forum but the preview display is very poor.

I expect I would rather do it your way.  Thanks.

 Apr 29, 2014

1 Online Users