Resources For Teachers For Tutors For Students & Parents Pricing
Year 12 Specialist (Unit 3 & 4) Integration techniques

Definite integrals by substitution

20 practice questions 0 video lessons Theory + worked examples

Master definite integrals by substitution for Year 12 Specialist Mathematics in Queensland (QCAA). This is the \(u\)-substitution method applied to bounded integrals, where the smart move is to change the limits of integration to \(u\)-values so the whole calculation finishes in \(u\).

You will learn to choose \(u=g(x)\), convert \(dx\) through \(du\), replace the limits with \(u=g(a)\) and \(u=g(b)\), and evaluate directly without back-substituting — the technique behind exact areas, logarithms and \(\pi\)-values that recurs across the integration topic and beyond.

Create a free accountTrack your progress and save your work as you go.
Create free account

Theory

Definite integrals by substitution extend the \(u\)-substitution method to bounded integrals in Year 12 Specialist Mathematics (QCAA, Queensland). The efficient approach is to change the limits of integration to \(u\)-values — if \(u=g(x)\), the limits \(x=a,\ x=b\) become \(u=g(a),\ u=g(b)\) — so the integral is finished entirely in \(u\) with no back-substitution. This page shows the full process with worked examples.

A definite integral \(\displaystyle\int_a^b f(x)\,dx\) has lower and upper limits of integration \(x=a\) and \(x=b\), and evaluates to a number. When the integrand has the form \(f(g(x))\,g'(x)\), the substitution \(u=g(x)\) works just as for an indefinite integral — but the limits must be handled as well.

The neat method is to change the limits to \(u\)-values. As \(x\) runs from \(a\) to \(b\), the new variable \(u=g(x)\) runs from \(g(a)\) to \(g(b)\). Rewriting everything — integrand, \(dx\) and both limits — gives an integral entirely in \(u\).

Because the limits are now \(u\)-values, you do not back-substitute. Once the antiderivative in \(u\) is found, evaluate it straight away at the new limits \(u=g(a)\) and \(u=g(b)\).

The bridge is still \(du=g'(x)\,dx\), and a missing constant factor is carried outside, for example \(x\,dx=\tfrac{1}{2}\,du\). A definite integral needs no \(+c\), and its value may be a fraction, a surd, a logarithm or a multiple of \(\pi\).

Changing the limits to u-values An x number line marks the old limits x = 0 and x = 2. Through the substitution u = x squared plus 1 these map to the new limits u = 1 and u = 5 on a u number line, so the integral is evaluated in u without back-substituting. x x=0 x=2 u u=1 u=5 0²+1=1 2²+1=5 u = x² + 1
Changing the limits: under \(u=x^2+1\) the \(x\)-limits \(0\) and \(2\) become the \(u\)-limits \(1\) and \(5\), so the integral is evaluated in \(u\).
The definite integral as a shaded area The region under the curve y = f(x) between x = a and x = b is shaded; its area is the value of the definite integral, which substitution evaluates by changing the limits to u = g(a) and u = g(b). x y x=a x=b area y=f(x)
The definite integral \(\int_a^b f(x)\,dx\) is the shaded area; substitution evaluates it by rewriting the limits as \(u=g(a)\) and \(u=g(b)\).

The change-of-variable rule for a definite integral: if \(u=g(x)\) with \(du=g'(x)\,dx\), then the limits change with the variable:

\[ \int_a^b f(g(x))\,g'(x)\,dx = \int_{g(a)}^{g(b)} f(u)\,du \]
abf(g(x))g(x)dx=g(a)g(b)f(u)du

A constant factor is carried outside, for example when \(du=2x\,dx\):

\[ \int_a^b x\,f(x^2+k)\,dx = \tfrac{1}{2}\int_{a^2+k}^{\,b^2+k} f(u)\,du \]

Two standard results that substitution reaches after completing the square are the logarithm and inverse-tangent forms:

\[ \int_a^b \dfrac{f'(x)}{f(x)}\,dx = \Big[\ln\lvert f(x)\rvert\Big]_a^b, \qquad \int \dfrac{du}{u^2+p^2} = \dfrac{1}{p}\arctan\dfrac{u}{p}+c \]
Change the limits, then stop. Once the limits are written as \(u=g(a)\) and \(u=g(b)\), evaluate in \(u\) directly — there is no need to return to \(x\).

How to evaluate a definite integral by substitution

  1. Choose \(u\): pick the inner function \(g(x)\) whose derivative appears in the integrand, and find \(du=g'(x)\,dx\) (rearranging to a factor such as \(x\,dx=\tfrac{1}{2}\,du\) if needed).
  2. Change the limits: compute the new \(u\)-limits, \(u=g(a)\) at the lower end and \(u=g(b)\) at the upper end.
  3. Rewrite in \(u\): replace every \(x\), the \(dx\) and both limits so the integral is \(\displaystyle\int_{g(a)}^{g(b)} f(u)\,du\).
  4. Integrate and evaluate: find the antiderivative in \(u\) and evaluate it at the new limits — no back-substitution, no \(+c\).
Example 1 — Power, change the limits
Evaluate \(\displaystyle\int_0^2 x\,(x^2+1)^3\,dx\) using \(u=x^2+1\).
Solution

Substitute \(u=x^2+1\) and relate \(x\,dx\) to \(du\):

\(u\)\(=\)\(x^2+1\)
\(\dfrac{du}{dx}\)\(=\)\(2x\)
\(x\,dx\)\(=\)\(\dfrac{1}{2}\,du\)

Change the limits to \(u\)-values:

\(x=0\)\(\Rightarrow\)\(u=0^2+1=1\)
\(x=2\)\(\Rightarrow\)\(u=2^2+1=5\)

Rewrite in \(u\) and evaluate — no back-substitution:

\(\int_0^2 x\,(x^2+1)^3\,dx\)\(=\)\(\dfrac{1}{2}\int_1^5 u^3\,du\)
\(=\)\(\dfrac{1}{2}\left[\dfrac{u^4}{4}\right]_1^5\)
\(=\)\(\dfrac{1}{8}\left(625-1\right)\)
\(=\)\(\dfrac{1}{8}\times 624\)
\(=\)\(78\)

\(\displaystyle\int_0^2 x\,(x^2+1)^3\,dx=78\).

Example 2 — The \(f'/f\) logarithm form
Evaluate \(\displaystyle\int_1^2 \dfrac{2x+1}{x^2+x}\,dx\) using \(u=x^2+x\).
Solution

The numerator is exactly the derivative of the denominator, so \(u=x^2+x\):

\(u\)\(=\)\(x^2+x\)
\(\dfrac{du}{dx}\)\(=\)\(2x+1\)
\(du\)\(=\)\((2x+1)\,dx\)

Change the limits to \(u\)-values:

\(x=1\)\(\Rightarrow\)\(u=1+1=2\)
\(x=2\)\(\Rightarrow\)\(u=4+2=6\)

Rewrite as a \(\tfrac{1}{u}\) integral and evaluate:

\(\int_1^2 \dfrac{2x+1}{x^2+x}\,dx\)\(=\)\(\int_2^6 \dfrac{1}{u}\,du\)
\(=\)\(\left[\ln|u|\right]_2^6\)
\(=\)\(\ln 6-\ln 2\)
\(=\)\(\ln 3\)

\(\displaystyle\int_1^2 \dfrac{2x+1}{x^2+x}\,dx=\ln 3\).

Example 3 — Trig substitution, mind the sign
Evaluate \(\displaystyle\int_0^{\pi/3} \tan x\,dx\) using \(u=\cos x\).
Solution

Write \(\tan x=\dfrac{\sin x}{\cos x}\); with \(u=\cos x\), \(\sin x\,dx=-du\):

\(u\)\(=\)\(\cos x\)
\(\dfrac{du}{dx}\)\(=\)\(-\sin x\)
\(\sin x\,dx\)\(=\)\(-\,du\)

Change the limits to \(u\)-values:

\(x=0\)\(\Rightarrow\)\(u=\cos 0=1\)
\(x=\dfrac{\pi}{3}\)\(\Rightarrow\)\(u=\cos\dfrac{\pi}{3}=\dfrac{1}{2}\)

Rewrite in \(u\); the minus sign flips the limits, then integrate:

\(\int_0^{\pi/3} \tan x\,dx\)\(=\)\(-\int_1^{1/2} \dfrac{1}{u}\,du\)
\(=\)\(\int_{1/2}^{1} \dfrac{1}{u}\,du\)
\(=\)\(\left[\ln|u|\right]_{1/2}^{1}\)
\(=\)\(\ln 1-\ln\dfrac{1}{2}\)
\(=\)\(\ln 2\)

\(\displaystyle\int_0^{\pi/3} \tan x\,dx=\ln 2\).

Example 4 — Complete the square, then substitute
Evaluate \(\displaystyle\int_2^4 \dfrac{1}{x^2-4x+8}\,dx\).
Solution

Complete the square in the denominator:

\(x^2-4x+8\)\(=\)\((x^2-4x+4)+4\)
\(=\)\((x-2)^2+4\)

Substitute \(u=x-2\) and change the limits:

\(u\)\(=\)\(x-2\)
\(du\)\(=\)\(dx\)
\(x=2\)\(\Rightarrow\)\(u=0\)
\(x=4\)\(\Rightarrow\)\(u=2\)

Rewrite as an arctan standard form and evaluate:

\(\int_2^4 \dfrac{1}{(x-2)^2+4}\,dx\)\(=\)\(\int_0^2 \dfrac{1}{u^2+4}\,du\)
\(=\)\(\dfrac{1}{2}\left[\arctan\dfrac{u}{2}\right]_0^2\)
\(=\)\(\dfrac{1}{2}\left(\arctan 1-\arctan 0\right)\)
\(=\)\(\dfrac{1}{2}\times\dfrac{\pi}{4}\)
\(=\)\(\dfrac{\pi}{8}\)

\(\displaystyle\int_2^4 \dfrac{1}{x^2-4x+8}\,dx=\dfrac{\pi}{8}\).

Common pitfalls

Keeping the original \(x\)-limits. If you change the variable to \(u\) you must change the limits too. Evaluating an antiderivative in \(u\) at \(x=a\) and \(x=b\) mixes the two variables and gives the wrong value.
Back-substituting unnecessarily. Once the limits are \(u\)-values there is no need to return to \(x\). Substituting back and then also using \(x\)-limits is double work and a common source of error.
Forgetting the constant factor. When \(du=2x\,dx\) but only \(x\,dx\) appears, carry the \(\tfrac{1}{2}\) outside; do not treat \(x\,dx\) as \(du\).
Dropping a sign or a flipped limit. With \(u=\cos x\) the factor \(\sin x\,dx=-du\); the minus sign (or swapping the limits to remove it) must be carried through.

Frequently asked questions

Do you change the limits when integrating by substitution?

For a definite integral, yes — changing the limits to \(u\)-values is the efficient method. If \(u=g(x)\) then the limits \(x=a,\ x=b\) become \(u=g(a),\ u=g(b)\), and you evaluate entirely in \(u\).

Why don't you back-substitute for a definite integral?

Because the limits are already written as \(u\)-values. Once the antiderivative in \(u\) is found, evaluate it at \(u=g(a)\) and \(u=g(b)\); returning to \(x\) is unnecessary.

What are the new limits if \(u=x^2+1\) and \(x\) runs from \(0\) to \(2\)?

Substitute each old limit: \(x=0\) gives \(u=0^2+1=1\), and \(x=2\) gives \(u=2^2+1=5\), so the new limits are \(u=1\) and \(u=5\).

Do you add \(+c\) to a definite integral?

No. The constant of integration cancels when you evaluate at the two limits, so a definite integral gives a single number with no \(+c\).

What happens to the sign when \(u=\cos x\)?

Differentiating gives \(du=-\sin x\,dx\), so \(\sin x\,dx=-du\). The minus sign is carried out front, or you can swap the two limits to absorb it.

When does a definite substitution give \(\pi\) or a logarithm?

Completing the square and substituting can turn an integrand into \(\dfrac{1}{u^2+p^2}\), giving an \(\arctan\) and often a multiple of \(\pi\); an \(\dfrac{f'(x)}{f(x)}\) integrand gives a natural logarithm.