Physics Forums (http://www.physicsforums.com/index.php)
-   Calculus (http://www.physicsforums.com/forumdisplay.php?f=109)
-   -   W. W. Hansen's Trick to Evaluating Integrals (http://www.physicsforums.com/showthread.php?t=583287)

 marcusl Mar2-12 03:27 PM

W. W. Hansen's Trick to Evaluating Integrals

In "Probability Theory: The Logic of Science", the author E. T. Jaynes relates that Prof. Hansen at Stanford evaluated integrals by treating constants like pi in an integrand as a variable. Sounds fantastic! Does anyone know how this is done?

Re: W. W. Hansen's Trick to Evaluating Integrals

I am going out on a limb here, and this is probably wrong. But the one thing that comes to my mind is the fact that
$$\int_{0}^{a} f(x) \mathrm{d}x = \int_{0}^{a} f(a-x) \mathrm{d}x$$
For an concerete example, let us evaluate
$$\int_{0}^{\pi/2} \frac{\sin x}{\cos x + \sin x} \mathrm{d}x$$
I am sure you can fill in the rest, using the hint above =)
If this is not the trick, I am very interested in it as well!

 Mute Mar5-12 01:44 PM

Re: W. W. Hansen's Trick to Evaluating Integrals

I'm guessing the trick amounts to replacing a constant in the integrand (or integration limits) with a variable, which allows you to then differentiate (integrate) with respect to that variable to make the integral easier to do. At the end of the calculation you integrate (differentiate) to get the original result you wanted. The classic example is evaluating Gaussian integrals. Consider

$$\int_{-\infty}^\infty dx~x^2 \exp\left(-x^2\right)$$

You could try substitution to evaluate this, but if you know the result $\int_{-\infty}^\infty dx~\exp\left(-ax^2\right) = \sqrt{\pi/a}$ you can easily solve the integral as follows: first, insert a variable 'a' into the exponential, then note

$$\int_{-\infty}^\infty dx~x^2 \exp\left(-a x^2\right) = -\frac{\partial }{\partial a}\left(\int_{-\infty}^\infty dx~\exp\left(-a x^2\right)\right) = -\frac{\partial }{\partial a}\left(\frac{\pi}{a}\right)^{1/2} = \frac{1}{2}\frac{\sqrt{\pi}}{a^{3/2}}$$

Setting a = 1 gives the result of the original integral.

 marcusl Mar6-12 10:13 AM

Re: W. W. Hansen's Trick to Evaluating Integrals

Neb, I don't see how what you wrote is at all useful...

Mute, now that's another story! This is very clever.

thx

 All times are GMT -5. The time now is 02:38 PM.