✖

Integration by substitution

Substitution is a very powerful method of integration. While integrating, we replace part of the function with another expression, integrate, and then substitute back.

The basic formula

Let f be a function and F its antiderivative (a function whose derivative is the original function; at A level simply “an integral” of it) on the interval J. Let ϕ be a real function that is differentiable on the interval I and satisfies ϕ(I) ⊆ J. Then

∫f(ϕ(t))⋅ϕ′(t) dt=F(ϕ(t)).

How did we get from the left-hand side to the right-hand side?

We will use this theorem by choosing the substitution x = ϕ(t) and changing the variable of integration – from dt we get dx. The derivative of x with respect to t is dxdt=ϕ′(t), so dx = ϕ′(t) dt. We rewrite the integral on the left by replacing ϕ(t) with x and the whole product ϕ′(t) dt with dx:

∫f(ϕ(t))⋅ϕ′(t) dt=∫f(x) dx

Since F is an antiderivative of f by assumption, we can replace the whole integral with F:

∫f(x) dx=F(x)

Finally, we reverse the substitution: instead of x we write the original ϕ(t):

F(x)=F(ϕ(t))

That gives us the equality from the start:

∫f(ϕ(t))⋅ϕ′(t) dt=…=F(ϕ(t)).

This is roughly how we will use the theorem.

First example

Work out this integral:

∫sin⁡6t dt

We know the formula for the integral of sin x (or here sin t), but we don’t know a formula for sin 6t. So we use a substitution. We will substitute x = 6t. By the formula above,

∫f(ϕ(t))⋅ϕ′(t) dt=∫f(x) dx,

where x = ϕ(t). In our case f = sin and ϕ(t) = 6t. So by the formula we have

∫(sin⁡6t)⋅(6t)′ dt=∫sin⁡x dx,

where x = 6t. The problem is that we want the integral of sin 6t, not of (sin 6t) · (6t)′. What can we do about this? Let’s try differentiating the function 6t. We get:

∫(sin⁡6t)⋅6 dt=∫sin⁡x dx,

The number six is a constant, so we can take it out in front of the whole integral:

6⋅∫(sin⁡6t) dt=∫sin⁡x dx,

Now we divide the whole equation by six:

∫(sin⁡6t) dt=16⋅∫sin⁡x dx,

On the left-hand side we now have the original function that we wanted to integrate at the start. All that remains is to work out the integral on the right-hand side. The integral of sin x is −cos x:

∫(sin⁡6t) dt=16⋅(−cos⁡x),

And we substitute 6t back in for x:

∫(sin⁡6t) dt=−16⋅cos⁡6t+c,

And that is the final result.

First example, made simpler

The previous method was correct, but substitutions are usually written a little differently. Here is the question again:

∫sin⁡6t dt

We write the substitution in brackets after the integral like this:

∫sin⁡6t dt=[x=6tdx=6dt]

On the first line we write our substitution, that is x = 6t. Now we differentiate both sides: the left side with respect to x and the right side with respect to t. On the second line of the first column we will always have dx, because the derivative of x is always 1. So dx just shows that we differentiated with respect to x.

We differentiate the right-hand side in the usual way with respect to t. We get (6t)′ = 6 and add dt, because we differentiated with respect to t. To make our work easier, we can also write dt on its own on the next line:

∫sin⁡6t dt=[x=6tdx=6dtdx6=dt]

In the next step we carry out the substitution itself. What do we replace with what? We want x in place of 6t, so that is the first substitution. Because we are putting the new variable x into the function, we must change dt as well. In place of dt we therefore substitute the value we got on the third line, that is dx/6.

To recap: in place of 6t we write x (first line) and in place of dt we write dx/6 (third line). We get:

∫sin⁡6t dt=[x=6tdx=6dt]=∫sin⁡xdx6

From here the method is completely routine. We take the six out in front of the integral:

∫sin⁡xdx6=16⋅∫sin⁡xdx

We integrate the sine:

16⋅∫sin⁡xdx=16⋅(−cos⁡x)

And we substitute 6t back in for x:

16⋅(−cos⁡x)=−16⋅cos⁡6t+c

Second example

Work out this integral using substitution:

∫tan⁡t dt

You could probably find the integral of tan in a table of standard integrals, but we can just as well work it out ourselves. First we write tan as the quotient sin/cos:

∫tan⁡t dt=∫sin⁡tcos⁡t dt

We choose the substitution x = cos t. We get:

∫sin⁡tcos⁡t dt=[x=cos⁡tdx=−sin⁡t dt]

Now we make dt the subject:

dt=−dxsin⁡t

Now we can substitute into the integral. In place of cos t we write x and in place of dt we write −dx/sin t.

∫sin⁡tcos⁡t dt=[x=cos⁡tdx=−sin⁡t dt]=∫−sin⁡tx⋅dxsin⁡t

A small problem is that the old variable of integration t is still in the expression, inside the sine. Fortunately, the two sines cancel and we are left with:

∫−sin⁡tx⋅dxsin⁡t=∫−dxx

Let’s rewrite this a little to get a nicer expression. We move dx to the right of the fraction and write a one in the numerator. We move the minus sign in front of the integral:

∫−dxx=−∫1x dx

We already know the integral of 1/x: it is a logarithm. So we get:

−∫1x dx=−ln⁡|x|

Finally, we substitute the original cos t back in for x.

−∫1x dx=−ln⁡|x|=−ln⁡|cos⁡t|+c

Third example

Work out this integral using substitution:

∫x⋅sin3⁡t dt

It may confuse you that the integrand contains two variables: x and t. That doesn’t matter at all, because dt tells us that we are integrating with respect to t, so x behaves like a constant. So let’s not panic and simply move x in front of the integral:

∫x⋅sin3⁡t dt=x⋅∫sin3⁡t dt

We don’t have many formulae for sin3, but there is something for sin2, so we rewrite the function like this:

x⋅∫sin3⁡t dt=x⋅∫sin2⁡t⋅sin⁡t dt

Now we rewrite sin2 using the identity sin2t = (1 − cos2t). We get the integral:

x⋅∫sin2⁡t⋅sin⁡t dt=x⋅∫(1−cos2⁡t)⋅sin⁡t dt

Now we substitute. The letter x is already taken, so we use y, for example. We choose y = cos t

x⋅∫(1−cos2⁡t)⋅sin⁡t dt=[y=cos⁡tdy=−sin⁡tdt]

We make dt the subject:

dt=−dysin⁡t

And we substitute into the integral:

x⋅∫(1−cos2⁡t)⋅sin⁡t dt=[y=cos⁡tdy=−sin⁡tdt]=−x⋅∫(1−y2)⋅sin⁡t⋅dysin⁡t

Again the sines cancel nicely:

−x⋅∫(1−y2)⋅sin⁡t⋅dysin⁡t=−x⋅∫(1−y2)⋅dy

We can split this integral into two integrals:

−x⋅∫(1−y2)⋅dy=−x⋅(∫1 dy−∫y2 dy)

These are both standard integrals:

−x⋅(∫1 dy−∫y2 dy)=−x⋅(y−y33)

Now we substitute the original cos t back in for y:

−x⋅(y−y33)=−x⋅(cos⁡t−cos3⁡t3)+c

That is the final result.

Chapters: Integral, Integration by parts, Integration by substitution, Definite integral