Mathwords logoMathwords

Differentiation Under the Integral Sign — Definition, Formula & Example

Differentiation under the integral sign is a technique where you take the derivative of an integral with respect to a parameter by differentiating the integrand instead. It often turns a hard integral into an easy one.

Let f(x,t)f(x,t) and ∂f∂t(x,t)\frac{\partial f}{\partial t}(x,t) be continuous on the rectangle [a,b]×[c,d][a,b]\times[c,d]. Then F(t)=∫abf(x,t) dxF(t)=\int_a^b f(x,t)\,dx is differentiable on (c,d)(c,d), and F′(t)=∫ab∂f∂t(x,t) dxF'(t)=\int_a^b \frac{\partial f}{\partial t}(x,t)\,dx. This result is the Leibniz integral rule. It is also called Feynman's trick, and some sources loosely call it integration under the integral sign.

Key Formula

ddt∫abf(x,t) dx=∫ab∂f∂t(x,t) dx\frac{d}{dt}\int_a^b f(x,t)\,dx=\int_a^b \frac{\partial f}{\partial t}(x,t)\,dx
Where:
  • tt = the parameter you differentiate with respect to
  • xx = the variable of integration, which is held fixed when you take ∂/∂t\partial/\partial t
  • f(x,t)f(x,t) = the integrand, which depends on both xx and tt
  • a,ba, b = constant limits of integration that do not depend on tt

Worked Example

Problem: Evaluate ∫01x2ln⁡x dx\int_0^1 x^2\ln x\,dx without integration by parts.
Step 1: Introduce a parameter tt. Use a related integral that is easy to compute for t>−1t>-1.
I(t)=∫01xt dx=1t+1I(t)=\int_0^1 x^t\,dx=\frac{1}{t+1}
Step 2: Differentiate both sides with respect to tt. On the left, move the derivative inside the integral. The partial derivative of xtx^t with respect to tt is xtln⁡xx^t\ln x.
I′(t)=∫01xtln⁡x dx=−1(t+1)2I'(t)=\int_0^1 x^t\ln x\,dx=-\frac{1}{(t+1)^2}
Step 3: Substitute t=2t=2.
∫01x2ln⁡x dx=−1(2+1)2=−19\int_0^1 x^2\ln x\,dx=-\frac{1}{(2+1)^2}=-\frac{1}{9}
Answer: ∫01x2ln⁡x dx=−19\int_0^1 x^2\ln x\,dx=-\frac{1}{9}

Why It Matters

This technique evaluates integrals that resist standard methods, such as the Dirichlet integral ∫0∞sin⁡xx dx=π2\int_0^\infty \frac{\sin x}{x}\,dx=\frac{\pi}{2}. It also appears in probability, where differentiating a moment generating function produces moments, and in physics derivations involving Laplace and Fourier transforms.

Common Mistakes

Mistake: Applying the basic formula when the limits of integration depend on tt.
Correction: If the limits are a(t)a(t) and b(t)b(t), you must add boundary terms: ddt∫a(t)b(t)f dx=f(b(t),t) b′(t)−f(a(t),t) a′(t)+∫a(t)b(t)∂f∂t dx\frac{d}{dt}\int_{a(t)}^{b(t)} f\,dx = f(b(t),t)\,b'(t)-f(a(t),t)\,a'(t)+\int_{a(t)}^{b(t)}\frac{\partial f}{\partial t}\,dx. For improper integrals, you also need extra conditions, such as a dominating integrable bound, before you can swap the derivative and the integral.

Related Terms