Integration by Parts
Deriving the integration by parts formula from the product rule and using it to integrate products, logarithms and inverse trigonometric functions, including repeated and cyclic integration by parts.
60 min · Calculus
Assumes you have read Further Integration by Substitution.
The full teaching. Start here.
The short version
- Formula: . It is the product rule, integrated and rearranged.
- For definite integrals: .
- Choosing : pick the factor that gets simpler when differentiated. Logs and inverse trig functions go as first, then powers of . Exponentials and or usually go as .
- A lone or : write it as and take .
- Higher powers: or needs rounds of parts.
- Cyclic: for , use parts twice, keeping the same choice, until the original integral reappears. Then solve for .
Where the formula comes from
By the product rule, . Integrating both sides with respect to ,
and rearranging gives . You swap an integral you can't do for one you can: differentiate one factor () and integrate the other ().
Worked example2 marks
A power times an exponential
Find .
Choose
Differentiating x makes it simpler.
, , so and .
Apply the formula
uv − ∫vu′ dx.
.
Answer
.
Is that answer sensible?
Differentiating: ✓.
CheckpointAnswer before reading on.
Which of the following is the integration by parts formula?
Hint 1It comes from the product rule.
Hint 2.
Hint 3Integrate both sides and rearrange for .
CheckpointAnswer before reading on.
To find by parts, the best choice is
Hint 1Which factor can you integrate easily?
Hint 2 has no simple antiderivative.
Hint 3Differentiating gives , which cancels a power of .
CheckpointAnswer before reading on.
In finding , why is a better choice than ?
Hint 1What happens to each factor when differentiated?
Hint 2With , you must integrate .
Hint 3With , the new integrand is .
Exam question
Standard · about 3 min
2 marks
Starting from the product rule, derive the integration by parts formula .
Hint 1Differentiate uv.
Hint 2Integrate both sides with respect to x.
Hint 3Rearrange.
Where students lose marks on this one
Starting from the chain rule.
Why it happens: Integration by parts reverses the product rule; substitution reverses the chain rule.
Begin with d/dx(uv).
Written for this site.
Exam question
Straightforward · about 3 min
2 marks
Find .
Hint 1, .
Hint 2.
Hint 3.
Where students lose marks on this one
Writing v = 2e^{2x}.
Why it happens: Differentiating instead of integrating e^{2x}.
∫ e^{2x} dx = ½e^{2x}.
Written for this site.
Exam question
Straightforward · about 3 min
2 marks
Find .
Hint 1, .
Hint 2.
Hint 3.
Where students lose marks on this one
Getting −(1/9)cos 3x.
Why it happens: A sign slip integrating sin 3x.
∫ sin 3x dx = −(1/3)cos 3x, and it is subtracted, so the term is +.
Written for this site.
Exam question
Straightforward · about 3 min
2 marks
Evaluate .
Hint 1, .
Hint 2.
Hint 3The first bracket is .
Where students lose marks on this one
Answering −1.
Why it happens: A sign slip with −cos x.
v = −cos x, and subtracting ∫ v dx gives + ∫ cos x dx.
Written for this site.
Exam question
Harder · about 4 min
2 marks
Find .
Hint 1, .
Hint 2.
Hint 3.
Where students lose marks on this one
Writing x tan x − ln|cos x|.
Why it happens: A sign slip with ∫ tan x dx = −ln|cos x|.
Subtracting −ln|cos x| gives +ln|cos x|.
Written for this site.
Exam question
Standard · about 4 min
3 marks
Find the area between , the -axis and , correct to four decimal places.
Hint 1Area .
Hint 2, .
Hint 3Antiderivative .
Where students lose marks on this one
Answering −3e⁻².
Why it happens: Forgetting the lower limit, where −(0 + 1)e⁰ = −1.
Subtracting −1 adds 1.
Written for this site.
Logarithms and inverse trig functions
, and have simple derivatives but no obvious antiderivative. So they always go as . When one appears on its own, take .
Worked example3 marks
A log as u
Evaluate .
Choose
The log goes as u.
, , so and .
Apply the formula
The new integrand is a simple power.
.
Answer
.
CheckpointAnswer before reading on.
Use integration by parts to find .
Hint 1Write .
Hint 2, , so .
Hint 3.
CheckpointAnswer before reading on.
Hint 1, .
Hint 2.
Hint 3.
Exam question
Standard · about 4 min
3 marks
Evaluate , correct to four decimal places.
Hint 1, .
Hint 2.
Hint 3.
Where students lose marks on this one
Answering e²/4.
Why it happens: Forgetting the lower limit, where −x²/4 = −¼.
Evaluate every term at both limits.
Written for this site.
Exam question
Standard · about 4 min
3 marks
Find .
Hint 1, .
Hint 2 remains.
Hint 3That is .
Where students lose marks on this one
Writing x tan⁻¹x − tan⁻¹x.
Why it happens: Treating x/(1 + x²) as the inverse tan form.
With x in the numerator it is ½ f′/f.
Written for this site.
Exam question
Standard · about 4 min
3 marks
Evaluate , correct to four decimal places.
Hint 1, .
Hint 2.
Hint 3.
Where students lose marks on this one
Answering π/2.
Why it happens: Forgetting the √(1 − x²) term at x = 0.
At x = 0 the bracket is 1, not 0.
Written for this site.
Exam question
Harder · about 5 min
3 marks
Evaluate , correct to four decimal places.
Hint 1, , .
Hint 2.
Hint 3.
Where students lose marks on this one
Answering 4ln4 − 8.
Why it happens: Ignoring the lower limit, where the bracket is −4.
Subtract the value at x = 1.
Written for this site.
Exam question
Harder · about 4 min
3 marks
The region under from to is rotated about the -axis. Find the exact volume, then give it correct to four decimal places.
Hint 1.
Hint 2.
Hint 3.
Where students lose marks on this one
Answering 0.
Why it happens: Evaluating only at the upper limit.
At x = 1 the bracket is −1, so subtracting gives +1.
Written for this site.
Repeated and cyclic integration by parts
Each round of parts lowers a power of by one, so takes two rounds. With times or , nothing ever simplifies. After two rounds the original integral comes back with a different coefficient, and you solve for it like an equation.
Worked example3 marks
Parts twice
Find .
First round
u = x², v = sin x.
.
Second round
u = 2x, v = −cos x.
.
Answer
.
Worked example3 marks
A cyclic integral
Find .
First round
u = e^{2x}, v′ = cos x.
.
Second round, same choice
u = 2e^{2x}, v′ = sin x.
.
Solve for I
I appears on both sides.
, so .
Answer
.
CheckpointAnswer before reading on.
Find .
Hint 1Parts twice, with and then .
Hint 2.
Hint 3.
Exam question
Harder · about 5 min
3 marks
Evaluate , correct to four decimal places.
Hint 1First , .
Hint 2Then .
Hint 3Antiderivative .
Where students lose marks on this one
Answering π².
Why it happens: Dropping the 2cos x terms.
The second integration by parts gives + 2cos x, which is −2 at π and 2 at 0.
Written for this site.
Exam question
Harder · about 5 min
3 marks
Find .
Hint 1, .
Hint 2, leaving .
Hint 3.
Where students lose marks on this one
Differentiating (ln x)² as 2ln x.
Why it happens: Forgetting the chain rule.
d/dx (ln x)² = 2ln x · 1/x.
Written for this site.
Exam question
Harder · about 5 min
3 marks
Find .
Hint 1Call the integral and use parts twice with each time.
Hint 2.
Hint 3The second parts gives .
Where students lose marks on this one
Switching the choice of u in the second step.
Why it happens: That undoes the first step and gives I = I.
Keep eˣ as v′ both times (or u both times).
Written for this site.
Exam question
Harder · about 5 min
3 marks
Evaluate , correct to four decimal places.
Hint 1Use the cyclic method.
Hint 2.
Hint 3, .
Where students lose marks on this one
Giving a positive answer.
Why it happens: Integrals can be negative when the curve is mostly below the axis.
cos x < 0 for most of [0, π] where eˣ is large.
Written for this site.
Exam question
Harder · about 5 min
3 marks
Find .
Hint 1Write .
Hint 2, , so .
Hint 3.
Where students lose marks on this one
Choosing v′ = e^{x²}.
Why it happens: e^{x²} has no elementary antiderivative.
Keep one factor of x with e^{x²} so it can be integrated.
Written for this site.
Exam question
Hardest asked · about 7 min
4 marks
Let . Use integration by parts twice to show that .
Hint 1, , so .
Hint 2; do parts again on the last integral.
Hint 3At , .
Where students lose marks on this one
Evaluating cos(ln x) at e^{π/2} as cos(e^{π/2}).
Why it happens: Forgetting that ln(e^{π/2}) = π/2.
Simplify ln x at each limit first.
Written for this site.
Common mistake
In a cyclic integral, taking u = e^{2x} in the first round, then u = sin x in the second.
Why it happens: Swapping the choice undoes the first round, so you only get I = I.
Keep the exponential in the same role both times: always , or always .
What lifts this to a Band 6
Differentiate your answer to check it. It's quick, and it catches the sign slips that cost the most marks in integration by parts. For definite integrals, evaluate straight away rather than carrying it to the end: it is often , and that simplifies everything after it.
A picture of integration by parts
For definite integrals, integration by parts is a statement about areas. Take and on . The area under the curve, , and the area between the curve and the -axis, , fit together to fill a rectangle.
In general, is the difference of two rectangles, and is the area "beside" the curve. Integration by parts says the two areas together make up the difference of the rectangles. This is also why it pairs so well with inverse functions: can always be found from and a rectangle.