H5 - Integration by substitution

H5 - Integration by substitution

Turn a complicated-looking integral into a simpler one by choosing one new variable. You will reverse the chain rule, rewrite the whole integrand, handle square-root domains and change definite-integral limits consistently.

Recognising the reverse chain rule

Can you integrate 6x(3x2+4)36x(3x^2+4)^3 without expanding the cube? Differentiating (3x2+4)4(3x^2+4)^4 produces 4(3x2+4)3(6x)4(3x^2+4)^3(6x). The integral is therefore one quarter of that fourth power. The outside factor 6x6x is the clue: it is the derivative of the inside expression.

You already know

The chain rule gives ddxG(f(x))=G′(f(x))f′(x)\frac{d}{dx}G(f(x))=G'(f(x))f'(x). The power rule integrates xnx^n by raising the power and dividing by the new power, provided n≠−1n\ne-1.

A substitution names an expression, such as u=3x2+4u=3x^2+4, as a new variable. Differentiating gives du=6x dxdu=6x\,dx. This is a compact way of reversing the chain rule: the differential changes along with the expression.

Reverse chain rule

If G′(u)=g(u)G'(u)=g(u), then, on an interval where the functions are defined,

∫f′(x)g(f(x)) dx=G(f(x))+C\int f'(x)g(f(x))\,dx=G(f(x))+C

In particular,

∫f′(x)[f(x)]n dx=[f(x)]n+1n+1+Cn≠−1\int f'(x)[f(x)]^n\,dx=\frac{[f(x)]^{n+1}}{n+1}+C \qquad n\ne-1

Not in the formula booklet: learn it.

The excluded power −1-1 needs a logarithm instead. The booklet supplies ∫f′(x)/f(x) dx=ln⁡∣f(x)∣+C\int f'(x)/f(x)\,dx=\ln|f(x)|+C, on an interval where f(x)≠0f(x)\ne0. A constant multiple of the inside derivative can be adjusted outside the integral.

Worked example 1: avoid expanding a cube

Question. Find ∫6x(3x2+4)3 dx\int6x(3x^2+4)^3\,dx.

Plan. Name the bracket uu, so its derivative replaces the whole factor 6x dx6x\,dx.

u=3x2+4choose the insidedu=6x dxdifferentiate∫6x(3x2+4)3 dx=∫u3 dureplace both factors=u44+Cpower rule\begin{aligned} u&=3x^2+4 && \text{choose the inside} \\ du&=6x\,dx && \text{differentiate} \\ \int6x(3x^2+4)^3\,dx&=\int u^3\,du && \text{replace both factors} \\ &=\frac{u^4}{4}+C && \text{power rule} \end{aligned}

Why this step? Choosing the bracket makes its derivative appear exactly, leaving one simple power of uu.

Answer. 14(3x2+4)4+C\frac14(3x^2+4)^4+C.

Check. Differentiating gives 14×4(3x2+4)3×6x=6x(3x2+4)3\frac14\times4(3x^2+4)^3\times6x=6x(3x^2+4)^3.

Now change only the outer power, from 33 to −1-1. The same substitution works, but the antiderivative changes from a power to a logarithm.

Worked example 2: the exceptional power

Question. Find ∫6x3x2+4 dx\int\frac{6x}{3x^2+4}\,dx.

Plan. Use the same inside expression and integrate its reciprocal.

u=3x2+4same insidedu=6x dxsame differential∫6x3x2+4 dx=∫1u durewrite completely=ln⁡∣u∣+Clogarithm rule\begin{aligned} u&=3x^2+4 && \text{same inside} \\ du&=6x\,dx && \text{same differential} \\ \int\frac{6x}{3x^2+4}\,dx&=\int\frac1u\,du && \text{rewrite completely} \\ &=\ln|u|+C && \text{logarithm rule} \end{aligned}

Why this step? The power rule would divide by zero at power −1-1; the supplied derivative-ratio rule handles this case.

Answer. ln⁡(3x2+4)+C\ln(3x^2+4)+C, since 3x2+4>03x^2+4>0 for every real xx.

Check. Its derivative is 6x/(3x2+4)6x/(3x^2+4), with the denominator positive everywhere.

You can recognise the pattern without writing a substitution every time. Writing it remains a useful way to check the missing constant factor.

Watch out

Wrong: ∫6x(3x2+4)3 dx=(3x2+4)4+C\int6x(3x^2+4)^3\,dx=(3x^2+4)^4+C. Its derivative is four times too large. Divide by the new power: the correct coefficient is 1/41/4.

