“I had learned to do integrals by various methods shown in a book that my high school physics teacher Mr. Bader had given me. [It] showed how to differentiate parameters under the integral sign — it’s a certain operation. It turns out that’s not taught very much in the universities; they don’t emphasize it. But I caught on how to use that method, and I used that one damn tool again and again. [If] guys at MIT or Princeton had trouble doing a certain integral, [then] I come along and try differentiating under the integral sign, and often it worked. So I got a great reputation for doing integrals, only because my box of tools was different from everybody else’s, and they had tried all their tools on it before giving the problem to me.”
Surely you’re Joking, Mr. Feynman! – 1985
The mathematical trick that is differentiating under the integral sign, more commonly called Feynman’s trick has remained in relative obsecurity over the last half century, however is arguably one of the most powerful tools to solving integrals I have ever studied. This method leverages parameterization, allowing the selection of a specific variable to eliminate a particular component of the integral. However, this approach demands keen observation to be effective, but the necessary skills can be honed through practice. Below we will list a guide as to how to tackle such so-called non-elementary integrals and provide a few examples, with some utilizing both Feynman’s trick and contour integrals to give an in depth comparison as to how the mthod works and why it is so powerful.
Let us first look at a relatively simple example : . This is not solvable through normal means, as
does not have an elementary antiderivative. However, through parameterization, we let
, where we try to solve for
. Before we start, we observe that
. This will become useful later on.
Now, we shall use differentiation under the integral sign – namely, we take partial differentiation inside the integral with respect to . This gives us
. As
(we assume
as a constant), we see that
cancels which gives us
where we are integrating with respect to
. This gives us
, which evaluates to
. From this, we can find
: this is equal to
. However, we know that
, from which we can subsitute back into the equation to find
, which is 0. Now we can find
:
. Thus, we have successfully evaluated the integral – this would not have been possible with our normal methods of integration.
To summarize what we have done, we can list our procedures of carrying out Feynman’s method for solving integrals as follows :
- Finding the Parameter : We locate a certain parameter suitable for this method which would simplify the original integral. For an integral with the form
, we now write it in this form :
.
- Differentiate Under the Integral Sign: The central idea of Feynman’s technique is to differentiate the integral with respect to such a parameter. Mathematically, you differentiate the integral with respect to this parameter :
.
- Simplify the Differentiated Integral: This step often involves applying rules of differentiation, such as the product rule and chain rule, to the integrand.
- Solve the Differentiated Integral: After differentiating, you should obtain a new integral that is hopefully simpler than the original one. This may involve integrating the new integral or using known techniques for solving integrals.
- Reverse the Differentiation: Finally, you reverse the differentiation by integrating the result back with respect to the parameter. This will give you the solution to the original integral.
The key insight is that differentiating under the integral sign can sometimes lead to a simpler integral that can be solved more easily. This technique is especially useful for tackling challenging integrals and is often associated with Feynman’s unique problem-solving approach. Below we attempt a few more examples :
Example 1 : Evaluate the Gaussian integral .
Solution : Without using Feynman’s Trick, we would usually use double integration and convert it into polar coordinates, this is demonstrated by Kensei Sakamoto. Using Feynman’s Trick however, we define a function where
(this is equivalent to evaluating the right side of the integral as it is an even function). We are hoping to determine
, and by carrying out
-subsitution for
, which gives us
. From this, we observe that when
, we have
. This will become useful when deducing the constant of the integrated function later on.
We now multiply by on both sides of the equation, which gives us
(this makes the power and the demoniator the same which simplifies calculation). We also move
to the left-hand side to avoid using the product rule. By now taking differentiation under the integral sign with respect to
, we get
. By factorising out
we obtain
. This may seem complicated, however remember our original
-subsitution for
– by reversing this process we obtain the integral
, where under inspection we see is equivalent to
.
The next step we need to do is to integrate both sides of the equation. This yields the following :

Since we have computed both of these values, it is immediately obvious that . Hence, it follows that
, whence
.1
Example 2 : Evaluate .
Solution : Again, similar to all of the integrals we have discussed, this function does not have an antiderivative. We will first demonstrate how to use contours to solve this problem.
We see that the integral is equivalent to the expression (this follows from Euler’s formula :
). We denote this
. As the integral has a pole on
, we split the contour into three parts as shown.

Using Cauchy’s integral theorem, we deduce that the contour over the whole loop is zero. Now we split it into three parts : . We first consider
. This goes to 0 due to Jordan’s Lemma.
Now for . This can be rewritten as follows :
. We let
be
, where
. By changing the bounds, we get
. This gives us
, which equals
.
By subsituting back into the original equation, we obtain the following :
Since we want , we obtain
. Thus, our original integral
.2 However, we can see that this requires extensive knowledge about complex analysis and is very complicated when compared to our topic for today – differentiating under the integral sign. So let’s see how Feynman would have done it :
Using Feynman’s trick, we multiply by a parameter , such that
. We differentiate under the integral sign, which gives
. Now by using integration by parts, we obtain the following :
We subsitute the boundaries and find that is equal to
. We carry out integration by parts again :
As is just
, we subsitute :
. Now we integrate this expression with respect to
, and this gives us
. We subsitute the lower and upper-bounds of the function (
and
respectively), which yields
. Hence, we deduce that our original integral
is equal to double of
, which is
. As we can see, this method is way more accessible to students than using countour integration, which shocks me as this method is still not widly taught to calculus students even though it is much more employable in many circumstances, and may be the only way to solve some integrals as demonstrated by Richard P. Feynman.
To conclude our long showcase of Feynman’s method, his ingenious approach to integration has shown us that mathematics can be as creative and intuitive as it is analytical. His ‘trick’ serves as a reminder that there are often multiple paths to solve complex problems, and the beauty of mathematics lies not only in its rigorous formulas but in the art of clever insights. Whether you are a physics enthusiast, a mathematician, or simply a curious mind, Feynman’s trick to integration offers a glimpse into the boundless world of creative problem-solving, where the simplicity of an idea can unveil the elegance of the universe’s underlying principles. As we continue to explore the vast landscapes of mathematics, we can draw inspiration from the mind of Richard Feynman, whose legacy reminds us that the journey to understanding is as remarkable as the destination.


Leave a Reply