Educerie
Level

Educerie · IB Diploma · Mathematics: analysis and approaches

Topic 5 Calculus · 5.10 Indefinite integrals and substitution

Level
SL and HL. Nothing here is HL only, so every section is examinable for both.
Themes (key concepts)
relationships, patterns, generalisation. Every derivative you know is an integral read backwards, and one pattern, the chain rule in reverse, turns a long list of special cases into a single method.
The question this unit answers
if differentiating is a set of rules, how do you run each rule backwards, and how do you recognise, inside a complicated expression, the chain rule waiting to be undone?
Where it is examined
Paper 1 above all, because integration is where exact algebra is tested: "find" an indefinite integral (2 to 5 marks), often as the first step of a longer question on areas (5.11) or kinematics (5.9). "Find f(x), given f′(x) and a point on the graph" (4 to 6 marks). Paper 2 when a model is given as a rate of change and an exact function is needed before the GDC takes over.

What you must be able to do

You must be able toLevelWhat it looks like in the exam
Integrate xⁿ for any rational n ≠ −1, and sin x, cos x, eˣ and 1/xSL, HL"Find ∫(4x³ − 6/√x) dx" (2 to 3 marks)
Use ∫ 1/x dx = ln x + C, and know why the modulus ln|x| appearsSL, HL"Find ∫(x² + 3)/x dx" (3 marks)
Rewrite before integrating: roots as powers, expanded brackets, split fractionsSL, HLthe M1 for rewriting comes before any integration
Integrate f(ax + b) for each standard fSL, 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 substitutionSL, HL"Find ∫2x(x² + 1)⁴ dx", "Use the substitution u = … to find …" (3 to 5 marks)
Find the constant of integration from a boundary conditionSL, 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.

Figure 1 · One derivative, a whole family of curves Figure 1 · One derivative, a whole family of curves x y −3 −2 −1 1 2 3 −1 1 2 3 4 5 (0, 3) y = ln(x² + 1) + 3 C = −1 C = 0 C = 1 C = 2 C = 3 Every curve y = ln(x² + 1) + C has gradient 2x/(x² + 1): at x = 1 all the tangents are parallel. The condition y = 3 when x = 0 picks out one of them: C = 3.
Figure 1 · One derivative, a whole family of curves

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.

Figure 2 · Differentiate one way round, integrate the other Figure 2 · Differentiate one way round, integrate the other sin x cos x −sin x −cos x d/dx: clockwise ∫: anticlockwise Clockwise (teal) is d/dx. Anticlockwise (amber) is ∫ … dx. The signs take care of themselves.
Figure 2 · Differentiate one way round, integrate the other

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.

∫ (3√x − 4/x2 + 2/x) dx
= ∫ (3x1/2 − 4x−2 + 2/x) dx1/x stays as it is: it is the ln case
= 3 × x3/2/(3/2) − 4 × x−1/(−1) + 2 ln x + C
= 2x3/2 + 4/x + 2 ln x + C

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.

∫ (x2 − 3)/√x dx
= ∫ (x3/2 − 3x−1/2) dxdivide each term by √x
= (2/5)x5/2 − 6x1/2 + C
∫ (x3 − 5x + 2)/x dx
= ∫ (x2 − 5 + 2/x) dx
= x3/3 − 5x + 2 ln x + Cfor x > 0

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.

Figure 3 · Why ∫ 1/x dx = ln |x| + C Figure 3 · Why ∫ 1/x dx = ln |x| + C (a) y = 1/x x y −2 2 −2 2 (2, ½) (−2, −½) (b) y = ln |x| x y −2 2 −2 2 gradient ½ gradient −½ Left: y = 1/x. Right: y = ln|x|, a mirror pair of logarithm curves. Its gradient at x is 1/x on both sides: at x = 2 the gradient is ½, and at x = −2 it is −½, matching the heights of 1/x at those points.
Figure 3 · Why ∫ 1/x dx = ln |x| + C

∫ 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:

f′(x) = cos(2x + 3) ⇒ f(x) = (1/2) sin(2x + 3) + C
check: d/dx [(1/2) sin(2x + 3)] = (1/2) × 2 cos(2x + 3) = cos(2x + 3) ✓

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.

