← AS & A Level Mathematics

AS & A Level Mathematics · Pure Mathematics 2 & 3 · Chapter 5

Integration

In Pure Mathematics 1 you integrated powers of x and linear brackets (ax + b)ⁿ for n ≠ −1. In this chapter you extend reverse differentiation to exponential functions, the missing n = −1 case that gives natural logarithms, trigonometric functions and trigonometric identities, and the numerical trapezium rule.

Learning objectives

  1. Extend reverse differentiation to integrate eˣ and eax + b, and apply them to curves, areas and improper integrals.
  2. Integrate 1/x and 1/(ax + b) to obtain (1/a) ln|ax + b| + c, state validity domains, and divide improper rational fractions before integrating.
  3. Integrate cos(ax + b), sin(ax + b) and sec²(ax + b) when x is measured in radians.
  4. Use trigonometric identities — including sin²x ≡ ½(1 − cos 2x), cos²x ≡ ½(1 + cos 2x), tan²x ≡ sec²x − 1 and compound-angle expansions — to carry out integration.
  5. Understand and use the trapezium rule (P2 only) to estimate a definite integral, and determine from the curve's concavity whether the estimate is an under-estimate or an over-estimate.

Book exercises: Prerequisite knowledge, Explore 5.1 and 5.2, Exercises 5A, 5B, 5C, 5D, 5E, and End-of-chapter review exercise 5.

5.1 Integration of exponential functions

  • From Chapter 4, differentiating an exponential keeps the exponential intact: d/dx (eˣ) = eˣ and d/dx (eax + b) = a eax + b.
  • Since integration is the reverse process of differentiation, we divide by the constant coefficient a of x in the exponent.
  • The exponent must be linear (of the form ax + b) for this rule to work directly.
  • If an integrand contains products or fractions of exponentials, expand brackets or split the fraction using index laws (eˣ · eʸ = ex + y, eˣ / eʸ = ex − y) before integrating term by term.

🔑 Key Point 5.1 · Rules for integrating exponential functions

  • ∫ eˣ dx = eˣ + c
  • ∫ eax + b dx = eax + b + c (for any non-zero constant a)
Function: (1/a) eax + b + c antiderivative Gradient: eax + b integrand differentiate: × a integrate: ÷ a, then + c 1. Keep eax + b unchanged 2. Divide by a (coeff of x) 3. Add + c (or limits)
Integrating eax + b reverses differentiation: keep the exponential power exactly the same and divide by the coefficient a of x.

📘 Worked Example 5.1 · Indefinite exponential integrals

Find: (a) ∫ e3x dx · (b) ∫ e−2x dx · (c) ∫ e5x − 4 dx.

  1. (a) Here the coefficient of x is a = 3: divide by 3 to get e3x + c.
  2. (b) Here the coefficient of x is a = −2: divide by −2 to get e−2x + c = − e−2x + c.
  3. (c) Here a = 5 and b = −4: keep the exponent (5x − 4) and divide by 5 to get e5x − 4 + c.
  4. Check by differentiating: d/dx [(1/5)e5x − 4] = (1/5) × 5e5x − 4 = e5x − 4. ✔

📘 Worked Example 5.2 · Evaluate ∫21 9e3x − 1 dx

  1. Integrate 9e3x − 1 by dividing by a = 3: [(9/3)e3x − 1]21 = [3e3x − 1]21.
  2. Substitute the upper limit x = 2: 3e3(2) − 1 = 3e⁵.
  3. Substitute the lower limit x = 1: 3e3(1) − 1 = 3e².
  4. Subtract and factorise: 3e⁵ − 3e² = 3e²(e³ − 1).
1212345xyA ≈ 2.39y = x² + e⁻²ˣ
Worked Example 5.3: the shaded area under y = x² + e−2x between x = 1 and x = 2 is 7/3 + ½e⁻² − ½e⁻⁴ ≈ 2.39 square units.

📘 Worked Example 5.3 · Area under y = x² + e−2x from x = 1 to x = 2

  1. Set up the definite integral: Area = ∫21 (x² + e−2x) dx.
  2. Integrate term by term: x² → x³/3 and e−2x → −½e−2x, giving [x³/3 − ½e−2x]21.
  3. Substitute limits: (8/3 − ½e⁻⁴) − (1/3 − ½e⁻²).
  4. Simplify exact form: + e⁻² − e⁻⁴ ≈ 2.39 units² (3 s.f.).

