Skip to content
MathsGenie logo
Quick links
Open app

Course home

  1. A Level
  2. Maths AQA
  3. Revision guides

1.11.5 Integration by substitution and by parts (A-level only)

What you'll learn

  • How integration by substitution reverses the chain rule.
  • How to choose a suitable substitution and transform an integral completely.
  • How integration by parts reverses the product rule.
  • How to apply integration by parts more than once when necessary.

Before you begin: reversing differentiation

Integration is the inverse process of differentiation. This means that differentiation rules can suggest methods for integrating more complicated expressions.

Two differentiation rules are especially important here:

  • The chain rule differentiates a composite function, such as (3x+1)5\left(3x+1\right)^5(3x+1)5.
  • The product rule differentiates a product of two functions, such as x2exx^2e^xx2ex.

Integration by substitution reverses the chain rule, while integration by parts reverses the product rule.

Integration by substitution

The connection with the chain rule

A composite function is one function applied to another. For example, in sin⁡(x2)\sin\left(x^2\right)sin(x2), the inner function is x2x^2x2 and the outer function is sine.

The chain rule gives

ddxF(g(x))=F′(g(x))g′(x).\frac{d}{dx}F\left(g(x)\right)=F'\left(g(x)\right)g'(x).dxd​F(g(x))=F′(g(x))g′(x).

Reversing this tells you that

∫F′(g(x))g′(x) dx=F(g(x))+C.\int F'\left(g(x)\right)g'(x)\,dx=F\left(g(x)\right)+C.∫F′(g(x))g′(x)dx=F(g(x))+C.

Therefore, an integral containing a function and the derivative of its inner expression is a strong candidate for substitution.

Definition

Integration by substitution

Integration by substitution introduces a new variable, usually uuu, to replace part of the integrand. The aim is to transform the integral into a simpler one that can be integrated directly.

Carrying out a substitution

If you choose

u=g(x),u=g(x),u=g(x),

then differentiate with respect to xxx:

dudx=g′(x).\frac{du}{dx}=g'(x).dxdu​=g′(x).

This can be rearranged as

du=g′(x) dx.du=g'(x)\,dx.du=g′(x)dx.

You must rewrite the whole integral, including the differential dxdxdx, in terms of the new variable.

Key Idea

What makes a useful substitution?

Choose an inner expression whose derivative also appears in the integral, possibly differing only by a constant factor. A successful substitution should leave an integral involving only the new variable.

Example

Integrating a power of a linear expression

Find

∫x(x2+4)5 dx.\int x\left(x^2+4\right)^5\,dx.∫x(x2+4)5dx.
  1. Choose the inner expression u=x2+4u=x^2+4u=x2+4. Differentiating gives du=2x dxdu=2x\,dxdu=2xdx, so x dx=12dux\,dx=\frac{1}{2}duxdx=21​du.

  2. Replace both parts of the integral:

    ∫x(x2+4)5 dx=12∫u5 du.\int x\left(x^2+4\right)^5\,dx =\frac{1}{2}\int u^5\,du.∫x(x2+4)5dx=21​∫u5du.
  3. Integrate with respect to uuu:

    12∫u5 du=u612+C.\frac{1}{2}\int u^5\,du =\frac{u^6}{12}+C.21​∫u5du=12u6​+C.
  4. Substitute back using u=x2+4u=x^2+4u=x2+4:

    (x2+4)612+C.\boxed{\frac{\left(x^2+4\right)^6}{12}+C}.12(x2+4)6​+C​.
Common Mistake

Forgetting the derivative factor

You cannot simply replace x2+4x^2+4x2+4 by uuu and ignore x dxx\,dxxdx. The differential must also be transformed using du=2x dxdu=2x\,dxdu=2xdx.

Finding a suitable substitution

The question may not tell you what substitution to use. Look for an expression inside a power, root, exponential, denominator or trigonometric function.

