Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools

How to Use Substitution in a Definite Integral

Same substitution, one extra move: the limits of integration are values of xx, so convert them to values of uu and never go back to xx. Or keep the xx-limits and substitute back before evaluating. The two routes must not be mixed.

Recognize the task

A definite integral ∫ab\int_a^b whose integrand needs substitution: ∫022xcos⁡(x2) dx\int_0^2 2x\cos(x^2)\,dx, ∫1eln⁡xx dx\int_1^e \frac{\ln x}{x}\,dx, ∫0π/2sin⁡2xcos⁡x dx\int_0^{\pi/2}\sin^2 x\cos x\,dx.
The substitution itself is the method for u-substitution; the evaluation is the Fundamental Theorem, Part 2.

Two ways to do it

Convert the limitsusual choice
∫abf(g(x)) g′(x) dx=∫g(a)g(b)f(u) du\int_a^b f(g(x))\,g'(x)\,dx = \int_{g(a)}^{g(b)} f(u)\,du
Plug each xx-limit into u=g(x)u = g(x), then finish entirely in uu. No back-substitution needed.
Keep the x-limitsalternative
[F(g(x))]x=ax=b\Big[F(g(x))\Big]_{x=a}^{x=b}
Find the antiderivative in uu, write it back in xx, then use the original limits. Mark the limits with x=x = so they are not mistaken for uu-values.

Steps

StepOn ∫022xcos⁡(x2) dx\int_0^2 2x\cos(x^2)\,dx
1Choose u and find du. Exactly as for an indefinite integral.u=x2,du=2x dxu = x^2,\quad du = 2x\,dx
2Convert both limits with the same u. Lower limit x=ax = a becomes u=g(a)u = g(a), upper x=bx = b becomes u=g(b)u = g(b). Keep them in that order even if g(a)>g(b)g(a) > g(b).x=0→u=0,x=2→u=4x = 0 \to u = 0,\qquad x = 2 \to u = 4
3Rewrite the integral in u with the new limits. Nothing in xx may remain, including the limits.∫04cos⁡u du\int_0^4 \cos u\,du
4Integrate and evaluate in u. Fundamental Theorem, Part 2: antiderivative at the upper limit minus at the lower.Standard trig antiderivatives ↗[sin⁡u]04=sin⁡4−0≈−0.757\big[\sin u\big]_0^4 = \sin 4 - 0 \approx -0.757

Worked examples

Example 1 · converted limits

basic
∫022xcos⁡(x2) dx\int_0^2 2x\cos(x^2)\,dx
u=x2u = x^2: limits 0→00 \to 0, 2→42 \to 4
=∫04cos⁡u du=[sin⁡u]04= \int_0^4 \cos u\,du = \big[\sin u\big]_0^4
all in uu
=sin⁡4≈−0.757= \sin 4 \approx -0.757
not sin⁡2\sin 2

Example 2 · logarithm limits

u = ln x
∫1eln⁡xx dx\int_1^e \frac{\ln x}{x}\,dx
u=ln⁡xu = \ln x: limits ln⁡1=0\ln 1 = 0, ln⁡e=1\ln e = 1
=∫01u du=[u22]01= \int_0^1 u\,du = \Big[\frac{u^2}{2}\Big]_0^1
power rule
=12= \tfrac{1}{2}

Example 3 · saved trig factor

u = sin x
∫0π/2sin⁡2xcos⁡x dx\int_0^{\pi/2} \sin^2 x\cos x\,dx
u=sin⁡xu = \sin x, du=cos⁡x dxdu = \cos x\,dx: limits 0→00 \to 0, π2→1\frac{\pi}{2} \to 1
=∫01u2 du=[u33]01= \int_0^1 u^2\,du = \Big[\frac{u^3}{3}\Big]_0^1
power rule
=13= \tfrac{1}{3}

See it happen

A substitution stretches and relabels the xx-axis into a uu-axis. The area does not change, but its endpoints now carry uu-names. Evaluating sin⁡u\sin u between the old xx-endpoints 00 and 22 measures the wrong stretch of the new axis.

Common mistakes

Keeping the x-limits after switching to u

✗ [sin⁡u]02=sin⁡2\big[\sin u\big]_0^2 = \sin 2
✓ [sin⁡u]04=sin⁡4\big[\sin u\big]_0^4 = \sin 4, or substitute back to xx first

Reordering limits that came out decreasing

✗ u=cos⁡xu = \cos x on [0,π2][0, \frac{\pi}{2}] gives limits 1→01 \to 0, "so write ∫01\int_0^1"
✓ keep ∫10\int_1^0; swapping the limits changes the sign (reversing limits)

Converting the limits with a different u

✗ limits from u=2xu = 2x while the integrand used u=x2u = x^2
✓ the same u=g(x)u = g(x) converts the integrand, dxdx and both limits