Educerie · IB Diploma · Mathematics: analysis and approaches
Topic 5 Calculus · 5.10 Indefinite integrals and substitution
What you must be able to do
| You must be able to | Level | What it looks like in the exam |
|---|---|---|
| Integrate xⁿ for any rational n ≠ −1, and sin x, cos x, eˣ and 1/x | SL, HL | "Find ∫(4x³ − 6/√x) dx" (2 to 3 marks) |
| Use ∫ 1/x dx = ln x + C, and know why the modulus ln|x| appears | SL, HL | "Find ∫(x² + 3)/x dx" (3 marks) |
| Rewrite before integrating: roots as powers, expanded brackets, split fractions | SL, HL | the M1 for rewriting comes before any integration |
| Integrate f(ax + b) for each standard f | SL, HL | "Given f′(x) = cos(2x + 3), find f(x)" (2 to 3 marks) |
| Integrate ∫k g′(x) f(g(x)) dx by inspection (reverse chain rule) or by substitution | SL, HL | "Find ∫2x(x² + 1)⁴ dx", "Use the substitution u = … to find …" (3 to 5 marks) |
| Find the constant of integration from a boundary condition | SL, HL | "The curve passes through (0, 3). Find y in terms of x" (4 to 6 marks) |
Before you start
You need every derivative from 5.6: of xⁿ, sin x, cos x, eˣ and ln x, and the chain rule. You need 5.5, where integration was introduced as anti-differentiation of polynomials, with the constant C and a boundary condition to find it. Index laws from Topic 1 matter more than anything else here: √x = x1/2, 1/x³ = x−3, 1/√x = x−1/2. The formula booklet lists the standard integrals on this page; what it does not give you is the way to recognise which one you are looking at.
1The idea in one paragraph
To integrate a function f is to find a function F whose derivative is f. We write ∫ f(x) dx = F(x) + C and call F an antiderivative of f. The constant of integration C is there because a constant differentiates to zero, so F(x) + 5 and F(x) − 2 have the same derivative; Figure 1 shows the whole family. Every rule on this page is a differentiation rule read backwards, and every answer can be checked by differentiating it. The standard integrals cover powers, sine, cosine, eˣ and 1/x. The chain rule, read backwards, handles two more cases: a linear inside, ax + b, where you divide by a; and any inside g(x) whose derivative g′(x) is already sitting in the integrand, where you integrate the outside and keep the inside. That second case is integration by inspection, also called the reverse chain rule, and integration by substitution is the same idea written out in full.
2The standard integrals
Each line below is a derivative you already know, turned round.
| Because d/dx of … is … | … the integral is |
|---|---|
| xⁿ⁺¹/(n + 1) → xⁿ | ∫ xⁿ dx = xⁿ⁺¹/(n + 1) + C, for n ∈ ℚ, n ≠ −1 |
| ln x → 1/x | ∫ 1/x dx = ln x + C (x > 0); ln|x| + C in general |
| −cos x → sin x | ∫ sin x dx = −cos x + C |
| sin x → cos x | ∫ cos x dx = sin x + C |
| eˣ → eˣ | ∫ eˣ dx = eˣ + C |
A constant multiple comes along unchanged, and a sum integrates term by term: ∫(3 sin x + 4eˣ) dx = −3 cos x + 4eˣ + C.
Add 1 to the power, divide by the new power. And check every answer by differentiating it back: if you do not get the integrand, the answer is wrong.
The sine and cosine signs are the classic slip. Figure 2 puts the four functions on a cycle. Differentiating goes clockwise: sin → cos → −sin → −cos → sin. Integrating goes the other way. So ∫ sin x dx lands on −cos x, and ∫ cos x dx lands on sin x. All of this is in radians.
Rewrite before you integrate. The power rule only works on a sum of terms of the form axⁿ, so turn everything into that shape first. Roots become fractional powers, reciprocals become negative powers, brackets get expanded, and a fraction with a single term on the bottom gets split.
Dividing by a fraction is where marks go: x3/2 ÷ (3/2) is (2/3)x3/2. And the negative power flips a sign: −4 × x−1 ÷ (−1) = +4x−1.
There is no product rule and no quotient rule for integration. ∫(2x − 1)(x + 3) dx is not a product of two integrals; expand it to ∫(2x² + 5x − 3) dx = (2/3)x³ + (5/2)x² − 3x + C.
3Why ∫ 1/x dx is a logarithm
The power rule breaks at n = −1: it would give x⁰/0, and you cannot divide by zero. Yet 1/x is a perfectly good function, and it does have an antiderivative, because the derivative of ln x is 1/x. So ∫ 1/x dx = ln x + C, for x > 0.
What about negative x, where ln x does not exist? The function ln(−x) is defined there, and by the chain rule its derivative is (−1) × 1/(−x) = 1/x as well. Both cases together are ln|x|. Figure 3 shows the two curves side by side: at x = 2 the gradient of ln|x| is ½, and at x = −2 it is −½, exactly the heights of 1/x at those points.
∫ 1/x dx = ln|x| + C. When x > 0, which is most questions, this is ln x + C.
In practice, write ln|x| + C unless the question tells you x > 0; the modulus is never wrong.
4A linear inside: divide by a
Differentiate sin(2x + 3) and the chain rule multiplies by 2: the derivative is 2 cos(2x + 3). So to integrate cos(2x + 3), you need something whose derivative has no 2 in front, and that is ½ sin(2x + 3). This is the guide's own example:
The rule is general. If ∫ f(x) dx = F(x) + C, then
∫ f(ax + b) dx = (1/a) F(ax + b) + C. Integrate as if the bracket were x, then divide by a.
| Integral | Answer | The a you divide by |
|---|---|---|
| ∫ (3x − 1)⁵ dx | (3x − 1)⁶ ÷ 18 + C | 3, and the 6 from the power rule: 3 × 6 = 18 |
| ∫ e4 − 2x dx | −½ e4 − 2x + C | −2 |
| ∫ 1/(2x + 5) dx | ½ ln|2x + 5| + C | 2 |
| ∫ √(4x + 1) dx | (1/6)(4x + 1)3/2 + C | 4, and the 3/2: 4 × 3/2 = 6 |
| ∫ 1/(1 − 3x)² dx | 1 ÷ (3(1 − 3x)) + C | −3, with the power rule on (1 − 3x)−2 |
This only works because the derivative of ax + b is the constant a. With any other inside it fails. ∫(x² + 1)⁴ dx is not (x² + 1)⁵ ÷ (5 × 2x): differentiate that "answer" with the quotient rule and you will not get (x² + 1)⁴ back. That integral has to be expanded.
5The reverse chain rule: integration by inspection
The chain rule says d/dx [f(g(x))] = g′(x) f′(g(x)). Read backwards: if an integrand is the derivative of an inside function, multiplied by some function of that inside, then the integral is the outer function of the inside. In the guide's words, integrals of the form
∫ k g′(x) f(g(x)) dx = k F(g(x)) + C, where F is an antiderivative of f and k is a constant.
The skill is seeing it. Look for an inside function g(x), then look for its derivative g′(x) elsewhere in the integrand, allowing a constant factor. Figure 4 marks the pattern in the guide's three examples.
Example 1. ∫ 2x(x² + 1)⁴ dx. The inside is x² + 1 and its derivative 2x is right there. So the answer is "the integral of u⁴ with u = x² + 1":
Example 2. ∫ 4x sin(x²) dx. The inside is x², whose derivative is 2x; the integrand has 4x, which is 2 × 2x, so k = 2.
Example 3. ∫ sin x ÷ cos x dx. The inside is cos x, and its derivative is −sin x. The integrand has sin x, which is −1 times that, so k = −1, and the outer function is 1/u, whose integral is ln|u|.
Example 3 is one of a whole family worth recognising on sight: when the top is the derivative of the bottom,
∫ g′(x)/g(x) dx = ln|g(x)| + C.
So ∫ 3x²/(x³ + 1) dx = ln|x³ + 1| + C, and ∫ x²/(x³ + 1) dx = ⅓ ln|x³ + 1| + C, because x² is ⅓ of the derivative 3x².
The inspection method in three moves: guess the answer by integrating the outside and keeping the inside; differentiate your guess; adjust the constant so the derivative matches. You can only fix a constant factor this way. If ∫ x(x² + 1)⁴ dx had x² instead of x in front, no constant would fix it, and the method would not apply.
6Integration by substitution
Substitution is inspection with every step written down, and it is the safer method when the pattern is not obvious or the question says "use the substitution u = …".
- Let u = g(x), the inside function.
- Differentiate: du/dx = g′(x), so write du = g′(x) dx.
- Replace every x and the dx, so the integral is in u alone.
- Integrate with respect to u.
- Substitute back u = g(x).
Example 4. ∫ x√(3x² + 1) dx.
Example 5. ∫ esin x cos x dx. With u = sin x, du = cos x dx, so the integral is ∫ eᵘ du = eᵘ + C = esin x + C.
Example 6. ∫ (ln x)/x dx. With u = ln x, du = (1/x) dx, so the integral is ∫ u du = u²/2 + C = (ln x)²/2 + C.
If, after substituting, an x is left that you cannot write in terms of u, stop: either the substitution is wrong or the integral is not of this form. ∫ ex² dx is the standard example. There is no 2x outside, so u = x² leaves an x behind, and in fact no SL method finds this integral at all. Its definite values come from the GDC (5.11).
Figure 5 puts the whole page into four questions to ask of any integrand.
7Finding the constant
A boundary condition (a point the curve passes through, or a value at a given time) fixes C, exactly as in 5.5. Integrate first, then substitute, then write the final function in full.
Example 7. f′(x) = 6 sin 3x + 2 and f(0) = 5.
Note cos 0 = 1, not 0; the most common error in this question is to lose that −2.
Example 8. A curve has gradient dy/dx = 2x/(x² + 1) and passes through (0, 3).
This is the teal curve in Figure 1: of the whole family, it is the one through (0, 3).
8Where marks are lost
Forgetting + C. Every indefinite integral needs it. On a "find f(x)" question, the C is also where the next marks are.
Getting the sign of sin and cos backwards. ∫ sin x dx = −cos x + C. Use the cycle in Figure 2, or differentiate your answer to check.
Multiplying by a instead of dividing. ∫ e3x dx = ⅓e3x + C, not 3e3x. Differentiating multiplies by a, so integrating must divide.
Treating a non-linear inside as if it were linear. ∫(x² + 1)⁴ dx is not (x² + 1)⁵ ÷ (10x). The divide-by-a rule needs a constant a.
Applying the power rule to 1/x. x−1 would give x⁰/0. The answer is ln|x| + C.
Integrating products or quotients piece by piece. ∫ x × eˣ dx is not (x²/2)eˣ. Expand, split, or look for the g′(x) f(g(x)) pattern; there is no product rule for integrals.
Leaving an x behind in a substitution. Every x and the dx must go before you integrate with respect to u, and the answer must go back into x.
Losing cos 0 = 1 when finding C. Evaluate each term at the boundary point carefully: e⁰ = 1, ln 1 = 0, sin 0 = 0, cos 0 = 1.
9Work it right
- Rewrite first, as a line of working: powers for roots and reciprocals, brackets expanded, fractions split.
- Integrate term by term and write + C on the same line.
- For f(ax + b), integrate the outside and divide by a, and say so.
- For a harder integrand, name the inside g(x), find g′(x), and find the constant k; or write u = g(x) and du = g′(x) dx.
- Check the answer by differentiating, in your head if not on paper.
- For a boundary condition, substitute, solve for C, and write the finished function with its number in place of C.
10Try it
Marks in brackets. Q1 to Q5 are Paper 1 style, no calculator. Q6 is Paper 2 style, with a GDC for the final value.
Q1. Find ∫ (4x³ − 6/√x + 3/x) dx, for x > 0. 4 marks
Q2. Find
(a) ∫ e1 − 3x dx 2 marks
(b) ∫ 1/(4x − 1)³ dx 3 marks
Q3. Find
(a) ∫ x²(2x³ + 1)⁴ dx 3 marks
(b) ∫ cos x ÷ (3 + sin x) dx 3 marks
Q4. The gradient of the graph of f is given by f′(x) = 3 cos 2x − 4x, and the graph passes through (π/2, 1). Find f(x). 5 marks
Q5. (a) Find the derivative of x ln x. 2 marks
(b) Hence find ∫ ln x dx. 3 marks
Q6. Water flows into a tank so that the volume V litres after t minutes changes at a rate dV/dt = 40 − 30e−0.2t. When t = 0 the tank holds 100 litres.
(a) Find an expression for V in terms of t. 4 marks
(b) Find the volume of water in the tank after 10 minutes. 2 marks
11In one breath
Integration undoes differentiation, so every integral is a derivative read backwards, needs a + C, and can be checked by differentiating. The standard integrals are xⁿ → xⁿ⁺¹/(n + 1) for n ≠ −1, 1/x → ln|x|, sin x → −cos x, cos x → sin x and eˣ → eˣ. Rewrite first: roots and reciprocals as powers, brackets expanded, fractions split, because there is no product or quotient rule for integrals. When the inside is linear, ax + b, integrate as usual and divide by a. When the derivative of the inside is already in the integrand, up to a constant, integrate the outside and keep the inside, by inspection or by substituting u = g(x) and replacing every x and the dx; when the top is the derivative of the bottom, the answer is ln|bottom|. Finally, a point on the curve fixes C.
Answers
Q1. Rewrite as ∫ (4x³ − 6x−1/2 + 3/x) dx.
M1 for writing 6/√x as 6x−1/2, A1 for x⁴, A1 for −12√x, A1 for 3 ln x with + C. Omitting C loses the last A1. Accept 3 ln|x|.
Q2. (a) −⅓ e1 − 3x + C. M1 for e1 − 3x multiplied by a constant, A1 for −⅓ with + C. +3e1 − 3x scores M1 A0.
(b) ∫ (4x − 1)−3 dx = (4x − 1)−2 ÷ (−2 × 4) + C = −1/(8(4x − 1)²) + C. M1 for writing as a negative power, M1 for the power rule with division by 4, A1 for the answer.
Q3. (a) The inside is 2x³ + 1, with derivative 6x². The integrand has x², which is ⅙ of 6x².
M1 for recognising g(x) = 2x³ + 1 (or u = 2x³ + 1 with du = 6x² dx), A1 for (2x³ + 1)⁵ with some constant, A1 for 1/30 with + C.
(b) The top, cos x, is the derivative of the bottom, 3 + sin x, so the integral is ln(3 + sin x) + C. Since 3 + sin x ≥ 2 > 0, no modulus is needed. M1 for the g′/g pattern or u = 3 + sin x, A1 for ln(3 + sin x), A1 for + C. Accept ln|3 + sin x| + C.
Q4. Integrate each term: f(x) = (3/2) sin 2x − 2x² + C. Substitute (π/2, 1):
A1 for (3/2) sin 2x, A1 for −2x², M1 for substituting x = π/2 and f = 1 into their f, A1 for C = 1 + π²/2, A1 for the complete f(x). Writing 3 sin 2x ÷ 2 is fine; 6 sin 2x scores A0 for that term.
Q5. (a) Product rule: d/dx (x ln x) = 1 × ln x + x × 1/x = ln x + 1. M1 for the product rule, A1.
(b) From (a), ∫ (ln x + 1) dx = x ln x + C₁, so ∫ ln x dx = x ln x − ∫ 1 dx, which gives ∫ ln x dx = x ln x − x + C. M1 for integrating both sides of the result in (a), M1 for subtracting ∫ 1 dx = x, A1 for the answer with + C. "Hence" means the result must come from (a); an answer quoted without that link scores 0.
Q6. (a) V = ∫ (40 − 30e−0.2t) dt = 40t − 30e−0.2t ÷ (−0.2) + C = 40t + 150e−0.2t + C. When t = 0, V = 100: 150 + C = 100, so C = −50 and V = 40t + 150e−0.2t − 50. A1 for 40t, A1 for 150e−0.2t, M1 for using V(0) = 100, A1 for the complete expression.
(b) V(10) = 400 + 150e−2 − 50 = 370 litres (3 s.f.). M1 for substituting t = 10, A1 for 370. Using C = 100, from forgetting that the exponential term equals 150 at t = 0, gives 520 and scores M1 A0.
Educerie · written from the published IB Diploma Programme Mathematics: analysis and approaches guide, first assessment 2021, section 5.10 Indefinite integrals and substitution. Original text, examples and questions. Diagrams drawn by Educerie. Last reviewed 25 September 2026.