Calculus · AA HL
Integration by parts
Integrate products by choosing one factor to differentiate and another to integrate, including repeated and improper cases.
Course focus: AA HL: this guide develops additional higher-level content; it is not required for AA SL.
Before you start: Product rule, basic integration and limits.
Build it from the beginning
HL contentThe product rule describes how two changing factors contribute to a derivative. Rearranging it gives a way to integrate a product when one factor becomes simpler after differentiation. Write down the choices explicitly so the remaining integral is easier, not harder.
A first walkthrough
Find \(\int xe^x\,dx\).
- Choose \(u=x\) and \(dv=e^x dx\), so \(du=dx\) and \(v=e^x\).
- Use \(\int u\,dv=uv-\int v\,du\).
- The result is \(xe^x-e^x+C\). Differentiation gives \(e^x+xe^x-e^x=xe^x\).
The foundations behind the method
Understand what the symbols mean
Integration by parts is the product rule read backwards. It is useful when an integrand is a product whose one factor becomes simpler after differentiation and whose other factor can be integrated. The choice is strategic; merely labelling the left-hand factor u does not ensure progress.
How the ideas connect
Rearrange \((uv)'=u'v+uv'\) and integrate to obtain \(\int u\,dv=uv-\int v\,du\). Some products require repeated applications; others produce the original integral again, which can then be isolated algebraically. For definite integrals, evaluate the boundary term and retain the same bounds on the remaining integral.
Start with the idea
Build your understanding
Integration by parts reverses the product rule. It transfers a derivative from one factor to another while introducing an integral that should be simpler. The choice of factors is strategic, not an arbitrary label assignment.
Choose u to simplify
A polynomial often simplifies when differentiated; a logarithm can simplify to a reciprocal. The other factor must have an accessible antiderivative.
Cyclic integrals
Some choices bring back the original integral. Treat it as an unknown and solve the resulting algebraic equation rather than repeating indefinitely.
Compare the approaches
Choose by the information in the question, rather than the formula you recognise first.
One-step parts
When it helpsUse when the remaining integral becomes easier immediately.
Check before using itInclude the derivative and antiderivative of the selected factors.
Repeated or cyclic parts
When it helpsUse when simplification takes more than one step.
Check before using itRetain signs and identify the returned original integral.
Your method plan
- Choose u and dv with a simpler remainder in mind.
- Apply the product-rule rearrangement explicitly.
- Integrate the remainder or solve the cyclic equation, then differentiate to check.
Learn the methods
Learn step by step
1. Reverse the product rule
The product derivative \((uv)'=u'v+uv'\) rearranges into integration by parts. Choose u to become simpler under differentiation, and choose dv so that it can be integrated. Writing u, du, dv and v explicitly helps avoid mixing them.
Integration by parts
Why this formula works
Integrate the product-rule identity \((uv)'=u'v+uv'\) and rearrange. Moving the u′v integral to the other side explains the minus sign; choosing u to simplify under differentiation makes the new integral useful.
\(\int u\,dv=uv-\int v\,du\).
Quick example
For \(\int xe^x\,dx\), take \(u=x\) and \(dv=e^x\,dx\). Then \(\int xe^x\,dx=xe^x-\int e^x\,dx=e^x(x-1)+C\).
2. Choice matters
A polynomial times an exponential or trig function often becomes simpler if the polynomial is u. A logarithm can be treated as ln x times 1, taking \(dv=dx\). A mnemonic can suggest a choice, but the real test is whether the remaining integral is easier.
Worked example: Polynomial times exponential
Find ∫x\(e^x\) dx.
- Take \(u=x\), \(du=dx\), \(dv=e^x\,dx\) and \(v=e^x\).
- Parts gives x\(e^x\)−∫\(e^x\)dx.
- The result is \(e^x\)\((x-1)+C\). Differentiating confirms x\(e^x\).
3. Repeated and cyclic cases
A higher-degree polynomial may need several repetitions. Integrating an exponential times sine or cosine can bring the original integral back; then solve the resulting linear equation for that integral. Keep signs and constants consistent through both rounds.
4. Definite integration
Use the boundary term [uv]ₐᵇ and the remaining definite integral. You can also find an indefinite antiderivative first, then substitute the boundaries. Do not drop a lower-end boundary term just because the upper term looks simple.
Definite form
Why this formula works
The same product-rule argument over fixed endpoints uses the antiderivative difference [uv]ₐᵇ. Both endpoints contribute to the boundary term, and the remaining integral keeps the original limits.
\(\int_a^bu v' dx=[uv]_a^b-\int_a^bu'v dx\).
Quick example
\(\int_0^1xe^xdx=[xe^x]_0^1-\int_0^1e^xdx=e-(e-1)=1\).
Worked example: A logarithm
Evaluate ∫₁ᵉlnx dx.
- Use \(u=\ln x\), \(du=dx/x\), \(dv=dx\), \(v=x\).
- An antiderivative is xlnx−x.
- At e the value is 0; at 1 it is −1. Subtracting gives 1.
5. Improper integrals
If an endpoint is infinite or an integrand has a singularity, replace that endpoint by a finite variable and take a limit. State whether the limit is finite. Apparent cancellation of divergent pieces is not a valid convergence argument without a properly defined limiting expression.
Improper upper endpoint
Why this formula works
Infinity is not an input at which an antiderivative can be directly evaluated. Integrating to a finite R first gives a well-defined number; taking its limit decides whether the unbounded accumulation converges.
\(\int_a^\infty f(x)dx=\lim_{R\to\infty}\int_a^Rf(x)dx\), when the limit exists finitely.
Quick example
\(\int_0^Re^{-x}dx=1-e^{-R}\). Taking R→∞ gives 1, so the improper integral converges.
Worked example: An improper integral
Evaluate \(\int_0^\infty xe^{-x}dx\).
- Use parts to obtain the antiderivative \(-(x+1)e^{-x}\).
- First integrate to a finite R: \(\int_0^Rxe^{-x}dx=1-(R+1)e^{-R}\).
- As R tends to infinity, \((R+1)e^{-R}\to0\), because exponential decay dominates linear growth. The integral converges to 1.
Quick formula reference
For revision once you understand the methods above. Check the conditions before using a formula.
Improper upper endpoint
\(\int_a^\infty f(x)dx=\lim_{R\to\infty}\int_a^Rf(x)dx\), when the limit exists finitely.
Return to the explanation →Learn to diagnose an error
Spot the mistake
The statement below is incorrect. Identify the missing condition or reasoning before opening the explanation.
For \(\int xe^x\,dx\), choose u=e^x because exponentials look harder.
Explain and repair the mistake
Choosing u=x makes its derivative 1, simplifying the remaining integral. With \(dv=e^x dx\), the result is \(xe^x-e^x+C\). Differentiate it to verify both terms.
Connect and apply
Put the ideas together
A more demanding application of this guide’s methods. This is a learning stage; any additional HL content is labelled separately.
A logarithm is a product with one
Find \(\int\ln x\,dx\) for \(x>0\).
- Write the integrand as \((\ln x)\cdot1\). Choose \(u=\ln x\), \(dv=dx\), giving \(du=dx/x\) and \(v=x\).
- Parts gives \(x\ln x-\int x(1/x)dx=x\ln x-x+C\).
- Differentiate the result: \(\ln x+1-1=\ln x\). This checks the cancellation and the sign.
- The real logarithm domain remains \(x>0\). A formula involving \(\ln|x|\) concerns a differently stated integrand on other intervals.
Why would choosing u=1 be unhelpful?
Check your reasoning
Its derivative vanishes, but dv would be the logarithm itself, whose antiderivative is the unknown you are trying to find. That makes the method circular rather than simpler.
Common mistakes and how to avoid them
- The subtraction in the parts formula is easy to lose.
- dv must include the differential and v must be its antiderivative.
- Infinite endpoints require limits, not direct substitution.
Practise independently
Build confidence, then apply it
Try each question before opening its hint or solution. If a method is new, return to the walkthrough, then try again. These learning stages describe the practice sequence; additional HL content is labelled separately.
- 1
Build confidence
HL extensionFind \(\int2xe^x\,dx\).
Need a starting point?
A constant multiple can stay outside.
Show the worked solution
- It is twice the worked integral.
- The result is \(2xe^x-2e^x+C\).
- 2
Apply and explain
HL extensionEvaluate \(\int_0^1 xe^x\,dx\).
Need a starting point?
Apply the bounds to the complete antiderivative.
Show the worked solution
- Use \(F(x)=(x-1)e^x\).
- Then \(F(1)-F(0)=0-(-1)=1\).
- 3
Check your understanding
Why can \(\int\ln x\,dx\) use integration by parts?
Show the worked solution
Write it as \(\int 1\cdot\ln x\,dx\). Taking u=ln x and dv=dx gives \(x\ln x-x+C\) on x>0.
- 4
Use the method
Find ∫x cosx dx.
Show the worked solution
Choose \(u=x\) and \(dv=\cos x\) dx. The result is x \(\sin x+\cos x+C\); differentiating gives x cosx.
Finished? Use the linked question bank below to practise selecting the method without a guide telling you which rule to use.
Using these methods in exam questions
AA Paper 1
No calculatorPractise the algebra and exact values by hand. Keep fractions, surds and multiples of π exact where required. Show the steps that justify the result.
AA Paper 2
GDC requiredUse graphing, numerical solving or statistical tools when appropriate. Write the setup before giving the output, and keep extra precision until the final answer.
For this topic: Distinguish a function value from a derivative value. For a tangent give both the point and slope; for an integral show the integrand and limits, then interpret the sign and units.
Paper 3: build a connected argument
Both AA HL and AI HL Paper 3 contain two extended problem-solving questions. A question develops a theme, so keep useful earlier results, test small cases and explain any proposed general rule. A calculator pattern can suggest a result; your mathematical reasoning must support it.
- Identify what the first part establishes and record the conditions under which it holds.
- When a later part introduces a new definition or model, connect it to methods you already know rather than assuming a new formula must have been memorised.
- Check the conclusion against an earlier numerical case and explain its meaning or limitation.
For the first-assessment-2021 courses. IB assessment reference ↗
Find a specific method or formula
Now practise the method
If you opened this guide from a question, return to that tab and try the method without looking at the example. Your answer stays in the question tab.
Practise this subtopic →Want a broader practice session? Explore IB Maths AA HL practice questions →Try free IB Maths exam-style questions and worked solutions →
Original Arc Practice teaching notes for Maths AA. Core and HL sections are distinguished above. These notes follow the first-assessment-2021 course and are not an official IB publication or a complete syllabus checklist. IB course reference. Report a correction.