Differentiation under the integral sign
Some definite integrals refuse to yield an elementary antiderivative — you can write down the integral, but no combination of familiar functions equals it. Differentiation under the integral sign, also called Leibnitz's rule for integrals, is the escape route. Instead of attacking the integral directly, you let one of its constants become a variable parameter , differentiate the resulting integral with respect to , and hope the differentiated integrand is easier than the original. Often it collapses to something elementary. You then integrate that simpler result back with respect to and pin the constant of integration using one convenient value where the original integral is trivially known. This article states the general rule (which also handles parameter-dependent limits of integration), its important fixed-limit special case, and walks through the technique on the same integral used throughout this unit.
Promoting a constant in a hard integral to a parameter , differentiating under the integral sign, and integrating the simplified result back turns an integral with no elementary antiderivative into one that can be evaluated exactly.
The core idea
Setting up the parameter-dependent integral. Let depend on and on a parameter , and let the limits of integration and possibly depend on too. Define
where: is the integrand, is the variable being integrated out, and is the parameter surviving in .
Leibnitz's rule (general form). Differentiating with respect to gives
where: the first term is the change coming from the integrand itself shifting with , and the remaining two terms are the change coming from the upper and lower limits sweeping in or out as varies — the upper limit contributes with a plus sign, the lower limit with a minus sign.
Fixed-limit special case. When and are constants, both boundary terms vanish and
i.e. differentiation and integration can simply be swapped — "differentiate inside the integral sign." This is the version used most often as an evaluation technique: introduce a parameter into a hard integral, differentiate with respect to it, integrate the simpler result back, and fix the constant using a value of where the original integral is trivial (frequently ). The figure below shows the geometric picture behind the general rule: as changes, the region under changes both because the curve itself moves and because its left and right edges slide.
Leibnitz rule from the multivariable chain rule
The general rule is a direct consequence of the fundamental theorem of calculus applied through a multivariable chain rule, since really depends on in three separate places at once: through the lower limit, the upper limit, and the integrand — and disentangling those three simultaneous dependences using the ordinary chain rule for functions of several variables is exactly what proves the formula stated above.
The goal is to prove by treating as a function built from three independent slots — a lower limit, an upper limit, and the parameter sitting inside the integrand — and applying the ordinary multivariable chain rule to it.
Step 1. Introduce a three-slot helper function. Define , treating , and as three independent variables. Then the original object is the composite , where and are themselves functions of .
Step 2. Find the partial derivatives of with respect to and using the fundamental theorem of calculus. Holding fixed, directly from the fundamental theorem, and because reversing the direction of integration flips the sign: .
Step 3. Find the partial derivative of with respect to its third slot, holding and fixed. Since the limits are frozen, only the integrand changes with , so — this is exactly the fixed-limit special case, applied here as one piece of the larger proof, and it is valid whenever and are continuous on the region of integration.
Step 4. Apply the multivariable chain rule to the composite : differentiating a function of three slots, each of which may depend on , gives . Substituting the three partial derivatives from Steps 2 and 3 gives , which is Leibnitz's rule exactly as stated, with the lower-limit term carrying the minus sign inherited from Step 2.
Worked example
Problem. Evaluate for , using differentiation under the integral sign. This integral has no elementary closed form as it stands, so it cannot be attacked by ordinary antidifferentiation in .
Step 1. Differentiate with respect to under the fixed-limit rule (the limits and are constants, so only the integrand changes): .
Step 2. Compute the partial derivative inside the integral. Since (treating as constant), the in the numerator cancels the in the denominator: . The parameter-dependence has become completely elementary.
Step 3. Integrate back with respect to : , for some constant still to be found.
Step 4. Pin down using a convenient value of where the original integral is directly computable. At , . Substituting into Step 3's formula, , so . Hence .
Competitive stretch
Once is known, particular numerical integrals fall out for free without repeating the method: setting gives , and setting gives . This is the real payoff of the technique — one differentiation-and-integration cycle solves an entire family of integrals indexed by , not just the one you started with.
Common traps
- Using the fixed-limit shortcut (differentiate only the integrand) when the limits actually depend on — in that case the full Leibnitz rule with both boundary terms is required.
- Getting the sign wrong on the lower-limit boundary term: it always enters with a minus sign, , while the upper-limit term is plus.
- Confusing partial and total derivatives — differentiating the integrand means with held constant, never a total derivative in .
- After finding , forgetting the final step: integrate back with respect to and use a specific, directly computable value of (often ) to pin down the constant of integration — skipping this leaves undetermined up to a constant.
Ask the tutor: if choosing which constant to promote to a parameter, or keeping the boundary-term signs straight in the full Leibnitz rule, feels shaky, ask the AI tutor to walk through one or two more parameter-introduction problems with you.
Why does differentiating a hard integral ever make it easier instead of harder?
Differentiating with respect to the parameter only touches the piece of the integrand that actually depends on , and quite often that piece simplifies dramatically — in the worked example, exactly cancelled the awkward in the denominator. The integral in that remains is frequently elementary even though the original integral, still containing in an unremovable way, was not.
How do I decide whether to use the fixed-limit shortcut or the full Leibnitz rule?
Check whether the limits of integration depend on the variable you are differentiating with respect to. If both limits are plain numbers or constants unrelated to , only the integrand changes as varies, so the fixed-limit version applies and you differentiate straight through the integral sign. If either limit is itself a function of , you must include its boundary term, with the correct plus or minus sign, or the answer will be missing a piece.
When I am given a hard integral with no parameter at all, how do I choose one to introduce?
Look for a constant in the integrand that, if replaced by a variable , would make differentiation cancel or simplify an awkward factor — commonly an exponent, as in , or a coefficient inside a trigonometric or exponential term. A good choice is one where removes the exact feature (often a logarithm or a factor of ) that was blocking direct integration. It also helps to pick the parameter so that some specific value, frequently , makes the original integral trivial to evaluate directly, since that value is what fixes your constant of integration at the end.