H5PureStretch

Integration by Parts

Substitution handles a function multiplied by its own derivative — but what about ∫xsin⁡x dx\int x\sin x\,dx, where the two factors are completely unrelated? Integration by parts reverses the product rule instead, turning one hard integral into an easier one.

34 min Video by TLMaths Integration

The big picture

Integration by parts is the mirror image of the product rule for differentiation. When an integral is a product of two genuinely different types of function (a polynomial times a trig function, or times exe^x, or times ln⁡x\ln x), this technique transfers the differentiation from one factor onto the other — repeatedly, if necessary — until what remains is something you can integrate directly. Choosing which factor to differentiate and which to integrate is the entire skill.

A-Level Maths H5-26: Further Integration: Introducing Integration by Parts & LATECurated by Kepler, not produced by us. Watch it, then work through the notes below.
Open on YouTube

What you'll be able to do

  • State and apply the integration by parts formula
  • Use the LATE priority (Logs, Algebraic, Trig, Exponential) to choose u and dv
  • Apply integration by parts to definite integrals
  • Recognise when integration by parts must be applied more than once
1

The integration by parts formula

Reversing the product rule for differentiation gives a formula that swaps which factor is differentiated: you differentiate one part (uu) and integrate the other (dvdx\dfrac{dv}{dx}), and the resulting integral is (hopefully) easier than the original.

∫udvdx dx=uv−∫vdudx dx\int u\dfrac{dv}{dx}\,dx = uv - \int v\dfrac{du}{dx}\,dx
Choose u to differentiate, dv/dx to integrate.
Example 1Integrate ∫xcos⁡x dx\int x\cos x\,dx.
1Let u=xu=x (differentiates to something simpler) and dvdx=cos⁡x\dfrac{dv}{dx}=\cos x.
2dudx=1\dfrac{du}{dx}=1; integrating dvdx\dfrac{dv}{dx} gives v=sin⁡xv=\sin x.
3Apply the formula: ∫xcos⁡x dx=xsin⁡x−∫sin⁡x dx\int x\cos x\,dx = x\sin x - \int \sin x\,dx.
4Integrate the remaining piece: ∫sin⁡x dx=−cos⁡x\int\sin x\,dx = -\cos x.
Answer
xsin⁡x+cos⁡x+cx\sin x + \cos x + c

Tip — Choosing u=xu=x was deliberate: differentiating it gives just 11, making the new integral simpler. Choosing u=cos⁡xu=\cos x instead would have made things WORSE, not better.

2

Choosing u: the LATE priority

A useful memory aid for choosing uu is LATE\textbf{LATE}: prefer, in order, L\textbf{L}ogarithmic, A\textbf{A}lgebraic (powers of xx), T\textbf{T}rigonometric, E\textbf{E}xponential. The earlier a function type appears in this list, the more likely it should be uu (since differentiating it tends to simplify things, or it cannot easily be integrated at all, as with ln⁡x\ln x).

Example 1Integrate ∫xln⁡x dx\int x\ln x\,dx.
1By LATE, logarithmic beats algebraic: let u=ln⁡xu=\ln x, dvdx=x\dfrac{dv}{dx}=x.
2dudx=1x\dfrac{du}{dx}=\dfrac1x; integrating gives v=x22v=\dfrac{x^2}{2}.
3Apply the formula: ∫xln⁡x dx=x22ln⁡x−∫x22×1x dx=x22ln⁡x−∫x2 dx\int x\ln x\,dx = \dfrac{x^2}{2}\ln x - \int\dfrac{x^2}{2}\times\dfrac1x\,dx = \dfrac{x^2}{2}\ln x - \int\dfrac{x}{2}\,dx.
4Integrate the remaining piece: x24\dfrac{x^2}{4}.
Answer
x22ln⁡x−x24+c\dfrac{x^2}{2}\ln x - \dfrac{x^2}{4} + c
Why this works

ln⁡x\ln x cannot be integrated using any rule met so far, so it MUST be chosen as uu (to be differentiated, not integrated) whenever it appears in a product.

3

Repeated application

Sometimes the new integral produced still contains a product requiring the SAME technique again — apply integration by parts a second time, keeping the same choice pattern for uu (e.g. still the algebraic factor) consistently.

Example 1Integrate ∫x2ex dx\int x^2e^x\,dx.
1Let u=x2u=x^2, dvdx=ex\dfrac{dv}{dx}=e^x, so dudx=2x\dfrac{du}{dx}=2x, v=exv=e^x.
2Apply once: ∫x2ex dx=x2ex−∫2xex dx\int x^2e^x\,dx = x^2e^x - \int 2xe^x\,dx.
3The remaining integral ∫2xex dx\int2xe^x\,dx still needs parts: let u=2xu=2x, dvdx=ex\dfrac{dv}{dx}=e^x, giving ∫2xex dx=2xex−∫2ex dx=2xex−2ex\int2xe^x\,dx=2xe^x-\int2e^x\,dx=2xe^x-2e^x.
4Combine: x2ex−(2xex−2ex)=x2ex−2xex+2exx^2e^x-(2xe^x-2e^x) = x^2e^x-2xe^x+2e^x.
Answer
x2ex−2xex+2ex+cx^2e^x-2xe^x+2e^x+c

Think like an examiner

  • Use LATE to decide uu: Logarithmic, Algebraic, Trigonometric, Exponential, in that priority order.
  • Write out uu, dudx\dfrac{du}{dx}, dvdx\dfrac{dv}{dx} and vv clearly before substituting into the formula — this structure earns method marks even if the final algebra goes wrong.
  • If the new integral is still a product needing parts again, repeat the SAME choice logic consistently.