Useful patterns include:

  • f′(x)(f(x))nf'(x)\left(f(x)\right)^nf′(x)(f(x))n
  • f′(x)f(x)\dfrac{f'(x)}{f(x)}f(x)f′(x)​
  • f′(x)ef(x)f'(x)e^{f(x)}f′(x)ef(x)
  • f′(x)cos⁡(f(x))f'(x)\cos\left(f(x)\right)f′(x)cos(f(x))
  • f′(x)sin⁡(f(x))f'(x)\sin\left(f(x)\right)f′(x)sin(f(x))

A constant multiple of the required derivative is not a problem: you can adjust for it outside the integral.

Example

Choosing a substitution involving a denominator

Find

∫x3x2+5 dx.\int \frac{x}{3x^2+5}\,dx.∫3x2+5x​dx.
  1. The denominator is a natural choice, so let u=3x2+5u=3x^2+5u=3x2+5. Then du=6x dxdu=6x\,dxdu=6xdx, giving x dx=16dux\,dx=\frac{1}{6}duxdx=61​du.

  2. Transform the integral:

    ∫x3x2+5 dx=16∫1u du.\int \frac{x}{3x^2+5}\,dx =\frac{1}{6}\int \frac{1}{u}\,du.∫3x2+5x​dx=61​∫u1​du.
  3. Use ∫1u du=ln⁡∣u∣+C\int \frac{1}{u}\,du=\ln|u|+C∫u1​du=ln∣u∣+C:

    16ln⁡∣u∣+C.\frac{1}{6}\ln|u|+C.61​ln∣u∣+C.
  4. Substitute back:

    16ln⁡∣3x2+5∣+C.\boxed{\frac{1}{6}\ln\left|3x^2+5\right|+C}.61​ln​3x2+5​+C​.

    Since 3x2+53x^2+53x2+5 is always positive, this could also be written as 16ln⁡(3x2+5)+C\frac{1}{6}\ln\left(3x^2+5\right)+C61​ln(3x2+5)+C.

Substitution in definite integrals

For a definite integral, you can transform the limits into values of uuu. Once the limits have been changed, complete the calculation entirely in terms of uuu and do not substitute back to xxx.

Example

Changing the limits of a definite integral

Evaluate

∫012xx2+3 dx.\int_0^1 2x\sqrt{x^2+3}\,dx.∫01​2xx2+3​dx.
  1. Let u=x2+3u=x^2+3u=x2+3, so du=2x dxdu=2x\,dxdu=2xdx. Transform the limits: when x=0x=0x=0, u=3u=3u=3; when x=1x=1x=1, u=4u=4u=4.

  2. Rewrite the integral using the new limits:

    ∫012xx2+3 dx=∫34u1/2 du.\int_0^1 2x\sqrt{x^2+3}\,dx =\int_3^4 u^{1/2}\,du.∫01​2xx2+3​dx=∫34​u1/2du.
  3. Integrate and evaluate:

    ∫34u1/2 du=[23u3/2]34=23(8−33)=163−23.\begin{aligned} \int_3^4 u^{1/2}\,du &=\left[\frac{2}{3}u^{3/2}\right]_3^4\\ &=\frac{2}{3}\left(8-3\sqrt{3}\right)\\ &=\boxed{\frac{16}{3}-2\sqrt{3}}. \end{aligned}∫34​u1/2du​=[32​u3/2]34​=32​(8−33​)=316​−23​​.​
Tip

Two valid approaches to definite integrals

Either change the limits to values of uuu, or find an antiderivative and substitute back to xxx before using the original limits. Do not mix the two approaches.

Integration by parts

The connection with the product rule

The product rule states

ddx(uv)=udvdx+vdudx.\frac{d}{dx}\left(uv\right)=u\frac{dv}{dx}+v\frac{du}{dx}.dxd​(uv)=udxdv​+vdxdu​.

Integrating both sides and rearranging produces the integration-by-parts formula.

Definition

Integration by parts

The formula for integration by parts is

∫udvdx dx=uv−∫vdudx dx.\int u\frac{dv}{dx}\,dx =uv-\int v\frac{du}{dx}\,dx.∫udxdv​dx=uv−∫vdxdu​dx.

It is often written more compactly as

∫u dv=uv−∫v du.\boxed{\int u\,dv=uv-\int v\,du}.∫udv=uv−∫vdu​.

The method is useful when the integrand is a product and differentiating one factor makes it simpler.

Choosing uuu and dvdvdv

You split the integrand into two parts:

  • Choose uuu to be the factor that becomes simpler when differentiated.
  • Choose dvdvdv to be the factor that can be integrated easily.

A useful guide for choosing uuu is LIATE:

  1. Logarithmic functions, such as ln⁡x\ln xlnx
  2. Inverse trigonometric functions
  3. Algebraic functions, such as xxx or x2x^2x2
  4. Trigonometric functions
  5. Exponential functions

This is guidance, not an inflexible rule.

Example

Integrating an algebraic-exponential product

Find

∫xex dx.\int xe^x\,dx.∫xexdx.
  1. Choose u=xu=xu=x because differentiating it makes it simpler, and choose dv=ex dxdv=e^x\,dxdv=exdx because it is easy to integrate. Then du=dxdu=dxdu=dx and v=exv=e^xv=ex.

  2. Apply ∫u dv=uv−∫v du\int u\,dv=uv-\int v\,du∫udv=uv−∫vdu:

    ∫xex dx=xex−∫ex dx.\int xe^x\,dx=xe^x-\int e^x\,dx.∫xexdx=xex−∫exdx.
  3. Complete the remaining integral:

    xex−ex+C.\boxed{xe^x-e^x+C}.xex−ex+C​.
  4. Differentiate the answer to check:

    ddx(xex−ex)=ex+xex−ex=xex.\frac{d}{dx}\left(xe^x-e^x\right) =e^x+xe^x-e^x =xe^x.dxd​(xex−ex)=ex+xex−ex=xex.
Common Mistake

Losing the minus sign

The formula contains a subtraction: uv−∫v duuv-\int v\,duuv−∫vdu. Write the formula before substituting your choices to reduce sign errors.

When there is no obvious product

Some integrals can be treated as products by inserting a factor of 1. This is particularly useful for logarithmic and inverse trigonometric functions.

Example

Integrating a logarithm

Find

∫ln⁡x dx.\int \ln x\,dx.∫lnxdx.
  1. Regard the integrand as 1⋅ln⁡x1\cdot\ln x1⋅lnx. Choose u=ln⁡xu=\ln xu=lnx and dv=dxdv=dxdv=dx, giving du=1xdxdu=\frac{1}{x}dxdu=x1​dx and v=xv=xv=x.

  2. Apply integration by parts:

    ∫ln⁡x dx=xln⁡x−∫x(1x) dx.\int \ln x\,dx =x\ln x-\int x\left(\frac{1}{x}\right)\,dx.∫lnxdx=xlnx−∫x(x1​)dx.
  3. Simplify and integrate:

    xln⁡x−x+C.\boxed{x\ln x-x+C}.xlnx−x+C​.

Applying integration by parts more than once

If the remaining integral is still a product of the same general type, apply integration by parts again. This is common when a polynomial is multiplied by an exponential or trigonometric function.

Example

Applying integration by parts twice

Find

∫x2cos⁡x dx.\int x^2\cos x\,dx.∫x2cosxdx.
  1. Choose u=x2u=x^2u=x2 and dv=cos⁡x dxdv=\cos x\,dxdv=cosxdx. Then du=2x dxdu=2x\,dxdu=2xdx and v=sin⁡xv=\sin xv=sinx, so

    ∫x2cos⁡x dx=x2sin⁡x−∫2xsin⁡x dx.\int x^2\cos x\,dx =x^2\sin x-\int 2x\sin x\,dx.∫x2cosxdx=x2sinx−∫2xsinxdx.
  2. For the remaining integral, choose u=2xu=2xu=2x and dv=sin⁡x dxdv=\sin x\,dxdv=sinxdx. Then du=2 dxdu=2\,dxdu=2dx and v=−cos⁡xv=-\cos xv=−cosx:

    ∫2xsin⁡x dx=−2xcos⁡x+∫2cos⁡x dx.\int 2x\sin x\,dx =-2x\cos x+\int 2\cos x\,dx.∫2xsinxdx=−2xcosx+∫2cosxdx.
  3. Evaluate the final integral:

    ∫2xsin⁡x dx=−2xcos⁡x+2sin⁡x.\int 2x\sin x\,dx=-2x\cos x+2\sin x.∫2xsinxdx=−2xcosx+2sinx.
  4. Substitute this into the result from the first application:

    ∫x2cos⁡x dx=x2sin⁡x−(−2xcos⁡x+2sin⁡x)=x2sin⁡x+2xcos⁡x−2sin⁡x+C.\begin{aligned} \int x^2\cos x\,dx &=x^2\sin x-\left(-2x\cos x+2\sin x\right)\\ &=\boxed{x^2\sin x+2x\cos x-2\sin x+C}. \end{aligned}∫x2cosxdx​=x2sinx−(−2xcosx+2sinx)=x2sinx+2xcosx−2sinx+C​.​
Key Idea

Know which method you are reversing

Use substitution when you can see a composite function together with its inner derivative. Use integration by parts when a product contains a factor that becomes simpler when differentiated.

Common Mistake

Not every substitution succeeds

At this level, substitution questions are limited to cases where one suitable substitution produces an integrable function. If both xxx and uuu remain after your substitution, reconsider your choice or use an algebraic relation to rewrite the remaining xxx-terms.

Exam technique

In the exam

  1. Decide whether the integral resembles a reversed chain rule or a reversed product rule.
  2. For substitution, write uuu, dududu and any changed limits explicitly; check that no xxx remains.
  3. For integration by parts, record uuu, dududu, dvdvdv and vvv before using the formula.
  4. Use brackets carefully when subtracting an integral produced by a second application of integration by parts.
  5. Differentiate your final antiderivative when time allows, and include +C+C+C for every indefinite integral.
Self review

Check yourself

  • What substitution would you try for ∫xcos⁡(x2) dx\int x\cos\left(x^2\right)\,dx∫xcos(x2)dx, and why?
  • How would you choose uuu and dvdvdv when integrating ∫x3ex dx\int x^3e^x\,dx∫x3exdx?
  • When changing the limits of a definite integral to values of uuu, why should you not substitute back to xxx?

How was this guide?

Teach Genie

Review 1.11.5 Integration by substitution and by parts (A-level only) by teaching Genie

Teach it back in your own words, spot gaps, and remember it better.

Start teaching
Genie and Baby Genie

1.11.5 Integration by substitution and by parts (A-level only) Revision Guide

  1. A Level
  2. /Maths
  3. /1.11.5 Integration by substitution and by parts (A-level only)