Change the outer power once more in your turn. The inside derivative still matches exactly.

Changing the whole integrand

Sometimes the inside derivative does not remove every xx, but a little rearrangement does. In xx+2x\sqrt{x+2}, naming x+2x+2 as uu also tells you that x=u−2x=u-2. That extra line turns the product into ordinary powers.

Choose a substitution that leads directly to something you can integrate. Before integrating, every expression and the differential must use the new variable. An integral containing both xx and uu is unfinished.

Worked example 3: rewrite the remaining factor

Question. Find ∫xx+2 dx\int x\sqrt{x+2}\,dx, for x>−2x>-2.

Plan. Set u=x+2u=x+2, express xx in terms of uu, then expand into two powers.

u=x+2,x=u−2rearrangedx=dudifferentiate∫xx+2 dx=∫(u−2)u1/2 dureplace every x=∫(u3/2−2u1/2) duexpand=25u5/2−43u3/2+Cintegrate each power\begin{aligned} u&=x+2,\quad x=u-2 && \text{rearrange} \\ dx&=du && \text{differentiate} \\ \int x\sqrt{x+2}\,dx&=\int(u-2)u^{1/2}\,du && \text{replace every }x \\ &=\int(u^{3/2}-2u^{1/2})\,du && \text{expand} \\ &=\frac25u^{5/2}-\frac43u^{3/2}+C && \text{integrate each power} \end{aligned}

Why this step? The relation x=u−2x=u-2 removes the factor outside the root as well as the root itself.

Answer. 25(x+2)5/2−43(x+2)3/2+C\frac25(x+2)^{5/2}-\frac43(x+2)^{3/2}+C, for x>−2x>-2.

Check. Differentiation gives (x+2)3/2−2(x+2)1/2=xx+2(x+2)^{3/2}-2(x+2)^{1/2}=x\sqrt{x+2}.

Change only the constant inside the root, from 22 to 33. The rearranged factor and the original domain both change with it.

Worked example 4: track the changed shift

Question. Find ∫xx+3 dx\int x\sqrt{x+3}\,dx, for x>−3x>-3.

Plan. Name x+3x+3 as uu, then integrate the resulting two powers.

u=x+3,x=u−3,dx=duchange variable∫xx+3 dx=∫(u3/2−3u1/2) duexpand=25u5/2−2u3/2+Cpower rule\begin{aligned} u&=x+3,\quad x=u-3,\quad dx=du && \text{change variable} \\ \int x\sqrt{x+3}\,dx&=\int(u^{3/2}-3u^{1/2})\,du && \text{expand} \\ &=\frac25u^{5/2}-2u^{3/2}+C && \text{power rule} \end{aligned}

Why this step? The coefficient 33 comes from rewriting xx; it is not changed by naming the root's inside.

Answer. 25(x+3)5/2−2(x+3)3/2+C\frac25(x+3)^{5/2}-2(x+3)^{3/2}+C, for x>−3x>-3.

Check. The derivative is (x+3)3/2−3(x+3)1/2=xx+3(x+3)^{3/2}-3(x+3)^{1/2}=x\sqrt{x+3}.

There is a second neat route through Worked example 3: set w=x+2w=\sqrt{x+2}. Then x=w2−2x=w^2-2 and dx=2w dwdx=2w\,dw, giving ∫(2w4−4w2) dw=2w5/5−4w3/3+C\int(2w^4-4w^2)\,dw=2w^5/5-4w^3/3+C. Naming the inside or naming its root leads to exactly the same answer after substituting back. Both routes use just one substitution. These power antiderivatives are not in the formula booklet: learn the power rule.

Watch out

Wrong: ∫xx+3 dx=∫xu du\int x\sqrt{x+3}\,dx=\int x\sqrt u\,du, followed by treating xx as a constant. Here x=u−3x=u-3, so it varies with uu. Correct the integral to ∫(u−3)u du\int(u-3)\sqrt u\,du.

The next question changes the shift again. State the differential as well as the substitution if you use this route.

Substitution in the other direction and domains

A substitution can instead give the original variable in terms of a new one. With x=sin⁡θx=\sin\theta, the expression 1−x21-x^2 becomes cos⁡2θ\cos^2\theta. This is useful only if you also handle the square root's sign.

Continue this lesson.

You’re previewing NovaLearn without an account. Create a free account to read the rest.

Create free account