Common misconceptions

Choosing u and dv/dx the wrong way round, making the new integral harder.
Use LATE: logarithms and algebraic (polynomial) terms are usually chosen as uu, since they simplify (or cannot be integrated) when differentiated.
Forgetting the minus sign in the formula uv−∫vdudx dxuv-\int v\dfrac{du}{dx}\,dx.
The formula subtracts the new integral — dropping this sign is a very common algebra slip.
Stopping after one application when the resulting integral is still a product.
If the new integral still needs integration by parts, apply it again rather than giving up or guessing.

Integration by parts

∫udvdx dx=uv−∫vdudx dx\int u\dfrac{dv}{dx}\,dx = uv - \int v\dfrac{du}{dx}\,dx
The integration by parts formula.
LATE priority for u:Log, Algebraic, Trig, Exp\text{LATE priority for } u: \text{Log, Algebraic, Trig, Exp}
Choosing which factor to differentiate.

Stretch yourself

Evaluate ∫01xe2x dx\int_0^1 xe^{2x}\,dx using integration by parts, giving an exact answer in terms of ee.

Hint — Let u=xu=x, dvdx=e2x\dfrac{dv}{dx}=e^{2x}; remember integrating e2xe^{2x} needs the reverse chain rule, giving v=12e2xv=\tfrac12e^{2x}.

Reveal solution
SolutionLet u=xu=x, dudx=1\dfrac{du}{dx}=1; dvdx=e2x\dfrac{dv}{dx}=e^{2x}, so v=12e2xv=\tfrac12e^{2x}. Formula: ∫01xe2x dx=[12xe2x]01−∫0112e2x dx\int_0^1 xe^{2x}\,dx=\left[\tfrac12xe^{2x}\right]_0^1-\int_0^1\tfrac12e^{2x}\,dx. First term: 12(1)e2−0=12e2\tfrac12(1)e^2-0=\tfrac12e^2. Remaining integral: [14e2x]01=14e2−14\left[\tfrac14e^{2x}\right]_0^1=\tfrac14e^2-\tfrac14. So the total is 12e2−(14e2−14)=14e2+14\tfrac12e^2-\left(\tfrac14e^2-\tfrac14\right)=\tfrac14e^2+\tfrac14. ■\blacksquare

Questions students ask

How do I decide which part is u and which is dv/dx?
Use LATE: prefer Logarithmic, then Algebraic, then Trigonometric, then Exponential as uu. Whichever type appears earliest in that list should usually be uu.
What if the new integral is still hard?
If it is still a product of unrelated function types, apply integration by parts again — keeping the same consistent choice pattern (e.g. always choosing the algebraic/polynomial part as uu).
Why is ln x always chosen as u?
Because there is no direct rule (yet) to integrate ln⁡x\ln x on its own — but its derivative 1x\dfrac1x is simple, so it must be the differentiated part, never the integrated part.

Key takeaways

  • Integration by parts reverses the product rule: ∫udvdx dx=uv−∫vdudx dx\int u\dfrac{dv}{dx}\,dx=uv-\int v\dfrac{du}{dx}\,dx.
  • Choose uu using LATE priority: Logarithmic, Algebraic, Trigonometric, Exponential.
  • Apply repeatedly if the resulting integral is still a product needing the technique.
  • Works for both indefinite and definite integrals (evaluate the uv term at the limits too).

How this fits the course

Test yourself

Answer a few questions, then review anything you missed.

Prefer paper? Open the written self-check

Answer each question before opening its answer. This self-check does not record a quiz score.

  1. Integration by parts reverses which differentiation rule?

    • The product rule
    • The chain rule
    • The quotient rule
    • The power rule
    Show answer and explanation

    Answer: The product rule

    It is the direct reverse of the product rule.

  2. In LATE, which type of function is prioritised FIRST as u?

    • Logarithmic
    • Exponential
    • Trigonometric
    • Algebraic
    Show answer and explanation

    Answer: Logarithmic

    L comes first in LATE.

  3. The integration by parts formula is:

    • uv−∫vdudxdxuv-\int v\frac{du}{dx}dx
    • uv+∫vdudxdxuv+\int v\frac{du}{dx}dx
    • ∫u dx×∫v dx\int u\,dx \times \int v\,dx
    • udvdx−vdudxu\frac{dv}{dx}-v\frac{du}{dx}
    Show answer and explanation

    Answer: uv−∫vdudxdxuv-\int v\frac{du}{dx}dx

    The correct formula with a minus sign.

  4. For ∫xln⁡x dx\int x\ln x\,dx, which should be u?

    • ln⁡x\ln x
    • xx
    • Neither, use substitution
    • Both equally
    Show answer and explanation

    Answer: ln⁡x\ln x

    Logarithmic beats algebraic in LATE priority.

  5. ∫x2sin⁡x dx\int x^2\sin x\,dx typically requires integration by parts:

    • Twice
    • Once
    • Not at all — use the power rule
    • Three times, always
    Show answer and explanation

    Answer: Twice

    The power of x reduces by one each application, needing two applications to reach a constant.

Finished this lesson?

Loading your progress…

Next step

Keep practising

Start with the quiz above to check the key ideas. You can also choose another topic from the practice library.

Browse practice topics

Related lessons

All 13 lessons

Put the methods into practice: see how A-Level maths duels work. An account is required to play; the overview and sample are public.