Expanding, splitting fractions, stationary points & improper limits

  • Products & powers: expand before integrating, e.g. (eˣ − 2)² = e2x − 4eˣ + 4.
  • Fractions over a single exponential: divide each numerator term by the denominator using index laws: (eˣ − 2)² / e2x = (e2x − 4eˣ + 4) / e2x = 1 − 4e⁻ˣ + 4e−2x.
  • Remember at x = 0: e⁰ = 1 (never 0!), so always evaluate the lower limit carefully at x = 0.
  • Improper integrals to ∞: as x → ∞, negative exponentials like e⁻ˣ and e−2x tend to 0.
ln 21.21234xyM(ln 2, 1)A = 6 − 7 ln 2y = 2eˣ + 8e⁻ˣ − 7
Finding the area up to a stationary point M: on y = 2eˣ + 8e⁻ˣ − 7, dy/dx = 0 gives e2x = 4, so x = ln 2 and M is (ln 2, 1).

📘 Worked Example A · Area up to the minimum point M of y = 2eˣ + 8e⁻ˣ − 7

  1. Differentiate to find M: dy/dx = 2eˣ − 8e⁻ˣ = 0, so e2x = 4, giving 2x = ln 4 = 2 ln 2, so x = ln 2.
  2. Integrate y from x = 0 to x = ln 2: Area = ∫ln 20 (2eˣ + 8e⁻ˣ − 7) dx = [2eˣ − 8e⁻ˣ − 7x]ln 20.
  3. At x = ln 2, eln 2 = 2 and e−ln 2 = 1/2: upper value = 2(2) − 8(1/2) − 7 ln 2 = 4 − 4 − 7 ln 2 = −7 ln 2.
  4. At x = 0, e⁰ = 1: lower value = 2(1) − 8(1) − 0 = −6.
  5. Subtract: (−7 ln 2) − (−6) = 6 − 7 ln 2 (≈ 1.15 units²).

✏️ Try it

  1. Find ∫ (6e2 − 3x + 4e½x) dx.
  2. Find ∫ (eˣ − 2)² / e2x dx.
  3. Evaluate ∫∞0 (4e−2x + 5e⁻ˣ) dx.
Answers

1. Step 1: Integrate 6e2 − 3x by dividing by −3 to get −2e2 − 3x. Step 2: Integrate 4e½x by dividing by 1/2 to get 8e½x. Step 3: −2e2 − 3x + 8e½x + c.

2. Step 1: Expand and divide by e2x: (e2x − 4eˣ + 4)/e2x = 1 − 4e⁻ˣ + 4e−2x. Step 2: Integrate term by term: x + 4e⁻ˣ − 2e−2x + c.

3. Step 1: Integrate from 0 to a: [−2e−2x − 5e⁻ˣ]a0 = (−2e−2a − 5e−a) − (−2 − 5) = 7 − 2e−2a − 5e−a. Step 2: As a → ∞, e−2a → 0 and e−a → 0. Step 3: 7.

Next: 5.2 Integrating 1/(ax + b) →

