11.6 Integration by Parts
A-level Maths Year 2 · Edexcel 9MA0 · Chapter 11: Integration
A free A-level Maths Year 2 lesson for Pearson Edexcel A level Mathematics (9MA0) from OBA School: integrating products such as x e²ˣ, x cos 3x and x² ln x. Watch the video, read the explanation and worked examples, then try the revision questions. You can work through the full lesson, with more videos, an interactive lesson, a practice quiz and printable worksheets, in our free online course.
What you will learn
- Derive the integration by parts formula from the product rule
- Choose u and dv/dx sensibly
- Integrate ln x and products involving ln x
- Apply integration by parts twice when needed
- Evaluate definite integrals by parts exactly
Key words
- Product rule: (d/dx)(uv) = u(dv/dx) + v(du/dx)
- Integration by parts: A method for integrating some products of two functions, which reverses the product rule.
- u: The factor you differentiate. Choose the one that gets simpler.
- dv/dx: The factor you integrate. You must be able to integrate it.
The formula
Integrate both sides of the product rule with respect to x: uv = ∫ u(dv/dx) dx + ∫ v(du/dx) dx. Rearranging gives the formula, which is in the formula booklet.
Formula: ∫ u(dv/dx) dx = uv − ∫ v(du/dx) dx
Choose u to be the factor that becomes simpler when differentiated. A useful order is: Logarithms, then Algebra (powers of x), then Trig and Exponentials (LATE). Pick u from as early in the list as possible.
Worked example: x times an exponential
Find ∫ xe²ˣ dx
u = x, dv/dx = e²ˣ, so du/dx = 1 and v = (1/2)e²ˣ
∫ xe²ˣ dx = (1/2)xe²ˣ − ∫ (1/2)e²ˣ dx
Answer: (1/2)xe²ˣ − (1/4)e²ˣ + c
Worked example: x times a trig function
Find ∫ x cos 3x dx
u = x, v = (1/3)sin 3x: (1/3)x sin 3x − ∫ (1/3)sin 3x dx
Answer: (1/3)x sin 3x + (1/9)cos 3x + c
Integrals involving ln x
You cannot integrate ln x directly, so with a log in the product it must be u. To integrate ln x on its own, write it as 1 × ln x and take dv/dx = 1.
Worked example: ln x on its own
Find ∫ ln x dx
u = ln x, dv/dx = 1, so du/dx = 1/x, v = x: x ln x − ∫ x × 1/x dx
Answer: x ln x − x + c
Worked example: a power times ln x
Find ∫ x²ln x dx
u = ln x, v = x³/3: (x³/3)ln x − ∫ x³/3 × 1/x dx = (x³/3)ln x − ∫ x²/3 dx
Answer: (x³/3)ln x − x³/9 + c
Using parts twice
With x² times eˣ, sin x or cos x, one use of the formula leaves an integral with x in it. Apply integration by parts again to that integral.
Worked example: parts twice
Find ∫ x²eˣ dx
u = x², v = eˣ: x²eˣ − ∫ 2xeˣ dx
Again with u = 2x, v = eˣ: ∫ 2xeˣ dx = 2xeˣ − ∫ 2eˣ dx = 2xeˣ − 2eˣ
So ∫ x²eˣ dx = x²eˣ − 2xeˣ + 2eˣ + c
Answer: eˣ(x² − 2x + 2) + c
Definite integrals by parts
Formula: ∫ₐᵇ u(dv/dx) dx = [uv]ₐᵇ − ∫ₐᵇ v(du/dx) dx
Worked example: a definite integral
Evaluate ∫₀^(π/2) x sin x dx
u = x, v = −cos x: [−x cos x]₀^(π/2) + ∫₀^(π/2) cos x dx = (0 − 0) + [sin x]₀^(π/2)
Answer: 1
Worked example: an exact answer with e
Show that ∫₁ᵉ x ln x dx = (e² + 1)/4
u = ln x, v = x²/2: [(x²/2)ln x]₁ᵉ − ∫₁ᵉ x/2 dx = e²/2 − [x²/4]₁ᵉ
= e²/2 − e²/4 + 1/4
Answer: (e² + 1)/4, as required
Common mistakes
- Choosing u badly: with ∫ xeˣ dx, taking u = eˣ gives ∫ (x²/2)eˣ dx, which is harder.
- Sign errors in uv − ∫ v(du/dx) dx, especially when v is −cos x.
- Trying to integrate ln x as the dv/dx part. It must be u.
- In definite integrals, applying the limits to uv but forgetting them on the second integral.
Revision questions
Try these, then check your answers below each one.
Question 1. For ∫ x ln x dx by parts, which should be u? (Choose from: u = ln x; u = x; u = x ln x; u = 1.)
Answer: u = ln x
Working: Take u = ln x and dv/dx = x.
Question 2. Find ∫ xeˣ dx. (Choose from: (x − 1)eˣ + c; xeˣ + c; (1/2)x²eˣ + c; (x + 1)eˣ + c.)
Answer: (x − 1)eˣ + c
Working: xeˣ − ∫ eˣ dx = xeˣ − eˣ + c = (x − 1)eˣ + c.
Question 3. Evaluate ∫₀¹ xe²ˣ dx. Give your answer to 4 decimal places.
Answer: 2.0973
Working: [(1/2)xe²ˣ − (1/4)e²ˣ]₀¹ = (1/4)e² + 1/4 = 2.0973.
Related lessons
- Previous lesson: 11.5 Integration by Substitution
- Next lesson: 11.7 Partial Fractions
- In this chapter: 11.1 Integrating Standard Functions
- In this chapter: 11.2 Integrating f(ax + b)
- In this chapter: 11.3 Using Trigonometric Identities
Continue in the full course
This lesson is section 11.6 of our free A-level Maths Year 2 course. In the full course you get every video for this section, an animated interactive lesson, a self-marking practice quiz, a printable worksheet with a mark scheme, an end-of-chapter test and your progress saved. Go to the full A-level Maths Year 2 course.