Differentiation under the integral sign is a method in calculus and mathematical analysis for finding the derivative of an integral that depends on a parameter. For a function
the method seeks to justify the identity
This interchange is valid under suitable regularity or integrability conditions, but not automatically. When the integration limits also depend on the parameter, additional boundary terms appear. The resulting formula is commonly called the Leibniz integral rule, after Gottfried Wilhelm Leibniz.
Besides computing derivatives, the method can evaluate definite integrals: introducing a parameter may turn a difficult integral into one whose derivative is simpler, after which the original expression is recovered by integration with respect to the parameter.
Fixed integration limits
An elementary version applies on a finite interval. Let be an open interval of parameter values, and suppose that and its partial derivative are continuous on . Then
is continuously differentiable on , and
Continuity on a compact rectangle around each parameter value provides the uniform control needed to exchange differentiation and integration. These hypotheses are convenient sufficient conditions, not necessary ones: the identity can remain valid when the integrand is discontinuous or unbounded.
For example,
satisfies
The integral definition remains well behaved at , even though its explicit expression
has an apparent singularity there.
A dominated-convergence theorem
A more general formulation uses measure theory and the Lebesgue integral. Let be a measure space, let be an open interval, and fix . Suppose that, on an open interval containing :
For every , the function is measurable.
Outside a single set of measure zero, is differentiable throughout .
There is an integrable function such that
for every , outside that same exceptional set.
The function is integrable.
Then is integrable for every , and
The crucial condition is a common integrable bound on the derivatives in a neighborhood of the parameter value. The bound may depend on , but not on within that neighborhood.
Why the theorem works
Differentiation is a limit of difference quotients:
For almost every , the integrand converges to . For real-valued , the mean value theorem bounds its absolute value by . The dominated convergence theorem therefore permits the limit to pass through the integral.
More generally, an integrable bound directly on the difference quotients is sufficient, even if no derivative bound has been established throughout a neighborhood.
For complex-valued integrands with a real parameter, the same result follows by considering real and imaginary parts.
Variable integration limits
If the limits depend on , the derivative includes contributions from the moving endpoints. Under suitable continuity and differentiability assumptions,
satisfies
The first two terms describe the change caused by moving the endpoints; the final term describes the change in the integrand over the interval.
This rule combines differentiation under the integral sign with the fundamental theorem of calculus and the chain rule. For example, if
then
The boundary values in this formula require appropriate regularity. At singular endpoints or infinite limits, the ordinary endpoint formula cannot simply be applied without a separate convergence argument.
Evaluating integrals by introducing a parameter
Differentiation under the integral sign is particularly useful when a derivative simplifies an integrand. The usual procedure is to introduce a parameter, differentiate, evaluate the simpler integral, and then recover the parameter-dependent expression from an initial value.
Consider
where denotes the natural logarithm. The singularity at is removable. Differentiating with respect to gives
To justify the interchange near any fixed , choose a lower bound for nearby parameter values. Since ,
and is integrable on .
Because , integration with respect to yields
The name Feynman's trick is often used informally for this parameter-introduction technique. It is not a separate theorem and does not dispense with the conditions required for the interchange.
Improper integrals and repeated derivatives
For an integral over an unbounded interval,
continuity of and on every bounded rectangle is not enough. Additional control is needed near infinity and near any singular endpoint. A dominating integrable function provides one such control; suitable uniform convergence conditions provide another.
The gamma function illustrates repeated differentiation:
For every nonnegative integer ,
To justify this locally, restrict to a compact interval . Near zero, the absolute value of the integrand is bounded by
which is integrable. For , it is bounded by
which is also integrable.
More generally,
holds when the necessary interchange conditions are satisfied at each differentiation step. Justifying one derivative does not automatically justify every higher derivative.
Failure without adequate control
The existence of pointwise derivatives does not guarantee that differentiation commutes with integration.
For , define
For every fixed ,
so
However, for ,
while . Consequently,
Thus is not differentiable at zero, although every pointwise derivative of the integrand at zero exists.
The failure results from concentration near : the difference quotients approach zero at every fixed , but retain a nonvanishing integral. Pointwise convergence alone does not control this behavior.
Applications
Integral transforms
For a Laplace transform,
suitable integrability conditions give
Differentiation in the transform variable therefore corresponds to multiplication by powers of the original variable.
For the Fourier transform convention
the assumptions and imply
Expectations and statistical models
An expectation under a fixed probability law is an integral, so the same principles yield
when the derivative is appropriately dominated.
If the probability density also depends on the parameter, its derivative must be included:
This formula assumes a fixed integration domain and valid interchange conditions. Parameter-dependent support may require additional boundary terms. Such distinctions matter when differentiating normalization identities and deriving properties of Fisher information.
Sensitivity analysis and integral representations
In sensitivity analysis, differentiation under the integral sign expresses how an integrated quantity changes as a model parameter varies. For a vector parameter , componentwise conditions can justify
The method also appears in integral representations of solutions to partial differential equations, where derivatives with respect to space or time are transferred to an integral kernel. The required bounds depend on the kernel's singularities, the integration domain, and the regularity of the data.