Processing math: 100%

Thursday, October 30, 2014

Clever integration tricks


Today I want to talk about a clever integration trick I learned from Achim Kempf at DICE2014. Any mathematical physicist learns clever integration tricks and one of my personal favorite is how to compute:

I=+ex2dx 

because there is no elementary primitive function since the integral comes from the Gaussian (normal) distribution. However one can still compute the integral above quite easily by going to a 2-dimensional plane and considering the y integral as well: +ey2dy which is I again .

So 

I2=++ex2ey2dxdy=++e(x2+y2)dxdy

and the trick is to change this to polar coordinates:

x2+y2=r2 and dxdy=rdrdθ

integration by θ is a trivial 2π, and the additional r allows you to find the primitive and integrate from 0 to .

But how about not having to find a primitive at all? Then one can try Achim's formula:

f(x)dx=2πf(ix)δ(x)|x=0

It's a bit scary looking

Happy Halloween!

but let's first prove it:

2πf(ix)δ(x)|x=0=f(ix)+eixydy|x=0

due to a representation of δ(x):

δ(x)=12π+eixydy

Moving f(ix) inside the integral makes this +f(y)eixydy|x=0. Why? Expand f in Taylor series and apply the powers of ix on eixy resulting into the powers of y. Then recombine the Taylor series terms in f(y). Finally compute this for x=0 which kills the exponential term and you are left only with +f(y)dy and the formula is proved.

So now let's see this formula in action. Let's compute this:+sinxxdx:

+sinxxdx=2πsin(ix)1ixδ(x)|x=0=
=2πi12i(exex)(θ(x)+ϵ)|x=0

Now we can use Taylor to prove that eaxf(x)=f(x+a) and from this the integral becomes:

=π(θ(x+1)θ(x1)+cc)|x=0=π(10+0)=π

So what is really going on in this formula? If we start with another representation for the Dirac delta:

δ(x)=limσ0+1πσex2σ

then:

+f(x)dx=limσ0+2πσex2σf(x)|x=0

The exponential term is a Gaussian blurring which flattens f(x), and is in fact a heat kernel because a heat equation is actually a convolution with a Gaussian. Also the limit sigma goes to zero or equivalently one over square root of sigma goes to infinity would physically correspond to the temperature going to zero. 

However something does look fishy in the formula. How can the integral of a function which includes the values over the entire domain be identical with a a formula containing only the value of f in only one point x=0 ? It does not! This is because e2xσ acts nonlocally because e2xσf(x) is a convolution! 

More can be said, but it is a pain to typeset the equations and the interested reader should read http://arxiv.org/abs/1404.0747. Enjoy.

No comments:

Post a Comment