Differentiation Under the Integral Sign
A technique (sometimes called Feynman's trick) for evaluating a hard integral by introducing a parameter, differentiating the integral with respect to that parameter to get an easier integral, solving that, then integrating back, useful for computing moments and normalizing constants in probability.
Some integrals resist every standard substitution or integration-by-parts trick, yet become easy once you notice they're really one member of a whole family of integrals indexed by a parameter. Differentiating that family with respect to the parameter can produce a much simpler integral, which you solve directly and then integrate back with respect to the parameter to recover the original answer.
The method
Given a hard integral , find a natural parameter to insert so the integral becomes , with the original problem recovered at a specific value of . Differentiate under the integral sign, , swapping the order of differentiation and integration (valid under mild regularity conditions). If the resulting integral is easy, solve it to get as a function of , then integrate that back over , using a known boundary value of at some convenient to fix the constant of integration.
Worked example
To evaluate , introduce a parameter as with the target and as the known boundary. Differentiating gives , an elementary Laplace-transform integral. Integrating from to infinity (where vanishes) gives , so , a closed-form answer to an integral with no elementary antiderivative.
Differentiation under the integral sign solves a hard integral by embedding it in a parametrized family, differentiating with respect to the parameter to get an easier integral, solving that, and integrating back using a known boundary value, turning problems with no elementary antiderivative into solvable ones.
Discussion
💡 Discussion rules
- Ask and answer about this concept. Off-topic gets removed.
- No homework dumps. Show what you tried first.
- Corrections are welcome. Cite a source when you claim an error.
Loading discussion…
Related concepts
Practice in interviews
Further reading
- Feynman, Surely You're Joking, Mr. Feynman, 'A Different Box of Tools'