IntegralAnswerThe a you divide by
∫ (3x − 1)⁵ dx(3x − 1)⁶ ÷ 18 + C3, and the 6 from the power rule: 3 × 6 = 18
∫ e4 − 2x dx−½ e4 − 2x + C−2
∫ 1/(2x + 5) dx½ ln|2x + 5| + C2
∫ √(4x + 1) dx(1/6)(4x + 1)3/2 + C4, and the 3/2: 4 × 3/2 = 6
∫ 1/(1 − 3x)² dx1 ÷ (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.

Figure 4 · Spot the inside function and its derivative Figure 4 · Spot the inside function and its derivative ∫ 2x(x² + 1)⁴ dx = ⅕(x² + 1)⁵ + C outside: 2x = g′(x) inside: g(x) = x² + 1 ∫ 4x sin(x²) dx = −2 cos(x²) + C outside: 4x = 2 × g′(x) inside: g(x) = x² ∫ sin x ÷ cos x dx = −ln |cos x| + C outside: sin x = −g′(x) inside: g(x) = cos x If the derivative of the inside is sitting outside, up to a constant, integrate the outside and keep the inside.
Figure 4 · Spot the inside function and its derivative

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":

∫ 2x(x2 + 1)4 dx = (x2 + 1)5 / 5 + C
check: d/dx [(x2 + 1)5 / 5] = (5(x2 + 1)4 × 2x) / 5 = 2x(x2 + 1)4 ✓

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.

∫ 4x sin(x2) dx = 2 ∫ 2x sin(x2) dx = 2 × (−cos(x2)) + C = −2 cos(x2) + C

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|.

∫ (sin x / cos x) dx = −∫ (−sin x)/cos x dx = −ln|cos x| + C

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 = …".

  1. Let u = g(x), the inside function.
  2. Differentiate: du/dx = g′(x), so write du = g′(x) dx.
  3. Replace every x and the dx, so the integral is in u alone.
  4. Integrate with respect to u.
  5. Substitute back u = g(x).

Example 4. ∫ x√(3x² + 1) dx.

u = 3x2 + 1, du/dx = 6x, so x dx = (1/6) du
∫ x √(3x2 + 1) dx = ∫ √u × (1/6) du
= (1/6) × u3/2 / (3/2) + C
= (1/9) u3/2 + C
= (1/9)(3x2 + 1)3/2 + C

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.

Figure 5 · Which integration method? Figure 5 · Which integration method? 1. Can it be rewritten as a sum of standard forms? expand brackets, split fractions, write roots as powers yes: integrate term by term no 2. Is it a standard form with ax + b inside? (3x − 1)⁵, e⁴⁻²ˣ, cos(2x + 3), 1/(2x + 5) yes: integrate, then divide by a no 3. Is the derivative of the inside present, up to a constant? 2x(x² + 1)⁴, cos x · eˢⁱⁿ ˣ, f′(x)/f(x) yes: reverse chain rule or substitute u = g(x) no 4. None of these? eˣ², x sin x, x eˣ then: not an SL indefinite integral: use the GDC for a definite value Ask the questions in order. Most Paper 1 integrals stop at the first or second box.
Figure 5 · Which integration method?

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.

f(x) = 6 × (−cos 3x)/3 + 2x + C = −2 cos 3x + 2x + C
f(0) = −2 cos 0 + 0 + C = −2 + C = 5 ⇒ C = 7
f(x) = −2 cos 3x + 2x + 7

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).

y = ln(x2 + 1) + Ctop is the derivative of the bottom; x² + 1 > 0, so no modulus
3 = ln 1 + C = 0 + C ⇒ C = 3
y = ln(x2 + 1) + 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

  1. Rewrite first, as a line of working: powers for roots and reciprocals, brackets expanded, fractions split.
  2. Integrate term by term and write + C on the same line.
  3. For f(ax + b), integrate the outside and divide by a, and say so.
  4. 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.
  5. Check the answer by differentiating, in your head if not on paper.
  6. 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.

= x4 − 6 × x1/2/(1/2) + 3 ln x + C
= x4 − 12√x + 3 ln x + C

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².

∫ x2 (2x3 + 1)4 dx = (1/6) × (2x3 + 1)5 / 5 + C = (2x3 + 1)5 / 30 + C

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):

1 = (3/2) sin π − 2(π/2)2 + C = 0 − π2/2 + C
C = 1 + π2/2
f(x) = (3/2) sin 2x − 2x2 + 1 + π2/2

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.

Mocks: in the future, hold tight!