You can know the basic integration rules and still struggle with an IB Maths AA HL integration by parts. The difficulty often comes from recognising which method to use. An integral might contain a complicated function inside another function, a product of two expressions, or a combination that requires integration by parts more than once.
Choosing the wrong method can make a straightforward question unnecessarily difficult.
This guide explains how to recognise when to use integration by substitution and when to use integration by parts. It also covers repeated integration by parts, definite integrals, common mistakes, and worked examples relevant to IB Maths AA HL.
Table of Contents
What is the difference between substitution and integration by parts?
Quick answer: Use substitution when an integral contains a composite function and its derivative, or a constant multiple of that derivative. Use integration by parts when the integrand contains a product of functions and differentiating one factor makes the remaining integral simpler.
The two methods come from different differentiation rules:
- Substitution reverses the chain rule.
- Integration by parts reverses the product rule.
Understanding this difference is the best starting point for choosing the correct technique.

1. Integration by substitution
Integration by substitution replaces a complicated expression with a simpler variable.
It is particularly useful when an integral contains an inner function and its derivative.
The general process is:
- Choose a suitable substitution, usually (u=g(x)).
- Differentiate to find (du=g'(x),dx).
- Rewrite the entire integral in terms of (u).
- Integrate with respect to (u).
- Substitute the original expression back into the answer.
Worked Example 1: A straightforward substitution
Evaluate:
[
\int 3x^2\cos(x^3+1),dx
]
Step 1: Identify the inner function.
The expression inside the cosine is (x^3+1).
Let:
[
u=x^3+1
]
Differentiate:
[
\frac{du}{dx}=3x^2
]
Therefore:
[
du=3x^2,dx
]
Step 2: Rewrite the integral.
The integral becomes:
[
\int\cos u,du
]
Step 3: Integrate.
[
\int\cos u,du=\sin u+C
]
Step 4: Substitute back.
[
\boxed{\sin(x^3+1)+C}
]
The important observation is that the derivative of the inner expression was already present in the original integral.
Worked Example 2: Substitution with a power
Evaluate:
[
\int\frac{2x}{(x^2+4)^3},dx
]
Let:
[
u=x^2+4
]
Then:
[
du=2x,dx
]
Rewrite the integral:
[
\int u^{-3},du
]
Apply the power rule for integration:
[
=\frac{u^{-2}}{-2}+C
]
Substitute back:
[
\boxed{-\frac{1}{2(x^2+4)^2}+C}
]
A useful habit is to check that every part of the original integral has been converted. Do not leave an (x) or (dx) behind after changing variables.
2. Substitution in definite integrals
When integrating between limits, you have two options:
• Change the limits into the new variable.
• Substitute back into the original variable before applying the original limits.
Changing the limits is often more efficient.
Worked Example 3: Definite integration by substitution
Evaluate:
[
\int_0^1\frac{2x}{(x^2+1)^2},dx
]
Let:
[
u=x^2+1
]
Then:
[
du=2x,dx
]
Change the limits.
When (x=0):
[
u=0^2+1=1
]
When (x=1):
[
u=1^2+1=2
]
The integral becomes:
[
\int_1^2u^{-2},du
]
Integrate:
[
=\left[-u^{-1}\right]_1^2
]
Substitute the limits:
[
=-\frac12-(-1)
]
Therefore:
[
\boxed{\frac12}
]
Important: If you change the limits to the new variable, do not substitute back into (x) before evaluating them. That would mix two different variable systems.
3. Integration by parts
Integration by parts is useful when an integral contains a product of two functions.
The formula is:
[
\boxed{\int u,dv=uv-\int v,du}
]
Here:
• (u) is the part you choose to differentiate.
• (dv) is the part you choose to integrate.
• (du) is the derivative of (u).
• (v) is the integral of (dv).
The choice of (u) matters. Ideally, differentiating it should make the expression simpler, while integrating (dv) should be straightforward.
Worked Example 4: Integrating (xe^x)
Evaluate:
[
\int xe^x,dx
]
Choose:
[
u=x,\qquad dv=e^x,dx
]
Differentiate and integrate:
[
du=dx,\qquad v=e^x
]
Apply integration by parts:
[
\int xe^x,dx=xe^x-\int e^x,dx
]
Therefore:
[
=xe^x-e^x+C
]
Final answer:
[
\boxed{e^x(x-1)+C}
]
How do you choose (u)?
A useful guide is to choose the factor that becomes simpler when differentiated.
For example:
| Integral | Suitable choice for (u) |
|---|---|
| (\int x\sin x,dx) | (x) |
| (\int xe^x,dx) | (x) |
| (\int x^2e^x,dx) | (x^2) |
| (\int\ln x,dx) | (\ln x) |
| (\int\arctan x,dx) | (\arctan x) |
Notice that (\ln x) and (\arctan x) do not initially look like products. You can treat each as a product with 1.
For example:
[
\ln x=1\cdot\ln x
]
This allows you to apply integration by parts.
4. Integrating logarithmic functions using parts
A common AA HL example is:
[
\int\ln x,dx
]
The integral may look difficult because there is no immediate basic integration rule for (\ln x).
Rewrite it as:
[
\int 1\cdot\ln x,dx
]
Choose:
[
u=\ln x,\qquad dv=dx
]
Then:
[
du=\frac1x,dx,\qquad v=x
]
Apply the formula:
[
\int\ln x,dx
=x\ln x-\int x\left(\frac1x\right),dx
]
Simplify:
[
=x\ln x-\int1,dx
]
Therefore:
[
\boxed{x\ln x-x+C}
]
This is a useful example because it shows that integration by parts can work even when the original integral does not visibly contain two separate functions.
5. Repeated integration by parts
Some integrals require you to apply integration by parts more than once.
This commonly happens when a polynomial is multiplied by an exponential or trigonometric function.
Each time you differentiate the polynomial, its degree decreases. Eventually, the remaining integral becomes easier.
Worked Example 5: Integrating (x^2e^x)
Evaluate:
[
\int x^2e^x,dx
]
First application
Choose:
[
u=x^2,\qquad dv=e^x,dx
]
Then:
[
du=2x,dx,\qquad v=e^x
]
Apply the formula:
[
\int x^2e^x,dx
=x^2e^x-2\int xe^x,dx
]
We still need to evaluate:
[
\int xe^x,dx
]
Second application
Using integration by parts again:
[
u=x,\qquad dv=e^x,dx
]
Then:
[
du=dx,\qquad v=e^x
]
Therefore:
[
\int xe^x,dx=xe^x-e^x
]
Substitute this result into the original expression:
[
=x^2e^x-2(xe^x-e^x)+C
]
Expand:
[
=x^2e^x-2xe^x+2e^x+C
]
Final answer:
[
\boxed{e^x(x^2-2x+2)+C}
]
Exam tip: Keep the intermediate integral clearly written. Repeated integration by parts is easier to follow when each application is shown separately.
6. Cyclic integration by parts
A more challenging example occurs when applying integration by parts eventually produces the original integral again.
This is called cyclic integration by parts.
Consider:
[
I=\int e^x\sin x,dx
]
Apply integration by parts.
Choose:
[
u=\sin x,\qquad dv=e^x,dx
]
Then:
[
du=\cos x,dx,\qquad v=e^x
]
Therefore:
[
I=e^x\sin x-\int e^x\cos x,dx
]
Apply integration by parts to the remaining integral.
Let:
[
u=\cos x,\qquad dv=e^x,dx
]
Then:
[
du=-\sin x,dx,\qquad v=e^x
]
So:
[
\int e^x\cos x,dx
=e^x\cos x+\int e^x\sin x,dx
]
Substitute this into the previous expression:
[
I=e^x\sin x-e^x\cos x-I
]
Collect the two occurrences of (I):
[
2I=e^x(\sin x-\cos x)
]
Therefore:
[
\boxed{I=\frac{e^x}{2}(\sin x-\cos x)+C}
]
The key step is recognising that the original integral has returned. Move it to the other side and solve the resulting equation.
7. Integration by parts with definite limits
Integration by parts also works with definite integrals.
The formula becomes:
[
\boxed{
\int_a^b u,dv=
\left[uv\right]_a^b-\int_a^b v,du
}
]
You must evaluate the (uv) expression at both limits.
Worked Example 6: A definite integral
Evaluate:
[
\int_0^\pi x\sin x,dx
]
Choose:
[
u=x,\qquad dv=\sin x,dx
]
Then:
[
du=dx,\qquad v=-\cos x
]
Apply the formula:
[
=\left[-x\cos x\right]_0^\pi
+\int_0^\pi\cos x,dx
]
Evaluate the first part:
[
=-\pi\cos\pi-0
]
[
=\pi
]
The remaining integral is:
[
[\sin x]_0^\pi=0
]
Therefore:
[
\boxed{\pi}
]
A common source of lost marks is forgetting to evaluate the first expression at both limits.
8. How to decide which integration method to use
Before calculating, examine the structure of the integral.
| What you notice | Method to consider |
|---|---|
| An inner function and its derivative | Substitution |
| A power of a composite expression with its derivative | Substitution |
| A polynomial multiplied by an exponential | Integration by parts |
| A polynomial multiplied by sine or cosine | Integration by parts |
| A logarithmic function | Integration by parts |
| An inverse trigonometric function | Integration by parts |
| A product that returns to the original integral | Cyclic integration by parts |
Do not choose integration by parts simply because you see a multiplication sign. Some products are better handled by substitution.
For example:
[
\int xe^{x^2},dx
]
is a substitution question because the derivative of (x^2) is present.
By contrast:
[
\int xe^x,dx
]
is naturally handled using integration by parts.
The structure of the expression matters more than its appearance alone.
9. Common mistakes in IB Maths AA HL integration questions
1. Forgetting to change the entire integral
When using substitution, every part must be expressed in the new variable, including the differential.
2. Choosing an unsuitable substitution
Look for a function whose derivative is present, or a constant multiple of it. If the substitution makes the integral more complicated, reconsider your choice.
3. Choosing the wrong (u) in integration by parts
Choose a factor that becomes simpler when differentiated. A polynomial or logarithm is often a useful choice.
4. Losing a negative sign
For example:
[
\int\sin x,dx=-\cos x+C
]
Forgetting the negative sign can affect every later step.
5. Forgetting the constant of integration
For indefinite integrals, include (+C) in your final answer.
6. Changing limits incorrectly
When changing variables in a definite integral, calculate the new upper and lower limits carefully.
7. Stopping after one application of integration by parts
If the remaining integral is still difficult, you may need to apply the method again.
8. Not checking the result
Differentiate your final answer. You should recover the original integrand.
10. A practical revision routine for integration
Use this 60 minute session to practise the main techniques.
| Time | Activity |
|---|---|
| 10 minutes | Review basic integration and substitution |
| 10 minutes | Practise substitution with composite functions |
| 15 minutes | Work on integration by parts |
| 10 minutes | Practise repeated and cyclic integration |
| 10 minutes | Complete mixed examination questions |
| 5 minutes | Check answers and record mistakes |
After each question, record the reason for any error.
Was it:
• Incorrect method selection?
• An algebra mistake?
• A missing negative sign?
• An incorrect substitution?
• A forgotten integration constant?
This helps you distinguish a gap in understanding from a calculation error.
For a broader overview of the topic, read the IB Maths AA HL calculus revision guide. You can also review the Taylor and Maclaurin series guide to see how integration connects with other AA HL techniques.
How Mathzem can help you improve your integration working
Knowing the final answer is not enough to understand why an integration question went wrong.
You need to review the method you selected, the substitutions you made, the algebra between steps and the way you handled signs and limits.
Mathzem lets you practise IB Mathematics questions and upload handwritten working for AI Examiner feedback. You can use the feedback to review your mathematical method, identify mistakes and decide what to practise next.
Start with IB Maths practice and handwritten working feedback. When you practise integration, focus on explaining why you chose a particular method before carrying out the calculation.
Frequently Asked Questions About IB Maths AA HL Integration by Parts
1. Is integration by parts included in IB Maths AA HL?
Yes. Integration by parts and repeated integration by parts are included in the current AA HL higher level calculus syllabus.
2. What is the formula for IB Maths AA HL integration by parts?
The formula is:
[
\int u,dv=uv-\int v,du
]
It reverses the product rule of differentiation.
3. When should I use substitution?
Use substitution when an integral contains a composite function and its derivative, or a constant multiple of that derivative.
4. How do I choose (u) in integration by parts?
Choose a function that becomes simpler when differentiated. Polynomials, logarithms and inverse trigonometric functions are common choices.
5. What is repeated integration by parts?
It means applying integration by parts more than once to evaluate an integral. It is often needed when a polynomial is multiplied by an exponential or trigonometric function.
6. What is cyclic integration by parts?
It occurs when repeated integration by parts produces the original integral again. You can then rearrange the equation and solve for the unknown integral.
7. How can I check an integration answer?
Differentiate your final expression. If the result is the original integrand, your answer is correct, up to the constant of integration.
Final thoughts
Integration by substitution and integration by parts become much easier when you understand what each method reverses.
Substitution reverses the chain rule and simplifies composite expressions. Integration by parts reverses the product rule and is useful when the integrand contains factors that work well together.
For more challenging IB Maths AA HL questions, you may need repeated or cyclic integration by parts.
Practise identifying the structure before choosing a method. Show each stage of your working, pay attention to signs and limits, and check your final answer by differentiation.
Practise IB Maths with Mathzem, upload your handwritten working and use feedback to improve the mathematical reasoning behind your answers.