5.2 Integration of

  • In Pure 1, the power rule ∫ xⁿ dx = xⁿ⁺¹/(n + 1) + c worked for every power except n = −1.
  • Explore 5.1 (Why Fiona's method fails): trying to apply xⁿ⁺¹/(n + 1) to x⁻¹ or (2x + 3)⁻¹ gives x⁰/0, which is division by zero and undefined!
  • Instead, from Chapter 4 we know that d/dx (ln x) = 1/x (for x > 0) and d/dx [ln(ax + b)] = a/(ax + b) (for ax + b > 0).
  • Reversing differentiation fills the n = −1 gap with a natural logarithm.

🔑 Key Point 5.2 & 5.3 · Logarithmic integration rules

  • When x > 0: ∫ dx = ln x + c, and when ax + b > 0: ∫ dx = ln(ax + b) + c.
  • For both positive and negative values of the denominator (general rule): ∫ dx = ln|x| + c and ∫ dx = ln|ax + b| + c.
  • More generally, because d/dx [ln|f(x)|] = f′(x)/f(x), any fraction whose numerator is a multiple of the derivative of its linear denominator integrates to a logarithm.

📘 Worked Example 5.4 · Indefinite integrals and validity domains

Find each of these integrals and state the values of x for which the integral is valid: (a) ∫ (2/x) dx · (b) ∫ 4/(2x + 1) dx · (c) ∫ 6/(2 − 3x) dx.

  1. (a) Factor out 2: 2 ∫ (1/x) dx = 2 ln x + c, valid for x > 0.
  2. (b) Factor out 4 and divide by a = 2: 4 × (1/2) ln(2x + 1) + c = 2 ln(2x + 1) + c, valid for 2x + 1 > 0, so x > −1/2.
  3. (c) Factor out 6 and divide by a = −3: 6 × (1/(−3)) ln(2 − 3x) + c = −2 ln(2 − 3x) + c, valid for 2 − 3x > 0, so x < 2/3.

💡 Explore 5.2 · Rafiu vs Fausat on ∫ dx

  1. Rafiu expands the denominator: ∫ 1/(6x + 2) dx = (1/6) ln(6x + 2) + c.
  2. Fausat takes out 1/2 first: (1/2) ∫ 1/(3x + 1) dx = (1/2)(1/3) ln(3x + 1) + c = (1/6) ln(3x + 1) + c.
  3. Who is right? Both are correct! By log laws, (1/6) ln(6x + 2) = (1/6) ln[2(3x + 1)] = (1/6) ln 2 + (1/6) ln(3x + 1).
  4. Since (1/6) ln 2 is just a constant, it is absorbed into the arbitrary constant + c. Fausat's form is simpler and preferred.

Why we need the modulus sign |ax + b| for negative values

  • Compare ∫32 (1/x) dx and ∫−2−3 (1/x) dx on the graph of y = 1/x below.
  • On [2, 3], the area is above the x-axis: [ln x]32 = ln 3 − ln 2 = ln(3/2).
  • By rotational symmetry of y = 1/x, the region on [−3, −2] has the exact same area but lies below the x-axis, so ∫−2−3 (1/x) dx = −ln(3/2) = ln(2/3).
  • Writing ln(−2) − ln(−3) is invalid because ln x is only defined for positive inputs. Using ln|x| gives ln|−2| − ln|−3| = ln 2 − ln 3 = ln(2/3), which works seamlessly!
−3−2−1123−2−112xy+ln(3/2)−ln(3/2)y = 1/x
Symmetry of y = 1/x: the shaded area above [2, 3] is +ln(3/2), while the matching region below [−3, −2] has integral −ln(3/2) = ln(2/3). Using ln|x| evaluates both correctly.

📘 Worked Example 5.5 · Definite integral where 2 − 3x < 0

Find the value of ∫32 dx.

  1. Integrate using the modulus sign (with a = −3): [(6/(−3)) ln|2 − 3x|]32 = [−2 ln|2 − 3x|]32.
  2. Substitute upper limit x = 3: −2 ln|2 − 9| = −2 ln|−7| = −2 ln 7.
  3. Substitute lower limit x = 2: −2 ln|2 − 6| = −2 ln|−4| = −2 ln 4.
  4. Subtract and apply log laws: (−2 ln 7) − (−2 ln 4) = 2 ln 4 − 2 ln 7 = 2 ln (or ln(16/49)).

Integrating improper rational fractions by dividing first

Improper fraction e.g. 4x / (2x − 1) Divide numerator 2 + 2/(2x − 1) Integrate each term 2x + ln|2x − 1| + c
Whenever the numerator degree is greater than or equal to the denominator degree, split into Quotient + Remainder/(ax + b) before integrating.

📘 Worked Example B · Show that ∫51 dx = 8 + ln 9

  1. Write 4x/(2x − 1) ≡ 2 + A/(2x − 1): multiply by (2x − 1) to get 4x ≡ 2(2x − 1) + A = 4x − 2 + A, so A = 2.
  2. Rewrite the integral: ∫51 (2 + 2/(2x − 1)) dx.
  3. Integrate term by term: [2x + (2/2) ln|2x − 1|]51 = [2x + ln|2x − 1|]51.
  4. Substitute limits: (10 + ln 9) − (2 + ln 1) = 8 + ln 9 (since ln 1 = 0). ✔
14k0.20.40.6xyArea = 2 ln((k + 3)/4)y = 2/(x + 3)
Exercise 5B Q7: the shaded area under y = 2/(x + 3) from x = 1 to x = k is 2 ln((k + 3)/4). Setting this equal to 4 gives ln((k + 3)/4) = 2, so k = 4e² − 3.

✏️ Try it

  1. Find ∫ 5/(2 − 3x) dx and state the values of x for which it is valid.
  2. Evaluate ∫41 1/(2x + 1) dx, giving your answer as a single logarithm.
  3. Given that (6x² + 5x)/(2x − 5) ≡ 3x + 10 + 50/(2x − 5), evaluate ∫10 (6x² + 5x)/(2x − 5) dx.
Answers

1. Step 1: Divide by a = −3: −(5/3) ln(2 − 3x) + c. Step 2: Valid when 2 − 3x > 0, so x < 2/3.

2. Step 1: [(1/2) ln|2x + 1|]41 = (1/2) ln 9 − (1/2) ln 3. Step 2: (1/2) ln(9/3) = (1/2) ln 3 (or ln √3).

3. Step 1: Integrate 3x + 10 + 50/(2x − 5) to get [(3/2)x² + 10x + 25 ln|2x − 5|]10. Step 2: Upper (x = 1): 3/2 + 10 + 25 ln|−3| = 23/2 + 25 ln 3. Lower (x = 0): 25 ln|−5| = 25 ln 5. Step 3: Subtract: 23/2 − 25 ln(5/3).

Next: 5.3 Basic trig integrals →

5.3 Integration of sin(ax + b), cos(ax + b) and sec²(ax + b)

  • From Chapter 4, when x is measured in radians: d/dx (sin x) = cos x, d/dx (cos x) = −sin x, and d/dx (tan x) = sec²x.
  • Watch the signs carefully when reversing differentiation: integrating cos gives +sin, whereas integrating sin gives −cos!
  • For a linear angle (ax + b), divide by the coefficient a of x.

🔑 Key Point 5.4 · Standard trigonometric integrals (x in radians)

Basic formLinear angle (ax + b)Sign & check
∫ cos x dx = sin x + c∫ cos(ax + b) dx = sin(ax + b) + cPositive (+sin): d/dx(sin) = +cos
∫ sin x dx = −cos x + c∫ sin(ax + b) dx = − cos(ax + b) + cNegative (−cos): d/dx(−cos) = +sin
∫ sec²x dx = tan x + c∫ sec²(ax + b) dx = tan(ax + b) + cPositive (+tan): d/dx(tan) = sec²
sin x cos x −sin x −cos x Clockwise = Differentiate Anticlockwise = Integrate ∫ sec²(ax + b) dx = (1/a) tan(ax + b) + c ⚠️ Radians only! cos 0 = 1 (never 0!)
Go clockwise around the wheel to differentiate and anticlockwise to integrate. For any linear inside (ax + b), divide by a.

📘 Worked Example 5.6 · Indefinite trigonometric integrals

Find: (a) ∫ sin 2x dx · (b) ∫ cos 3x dx · (c) ∫ 4 sec²(x/2) dx.

  1. (a) Integrate sin 2x with a = 2: − cos 2x + c.
  2. (b) Integrate cos 3x with a = 3: sin 3x + c.
  3. (c) Factor out 4 and divide by a = 1/2: 4 × (2 tan(x/2)) + c = 8 tan + c.
π/4π/2123xy3π/4 − 1y = 3 − 2 sin 2x
Worked Example 5.7: the area under y = 3 − 2 sin 2x from x = 0 to x = π/4 is 3π/4 − 1.

📘 Worked Example 5.7 · Evaluate ∫π/40 (3 − 2 sin 2x) dx

  1. Integrate term by term: 3 → 3x, and −2 sin 2x → −2 × (−½ cos 2x) = +cos 2x.
  2. Write with limits: [3x + cos 2x]π/40.
  3. Substitute upper limit x = π/4: 3(π/4) + cos(π/2) = 3π/4 + 0 = 3π/4.
  4. Substitute lower limit x = 0: 3(0) + cos 0 = 0 + 1 = 1.
  5. Subtract: − 1.
π/3π2468xyM(π/3, 9√3/2)A = 21/4y = 3 sin 2x + 6 sin x
Exercise 5C Q8: y = 3 sin 2x + 6 sin x has its maximum M at x = π/3, and the shaded area is 21/4.

📘 Worked Example C · Area up to the maximum M of y = 3 sin 2x + 6 sin x

  1. Find M by setting dy/dx = 0: 6 cos 2x + 6 cos x = 0 ⇒ (2 cos²x − 1) + cos x = 0 ⇒ (2 cos x − 1)(cos x + 1) = 0.
  2. For 0 < x < π, cos x = 1/2, so x = π/3.
  3. Integrate from 0 to π/3: Area = ∫π/30 (3 sin 2x + 6 sin x) dx = [−(3/2) cos 2x − 6 cos x]π/30.
  4. At x = π/3 (cos(2π/3) = −1/2, cos(π/3) = 1/2): (−3/2)(−1/2) − 6(1/2) = 3/4 − 3 = −9/4.
  5. At x = 0 (cos 0 = 1): −3/2 − 6 = −15/2.
  6. Subtract: (−9/4) − (−15/2) = 30/4 − 9/4 = .

✏️ Try it

  1. Find ∫ (2 cos(1 − 5x) + 2 sec²(5x − 2)) dx.
  2. Evaluate ∫π/60 (cos 2x + sin x) dx.
  3. A curve has dy/dx = 1 − 3 sin 2x and passes through (π/4, 0). Find its equation.
Answers

1. Step 1: 2 cos(1 − 5x) with a = −5 integrates to −(2/5) sin(1 − 5x). Step 2: 2 sec²(5x − 2) with a = 5 integrates to (2/5) tan(5x − 2). Step 3: −(2/5) sin(1 − 5x) + (2/5) tan(5x − 2) + c.

2. Step 1: [(1/2) sin 2x − cos x]π/60. Step 2: Upper: (1/2)(√3/2) − √3/2 = −√3/4. Lower: 0 − 1 = −1. Step 3: (−√3/4) − (−1) = 1 − √3/4.

3. Step 1: Integrate: y = x + (3/2) cos 2x + c. Step 2: Substitute (π/4, 0): 0 = π/4 + (3/2) cos(π/2) + c = π/4 + 0 + c, so c = −π/4. Step 3: y = x + (3/2) cos 2x − π/4.

Next: 5.4 Trig identities in integration →

5.4 Further integration of trigonometric functions

  • You cannot integrate sin²x, cos²x or tan²x by raising the power to 3! Why? Because the inside function sin x or cos x is not linear.
  • Instead, use trigonometric identities from Chapter 3 to rewrite powers of trig functions in terms of cos 2x or sec²x, which you already know how to integrate.

🔑 Essential identities for trigonometric integration

To integrateStart from identityRearrange to integrable formResult
∫ sin²x dxcos 2x ≡ 1 − 2 sin²xsin²x ≡ (1 − cos 2x)½x − ¼ sin 2x + c
∫ cos²x dxcos 2x ≡ 2 cos²x − 1cos²x ≡ (1 + cos 2x)½x + ¼ sin 2x + c
∫ sin²(kx) dxcos(2kx) ≡ 1 − 2 sin²(kx)sin²(kx) ≡ (1 − cos 2kx)½x − sin(2kx)/(4k) + c
∫ cos²(kx) dxcos(2kx) ≡ 2 cos²(kx) − 1cos²(kx) ≡ (1 + cos 2kx)½x + sin(2kx)/(4k) + c
∫ tan²x dx1 + tan²x ≡ sec²xtan²x ≡ sec²x − 1tan x − x + c
∫ cot²x dx1 + cot²x ≡ cosec²xcot²x ≡ cosec²x − 1−cot x − x + c
sin²(kx) or cos²(kx) ½(1 ∓ cos 2kx) — double angle! ½x ∓ sin(2kx)/(4k) tan²(kx) sec²(kx) − 1 tan(kx)/k − x sin Ax cos Bx Expand sin(A+B) ± sin(A−B) Integrate sum of sines
Three standard identity rewrites that turn non-integrable trig products or powers into linear-angle terms.
π/2π1/21xyy = sin²x = ½(1 − cos 2x)y = cos²xmean height = 1/2
Why sin²x ≡ ½ − ½ cos 2x and cos²x ≡ ½ + ½ cos 2x make visual sense: both oscillate symmetrically around y = 1/2, so over [0, π] the cosine wave cancels out and the area under each curve is ½ × π = π/2.

📘 Worked Example 5.8 · Integrating sin²x and 3 cos²2x

Find: (a) ∫ sin²x dx · (b) ∫ 3 cos²2x dx.

  1. (a) Replace sin²x with ½(1 − cos 2x): ∫ sin²x dx = ½ ∫ (1 − cos 2x) dx.
  2. Integrate term by term: ½(x − ½ sin 2x) + c = x − sin 2x + c.
  3. (b) Replace cos²2x with ½(1 + cos 4x) (notice the angle doubles from 2x to 4x!): ∫ 3 cos²2x dx = (3/2) ∫ (1 + cos 4x) dx.
  4. Integrate term by term: (3/2)(x + ¼ sin 4x) + c = x + sin 4x + c.

📘 Worked Example 5.9 · Integrating a fourth power: Find ∫ sin⁴x dx

  1. Write sin⁴x = (sin²x)² = [½(1 − cos 2x)]² = ¼(1 − 2 cos 2x + cos²2x).
  2. Apply the double-angle identity a second time to cos²2x ≡ ½(1 + cos 4x): sin⁴x = ¼(1 − 2 cos 2x + ½ + ½ cos 4x) = 3/8 − ½ cos 2x + (1/8) cos 4x.
  3. Now integrate term by term: ∫ (3/8 − ½ cos 2x + (1/8) cos 4x) dx = x − sin 2x + sin 4x + c.
π/412345xy5 − 5π/4y = 5 tan²x
Worked Example 5.10: the shaded region under y = 5 tan²x from x = 0 to x = π/4 has exact area 5 − 5π/4 ≈ 1.07.

📘 Worked Example 5.10 · Find the exact value of ∫π/40 5 tan²x dx

  1. Use tan²x ≡ sec²x − 1: ∫π/40 5 tan²x dx = ∫π/40 (5 sec²x − 5) dx.
  2. Integrate: [5 tan x − 5x]π/40.
  3. Substitute limits (tan(π/4) = 1, tan 0 = 0): (5(1) − 5π/4) − (0 − 0) = 5 − .

📘 Worked Examples 5.11, 5.12 & 5.13 · Reversing derivatives and compound angles

  1. Worked Example 5.11: Differentiating y = sec x = (cos x)⁻¹ gives dy/dx = sin x / cos²x = tan x sec x. Therefore ∫ tan x sec x dx = sec x + c, so ∫π/40 (cos 2x + 5 tan x sec x) dx = [½ sin 2x + 5 sec x]π/40 = (½ + 5√2) − (0 + 5) = 5√2 − 9/2.
  2. Worked Example 5.12: Since 2 cosec 2x tan x ≡ 2(sin x / cos x) / (2 sin x cos x) ≡ 1/cos²x ≡ sec²x, we have cosec 2x tan x ≡ ½ sec²x. Thus ∫π/3−π/3 (5 + cosec 2x tan x) dx = [5x + ½ tan x]π/3−π/3 = (5π/3 + √3/2) − (−5π/3 − √3/2) = 10π/3 + √3.
  3. Worked Example 5.13: From compound angles, cos(3x − x) − cos(3x + x) ≡ (cos 3x cos x + sin 3x sin x) − (cos 3x cos x − sin 3x sin x), so cos 2x − cos 4x ≡ 2 sin 3x sin x.
  4. Hence ∫π/40 sin 3x sin x dx = ½ ∫π/40 (cos 2x − cos 4x) dx = ½ [½ sin 2x − ¼ sin 4x]π/40 = ½[(½ − 0) − 0] = 1/4.

✏️ Try it

  1. Find ∫ (4 cos²(x/2) + 6 tan²(3x)) dx.
  2. Find the exact value of ∫π/40 (2 sin x + cos x)² dx.
  3. Use sin 3x ≡ 3 sin x − 4 sin³x to evaluate ∫π/30 2 sin³x dx.
Answers

1. Step 1: 4 cos²(x/2) ≡ 2(1 + cos x), which integrates to 2x + 2 sin x. Step 2: 6 tan²(3x) ≡ 6(sec²3x − 1), which integrates to 2 tan 3x − 6x. Step 3: Combine: 2 sin x + 2 tan 3x − 4x + c.

2. Step 1: Expand: 4 sin²x + 4 sin x cos x + cos²x = 2(1 − cos 2x) + 2 sin 2x + ½(1 + cos 2x) = 5/2 + 2 sin 2x − (3/2) cos 2x. Step 2: Integrate from 0 to π/4: [(5/2)x − cos 2x − (3/4) sin 2x]π/40. Step 3: (5π/8 − 0 − 3/4) − (0 − 1 − 0) = 5π/8 + 1/4.

3. Step 1: Rearrange: 2 sin³x ≡ (3/2) sin x − ½ sin 3x. Step 2: Integrate from 0 to π/3: [−(3/2) cos x + (1/6) cos 3x]π/30. Step 3: (−3/4 − 1/6) − (−3/2 + 1/6) = −11/12 + 4/3 = 5/12.

Next: 5.5 The trapezium rule →

5.5 The trapezium rule P2 only

  • When a function y = f(x) cannot be integrated algebraically (such as y = x − 2 ln x or y = eˣ cos x), we approximate the definite integral ∫ba f(x) dx using the trapezium rule.
  • Split the interval from x = a to x = b into n strips of equal width h, so h = .
  • There are n + 1 vertical edges (ordinates): y₀, y₁, y₂, …, yₙ at x₀ = a, x₁ = a + h, …, xₙ = b.
  • Each strip is approximated by a trapezium of area ½(yᵢ + yᵢ₊₁)h. Adding all n strips counts the end ordinates y₀ and yₙ once, and every interior ordinate y₁, …, yₙ₋₁ twice!
xyy0hy1hy2hy3hy4hy5hy6aby = f(x)
Dividing the area under y = f(x) from x = a to x = b into 6 equal-width trapezium strips (n = 6, so 7 ordinates y₀ to y₆). Interior edges y₁ to y₅ belong to two adjacent strips, so they are multiplied by 2.

🔑 Key Point 5.5 · The trapezium rule formula P2 only

  • ∫ba f(x) dx ≈ [ y₀ + yₙ + 2(y₁ + y₂ + … + yₙ₋₁) ], where h = .
  • In words: Area ≈ half width of strip × (first + last + twice the sum of all the others).
  • Tip: The number of ordinates is always one more than the number of strips (n strips ⇒ n + 1 ordinates). Do not use a numerical method when an algebraic method is available unless specifically asked to do so.

Over-estimate vs under-estimate: look at how the curve bends

0.523.512xyy = x − 2 ln xOver-estimate: 3.08 123424xyy = 2√(4x − x²)Under-estimate: 10.93
Left (Worked Example 5.14): y = x − 2 ln x bends upwards, so the straight top edges of the trapezia lie above the curve (over-estimate). Right (Worked Example 5.15): y = 2√(4x − x²) bends downwards, so the top edges lie below the curve (under-estimate).
Curve shapePosition of trapezium chordsEstimate typeExam reason to write
Bends upwards (book calls this ‘concave’, d²y/dx² > 0)Chords lie above the curveOver-estimate“The top edges of the strips all lie above the curve.”
Bends downwards (book calls this ‘convex’, d²y/dx² < 0)Chords lie below the curveUnder-estimate“The top edges of the strips all lie below the curve.”
Doubling the number of strips nChords hug the curve closer4× smaller errorDoubling n reduces the error to approximately ¼ of the previous error.

📘 Worked Example 5.14 · y = x − 2 ln x from x = 0.5 to x = 3.5 with 2 intervals

  1. Find the strip width: a = 0.5, b = 3.5, n = 2, so h = (3.5 − 0.5)/2 = 1.5.
  2. Calculate the 3 ordinates (to 4 d.p.): at x₀ = 0.5, y₀ = 0.5 − 2 ln(0.5) = 1.8863; at x₁ = 2, y₁ = 2 − 2 ln 2 = 0.6137; at x₂ = 3.5, y₂ = 3.5 − 2 ln(3.5) = 0.9945.
  3. Apply the trapezium rule: Area ≈ (1.5 / 2) [y₀ + y₂ + 2y₁] = 0.75 [1.8863 + 0.9945 + 2(0.6137)].
  4. Evaluate: 0.75 × 4.1082 = 3.08115… ≈ 3.08 (to 2 d.p.).
  5. This is an over-estimate because the top edges of the strips all lie above the curve.

📘 Worked Example 5.15 · Estimate ∫40 2√(4x − x²) dx with 4 intervals

  1. Find the strip width: a = 0, b = 4, n = 4, so h = (4 − 0)/4 = 1.
  2. Calculate the 5 ordinates at x = 0, 1, 2, 3, 4: y₀ = 0, y₁ = 2√3, y₂ = 4, y₃ = 2√3, y₄ = 0.
  3. Substitute into the formula: ∫40 2√(4x − x²) dx ≈ (1/2) [0 + 0 + 2(2√3 + 4 + 2√3)].
  4. Simplify: 4√3 + 4 ≈ 10.93 (to 2 d.p.).
  5. This is an under-estimate because the top edges of the strips all lie below the curve.

🎛️ Simulation: interactive trapezium rule visualiser

  • Choose a curve and slide the number of strips n from 1 to 8.
  • Watch the straight trapezium chords hug the curve more closely as n increases, and see the live step-by-step calculation and percentage error!
Solid curve: y = f(x). Shaded trapezia: numerical approximation with n strips.

    🧪 Tool: P2/3 standard integral & definite evaluator

    • Pick any Chapter 5 integrand family, set the multiplier k, linear coefficients a and b, and limits x₁, x₂.
    • The tool writes out the complete algebraic antiderivative and evaluates the definite integral step by step.

      ✏️ Try it

      1. Use the trapezium rule with 2 intervals to estimate ∫40 2/(3 + eˣ) dx, giving your answer to 2 decimal places.
      2. Use the trapezium rule with 3 intervals to estimate ∫π/20 eˣ cos x dx to 2 decimal places, and state whether it is an under-estimate or an over-estimate.
      3. When the number of strips in a trapezium rule estimate is increased from 3 to 6, what happens to the size of the error?
      Answers

      1. Step 1: h = (4 − 0)/2 = 2; x = 0, 2, 4. Step 2: y₀ = 2/4 = 0.5, y₁ = 2/(3 + e²) ≈ 0.1925, y₂ = 2/(3 + e⁴) ≈ 0.0347. Step 3: Area ≈ (2/2)[0.5 + 0.0347 + 2(0.1925)] = 0.92 (2 d.p.).

      2. Step 1: h = (π/2)/3 = π/6; x = 0, π/6, π/3, π/2. Step 2: y₀ = 1, y₁ = eπ/6 cos(π/6) ≈ 1.4619, y₂ = eπ/3 cos(π/3) ≈ 1.4248, y₃ = 0. Step 3: Area ≈ (π/12)[1 + 0 + 2(1.4619 + 1.4248)] ≈ 1.77 (2 d.p.). Step 4: Under-estimate because the curve bends downwards and the top edges of the strips lie below the curve.

      3. Step 1: Increasing from 3 to 6 doubles the number of strips. Step 2: Doubling the number of strips reduces the error to approximately one quarter (1/4) of the previous error.

      Next: summary and quiz →

      Chapter summary

      • Exponentials: ∫ eˣ dx = eˣ + c and ∫ eax + b dx = (1/a)eax + b + c. Expand brackets or split fractions using index laws before integrating.
      • Reciprocal linear functions: ∫ (1/x) dx = ln|x| + c and ∫ 1/(ax + b) dx = (1/a) ln|ax + b| + c. If the numerator degree is ≥ 1, divide by (ax + b) first.
      • Basic trig functions (x in radians): ∫ cos(ax + b) dx = (1/a) sin(ax + b) + c, ∫ sin(ax + b) dx = −(1/a) cos(ax + b) + c, and ∫ sec²(ax + b) dx = (1/a) tan(ax + b) + c.
      • Trig identities for powers: rewrite sin²x ≡ ½(1 − cos 2x), cos²x ≡ ½(1 + cos 2x), and tan²x ≡ sec²x − 1 before integrating.
      • The trapezium rule (P2 only): ∫ba f(x) dx ≈ (h/2)[y₀ + yₙ + 2(y₁ + … + yₙ₋₁)] where h = (b − a)/n. Chords above a curve give an over-estimate; chords below give an under-estimate.
      Function / RuleIntegral / FormulaKey reminder
      eax + b∫ eax + b dx = eax + b + cKeep power unchanged; remember e⁰ = 1
      1/(ax + b)∫ dx = ln|ax + b| + cFills the n = −1 gap; include |…| for definite integrals
      cos(ax + b)∫ cos(ax + b) dx = sin(ax + b) + cx in radians; positive sign
      sin(ax + b)∫ sin(ax + b) dx = − cos(ax + b) + cx in radians; negative sign (cos 0 = 1)
      sec²(ax + b)∫ sec²(ax + b) dx = tan(ax + b) + cAlso used after replacing tan²x ≡ sec²x − 1
      sin²x and cos²x∫ ½(1 ∓ cos 2x) dx = ½x ∓ ¼ sin 2x + cDouble the angle when rewriting cos²(kx) → cos(2kx)
      Trapezium rule P2 only [y₀ + yₙ + 2(y₁ + … + yₙ₋₁)], h = n strips use n + 1 ordinates

      Which method do I need?

      Product or fraction of eˣ?→Expand or divide using index laws, then use (1/a)eax+b
      Fraction like (4x + 1)/(2x − 1)?→Divide first into A + B/(2x − 1), then integrate to Ax + (B/2) ln|2x − 1|
      sin²(kx) or cos²(kx)?→Replace with ½(1 ∓ cos 2kx), then integrate
      tan²(kx)?→Replace with sec²(kx) − 1, then integrate to (1/k) tan(kx) − x
      Asked for trapezium rule?→Find h = (b − a)/n, tabulate n + 1 ordinates, apply (h/2)[first + last + 2(others)]

      📄 Practice questions

      All questions from Prerequisite knowledge, Explore 5.1 and 5.2, Exercises 5A to 5E, and End-of-chapter review exercise 5 are in the printable assignment for this chapter, together with a Check yourself set and the chapter quiz.

      Mini-quiz

      1. Find ∫e³ˣ⁻¹ dx.
      2. Find the exact value of ∫ from 0 to 1 of 4e²ˣ dx.
      3. Find ∫6/(2x + 5) dx.
      4. Evaluate ∫ from 2 to 3 of 6/(2 − 3x) dx.
      5. To integrate (4x)/(2x − 1), we write 4x/(2x − 1) ≡ 2 + A/(2x − 1). What is A?
      6. Find ∫3 sin(2x + 1) dx.
      7. Find ∫4 sec²(x/2) dx.
      8. Which identity is used first to integrate ∫sin²x dx?
      9. Find ∫cos²x dx.
      10. Find the exact value of ∫ from 0 to π/4 of tan²x dx.
      11. The trapezium rule uses 2 strips on [1, 5] with y₀ = 2, y₁ = 5, y₂ = 6. Estimate the integral.
      12. For a curve that bends upwards (chords lie above the curve), the trapezium rule gives:

      Source: Cambridge International AS & A Level Mathematics: Pure Mathematics 2 & 3 Coursebook (Cambridge University Press, Sue Pemberton and Julianne Hughes), Chapter 5 (Integration). Explanations, extra worked examples, Try it answers, interactive simulation, tool and quiz are Guru Jazzy's own. This page is not made or endorsed by Cambridge University Press or Cambridge Assessment International Education.