Evaluating a Beautiful Integral Using Differentiation Under the Integral Sign
A detailed walkthrough of Feynman's favorite technique — differentiating under the integral sign — applied to a classic integral involving logarithms and rational functions.
Introduction
One of the most powerful and elegant techniques in integral calculus is differentiation under the integral sign, sometimes called Leibniz's rule or, more colloquially, Feynman's trick. Richard Feynman famously learned this technique from the book Advanced Calculus by Frederick S. Woods, and it became one of his go-to methods for evaluating difficult integrals.
In this post, we'll use this technique to evaluate the following beautiful integral:
The Setup
The key idea behind Feynman's trick is to introduce a parameter into the integral, differentiate with respect to that parameter, evaluate the resulting (hopefully simpler) integral, and then integrate back to obtain the original result.
Let us define:
where . Notice that:
- (since )
- (our target integral)
Differentiating Under the Integral Sign
We differentiate with respect to :
Now we need to evaluate this integral. We use partial fraction decomposition:
Multiplying both sides by and solving for the coefficients, we get:
Computing the Derivative
Substituting back:
Evaluating each part:
Therefore:
Integrating Back
Now we integrate from to :
But notice that ! So we have:
The Final Result
This is a remarkably clean result! The appearance of both and in the answer reflects the deep connections between logarithmic and trigonometric functions that arise naturally in integral calculus.
Key Takeaways
-
Feynman's trick (differentiation under the integral sign) is a powerful technique for evaluating integrals that resist standard methods.
-
The technique works best when you can find a natural parameter such that both and are tractable.
-
Sometimes the "trick within the trick" is recognizing that the integral you're trying to evaluate appears on both sides of an equation, allowing you to solve for it algebraically.
Further Reading
- Inside Interesting Integrals by Paul J. Nahin — an excellent book full of integral evaluation techniques
- Advanced Calculus by Frederick S. Woods — the book where Feynman learned this method
- Rudin's Principles of Mathematical Analysis, Chapter 9 — for rigorous conditions on differentiation under the integral sign
What's your favorite integration technique? Let me know through the contact page!