Euler Hall — free maths guides

Substitution in a definite integral

Convert the limits when substituting in a definite integral. The idea in plain words, a worked example, and a check with the answers shown — part of the free Calculus II guides.

Two correct routes, and one very common wrong one

When a substitution is used in a DEFINITE integral, there are two legitimate routes and they must not be mixed.

Route A — change the limits with the variable. Convertx=ax = a andx=bx = b intouu-values, then evaluate inuu and never substitute back:

∫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.

Route B — substitute back first. Find the indefinite integral inxx, then evaluate ataa andbb as usual.

Both give the same answer. Route A is usually faster; route B is more forgiving if you are unsure.

The error that costs the most marks is mixing them: converting the integrand touu but leaving the limits asxx-values. That evaluates theuu-integral over the wrong interval, and the answer is not merely slightly wrong — it is a different integral.

The limits always change together. In∫012x(x2+1)3 dx\int_0^1 2x(x^2+1)^3\,dx withu=x2+1u = x^2+1, the new limits areu=1u = 1 (fromx=0x=0) andu=2u = 2 (fromx=1x=1) — not 0 and 1.

A quick sanity check: if the new limits are the same as the old ones, that is suspicious unlessgg fixes both endpoints. Usually at least one has moved.

Why the limits transform the way they do

The integral inuu is over the set ofuu-values the variable actually takes. Asxx runs fromaa tobb,u=g(x)u = g(x) runs fromg(a)g(a) tog(b)g(b).

So the new limits are the images of the old ones undergg, in the same order. Ifgg is decreasing,g(a)>g(b)g(a) > g(b), and theuu-integral runs backwards — which is fine, because reversing the limits negates the integral and that is exactly what should happen.

That is the formal justification, and it also explains why the mapping is applied to each limit separately rather than to the interval as a whole.gg does not have to be monotone for a single substitution as long as it is monotone on the interval; if it turns around inside, the substitution is not valid and the integral should be split first.

Worked example: three definite substitutions

*∫023x2(x3+1)2 dx\int_0^2 3x^2(x^3+1)^2\,dx,u=x3+1u = x^3+1.** Limits:x=0⇒u=1x=0 \Rightarrow u=1;x=2⇒u=9x=2 \Rightarrow u=9. So∫19u2 du=[u33]19=243−13=7283\int_1^9 u^2\,du = \left[\frac{u^3}{3}\right]_1^9 = 243 - \frac13 = \frac{728}{3}.

*∫122xx2 dx\int_1^2 \frac{2x}{x^2}\,dx** — hereu=x2u = x^2 givesdu=2x dxdu = 2x\,dx and limits 1 to 4, so∫14duu=ln⁡4\int_1^4\frac{du}{u} = \ln 4.

*∫0π/2cos⁡(2x) dx\int_0^{\pi/2}\cos(2x)\,dx,u=2xu = 2x.** Limits 0 toπ\pi, so12∫0πcos⁡u du=12[sin⁡u]0π=0\frac12\int_0^{\pi}\cos u\,du = \frac12\left[\sin u\right]_0^{\pi} = 0.

The third is worth noting: the answer is 0, which is correct — the cosine's two halves over[0,π][0,\pi] cancel. A student who left the limits at00 andπ2\frac\pi2 would get12[sin⁡u]0π/2=12\frac12\left[\sin u\right]_0^{\pi/2} = \frac12, which is a different integral's answer.

By the end you can
  • Convert the limits when substituting in a definite integral
  • Choose between converting the limits and substituting back
  • Recognise the mixed-route error
Check yourself
  1. 1.∫012x(x2+1) dx\int_0^1 2x(x^2+1)\,dx — new limits?
  2. 2. Evaluate (1).
  3. 3.∫012xx2+1 dx\int_0^1 \frac{2x}{x^2+1}\,dx — new limits, and evaluate.
Answers
  1. 1.uu runs from 1 to 2.
  2. 2.∫12u du=32\int_1^2 u\,du = \frac32.
  3. 3. Limits 1 to 2;∫12duu=ln⁡2\int_1^2\frac{du}{u} = \ln 2.
Work out where to start — free, no accountAnswer six real questions — free, no account