Skip to content

9709 · Unit 14 · Papers 2–3: Pure Mathematics 2 and 3

Numerical solution of equations.

9709 · Unit 14 · Numerical solution of equations
Revisionbyexamplicity

Locating a root: graphs and sign changes

§2.6 · §3.6 · Numerical solution of equations · Papers 2 and 3

A cube tank of side x m and a prism x m long, 1 m by 2 m across, hold 11 m³ together, so x³ + 2x = 11. No formula solves this cubic. Instead you trap its root, called α, between two numbers. A graph shows roughly where α is; a sign change proves it.

1See the root on a graph

Split the equation into two sides you can sketch. The root is the x where the two graphs cross. Or move everything to one side: the root is where F(x) = 0 crosses the x-axis.
Compare y = x³ and y = 11 − 2x−202−20020x11 − 2xone meetingx³The same equation as F(x) = 0−202−20−10010xα ≈ 1.93−11Compare y = x³ and y = 11 − 2x−202−20020x11 − 2xone meetingx³The same equation as F(x) = 0−202−20−10010xα ≈ 1.93−11
Worked example

Show that x³ + 2x = 11 has exactly one real root, and estimate it.

  1. Split into two sides you can sketch
    x3=11−2x
  2. Describe each graph
    y=x³ rises everywherey=11 − 2x falls everywhere
  3. Count the crossings
    a rising and a falling graph meet at most once
  4. Answer
    exactly one real root, α ≈ 1.9
✓Check the crossing of the two graphs is at height about 7.15; on F(x) = x³ + 2x − 11 the same x gives height 0
A reading from a graph is only an estimate. Use it to choose an interval, then calculate.

2Prove it with a sign change

If F is continuous on an interval and F(a), F(b) have opposite signs, at least one root lies between a and b.
Worked example

Show that α lies between 1 and 2.

  1. Write the equation as F(x) = 0
    F(x)=x3+2x−11
  2. Work out F at each end
    F(1)=1 + 2 − 11 = −8F(2)=8 + 4 − 11 = 1
  3. Compare the signs
    F(1) < 0 < F(2)
  4. Answer
    1 < α < 2
Worked example

Narrow the interval to [1.9, 2].

  1. Still negative at 1.9
    F(1.9)=−0.341
  2. Keep the half where the signs differ
    F(1.9) < 0 < F(2)
  3. Answer
    1.9 < α < 2A narrower trap for the same root.
Narrow the interval to [1.9, 2].
F(1.9) = −0.341Still negative at 1.9.F(1.9) < 0 < F(2)Keep the half where the signs differ.1.9 < α < 2A narrower trap for the same root.

3When a sign test misleads

The test needs a continuous function, and it proves at least one root, never exactly one.
Same signs: y = (x − 1.5)²11.520xtouching rootA break: y = 1/(x − 1.5)11.520xSame signs: y = (x − 1.5)²11.520xtouching rootA break: y = 1/(x − 1.5)11.520x
  1. 1
    (x − 1.5)² is 0.25 at both ends, yet x = 1.5 is a root. A curve that touches the axis does not change sign.
  2. 2
    1/(x − 1.5) is −2 at x = 1 and 2 at x = 2, yet it is never 0. It breaks at x = 1.5, so it is not continuous there.
No sign change does not mean no root. To claim exactly one root, give a reason such as the rising and falling graphs in step 1.

4Try it

Your turn

1 Show that x3+x−5=0 has a root between 1 and 2.

2 Work out F(1.5) and F(1.6). What narrower interval traps the root?

3 Sketch y = x³ and y = 5 − x. How many real roots does the equation have?

  1. 1
    F(1) = −3 < 0 and F(2) = 5 > 0; F is continuous, so a root lies between
  2. 2
    F(1.5) = −0.125 < 0 and F(1.6) = 0.696 > 0, so the root lies in (1.5, 1.6)
  3. 3
    one: x³ rises everywhere and 5 − x falls everywhere, so they meet once
Tick what you can do now
Practise with s26/33 Q8(a); m26/32 Q7(a); s26/21 Q5(c); s26/31 Q6(c)
1 / 4
9709 · Unit 14 · Numerical solution of equations
Revisionbyexamplicity

Fixed-point iteration

§2.6 · §3.6 · Numerical solution of equations · Papers 2 and 3

A calculator cannot solve x³ + 2x = 11 in one go, but it can repeat one calculation very fast. Rearrange the equation as x = g(x), feed each answer back in, and the numbers close in on α. A value with g(x) = x is a fixed point.

1Rearrange into x = g(x)

Make x the subject using steps that keep the equation true. Then write xₙ on the right and xₙ₊₁ on the left.
Worked example

Show that x³ + 2x − 11 = 0 can be written as x = ∛(11 − 2x), and write it as an iteration.

  1. Keep x³ on one side
    x3=11−2x
  2. Take the real cube root
    x=11−2x3
  3. Turn it into a rule
    xn+1=11−2xn3
  4. Answer
    g(x) = ∛(11 − 2x)
Worked example

If the sequence converges to L, which equation does L satisfy?

  1. Put L on both sides
    L=11−2L3
  2. Cube both sides
    L3=11−2L
  3. Answer
    L3+2L−11=0The limit is a root of the original cubic.
If the sequence converges to L, which equation does L satisfy?
L=11−2L3Put L on both sides.L3=11−2LCube both sides.L3+2L−11=0The limit is a root of the original cubic.
The limit argument starts with if it converges. It does not promise that a starting value will converge.

2Iterate, keeping every digit

Start at x₀, work out g(x₀), and feed the full answer back in (use the calculator’s Ans key). Stop when the iterates agree to the accuracy you need.
1.521.52xg(x)y = x(1.5, 2)(2, 2)input x₄ = 1.925840start
nxₙ
01.500000
12.000000
21.912931
31.928664
41.925840
51.926348
61.926256
71.926273
  1. 1
    Start at (1.5, 1.5) on y = x. Go up to the curve y = g(x): its height is 2.
  2. 2
    Go across to y = x at (2, 2). That height is now the next input, x₁ = 2.
  3. 3
    Up to the curve again (height 1.912931…), across to y = x, and repeat. The steps spiral in on α.
Worked example

Use xₙ₊₁ = ∛(11 − 2xₙ) with x₀ = 1.5 to find α to 3 decimal places.

  1. First iterate
    x1=11−33 = 2
  2. Use the new value, not x₀ again
    x2=73 ≈ 1.912931
  3. Keep going until three places settle
    x₅=1.926348x₆=1.926256x₇=1.926273
  4. Answer
    α ≈ 1.926 to 3 decimal places
✓Check page 3 proves this rounding with a sign test

3Some rules run away

The same equation also gives x = (11 − x³)/2. It has the same fixed point, but from x₀ = 1.5 its iterates race away. Only the actual numbers tell you which happens.
The same fixed point; different rules1.52−2024xfixed pointh(x)g(x)y = x
ng: ∛(11 − 2xₙ)h: (11 − xₙ³)/2
01.50001.5000
12.00003.8125
21.9129−22.2076
31.92875481.6751
Worked example

Iterate h from x₀ = 1.5.

  1. The first step jumps out of [1, 2]
    x1=11−1.532 = 3.8125
  2. Use each new value, sign included
    x₂ ≈ −22.2076, x₃ ≈ 5481.7
  3. Answer
    The h sequence divergesThe values grow and swap sides; they never approach α.
Iterate h from x₀ = 1.5.
x1=11−1.532 = 3.8125The first step jumps out of [1, 2].x₂ ≈ −22.2076, x₃ ≈ 5481.7Use each new value, sign included.The h sequence divergesThe values grow and swap sides; they never approach α.
Swapping sides is not failure on its own: g also alternates, but its swings shrink towards 1.92627. Divergence is swings that grow.

4Try it

Your turn

1 Show that x³ + x − 5 = 0 can be written as x = ∛(5 − x).

2 Use xₙ₊₁ = ∛(5 − xₙ) with x₀ = 1.5 to find x₁ and x₂ to 4 decimal places.

3 Keep iterating. Give the root to 2 decimal places.

  1. 1
    x³ = 5 − x, then take the real cube root of both sides
  2. 2
    x₁ = ∛3.5 ≈ 1.5183, x₂ ≈ 1.5156
  3. 3
    the iterates settle at 1.5160…, so x = 1.52
Tick what you can do now
  • not yet? step 1
  • not yet? step 2
  • not yet? step 3
Practise with s26/21 Q5(b); s26/33 Q8(b) (related conditional-convergence practice); s26/21 Q5(d); s26/22 Q6(c)
2 / 4
9709 · Unit 14 · Numerical solution of equations
Revisionbyexamplicity

Justifying accuracy and answering in context

§2.6 · §3.6 · Numerical solution of equations · Papers 2 and 3

Iterates that agree only suggest an answer. To be sure that α = 1.926 to 3 decimal places, show that α lies between the two numbers that round to it, 1.9255 and 1.9265. Then put the answer back into the tank it came from.

1Test both rounding boundaries

Go half a unit either side of the answer in its last place. A sign change between those two numbers proves the rounding.
Worked example

Show that α = 1.926 to 3 decimal places.

  1. Find the rounding boundaries
    1.926 − 0.0005=1.92551.926 + 0.0005=1.9265
  2. Work out F at each
    F(1.9255)=−0.010112F(1.9265)=0.003016
  3. Compare the signs
    F(1.9255) < 0 < F(1.9265)
  4. Answer
    α = 1.926 to 3 decimal places
✓Check every number between 1.9255 and 1.9265 rounds to 1.926
F near its zero1.92551.9265−0.0100xαEvery interior value rounds to 1.926

2More places need new boundaries

For 4 decimal places the half-unit is 0.00005. The iterates suggest 1.9263.
BoundaryF(boundary)Sign
1.92625−0.0002668negative
1.926350.0010464positive
So 1.92625 < α < 1.92635, and α = 1.9263 to 4 decimal places.
Decimal places count digits after the point; significant figures count from the first non-zero digit. Here 1.926 is 3 decimal places and 4 significant figures. A small F(1.926) on its own proves nothing about accuracy.

3Answer the tank problem

Build the equation from the shapes, solve it, then answer in the units of the question.
Cubex mx mx mvolume = x³ m³Rectangular prismx m2 m1 mvolume = 2x m³Cubex mx mx mvolume = x³ m³Rectangular prismx m2 m1 mvolume = 2x m³
Worked example

A cube of side x m and a prism x m long with a 1 m by 2 m cross-section hold 11 m³ in total. Find x to 3 decimal places.

  1. Volume of each shape
    cube: x³ m³prism: 1 × 2 × x=2x m³
  2. Add them
    x3+2x=11
  3. Solve as on pages 2 and 3
    iterate g from x₀=1.5sign test at 1.9255 and 1.9265
  4. Answer
    x = 1.926 m to 3 decimal places
Worked example

Check the volumes with the unrounded root.

  1. Keep every digit
    x ≈ 1.926270314 m
  2. Cube and prism
    x³ ≈ 7.147459, 2x ≈ 3.852541
  3. Answer
    total ≈ 11.000000 m³The answer fits the tank.
Check the volumes with the unrounded root.
x ≈ 1.926270314 mKeep every digit.x³ ≈ 7.147459, 2x ≈ 3.852541Cube and prism.total ≈ 11.000000 m³The answer fits the tank.
With the rounded 1.926 m the total is 10.996451 m³: the small gap is only rounding.

4Try it

Your turn

1 Which two numbers do you test to show a root is 1.93 to 2 decimal places?

2 Show that the root of x³ + x − 5 = 0 is 1.516 to 3 decimal places.

3 A cube of side x cm and a block of volume 5x cm³ hold 20 cm³ in total. Write an equation for x and give x to 2 decimal places.

  1. 1
    1.925 and 1.935
  2. 2
    F(1.5155) ≈ −0.0038 < 0 and F(1.5165) ≈ 0.0041 > 0, so 1.5155 < x < 1.5165
  3. 3
    x³ + 5x = 20; the root is 2.1131…, so x = 2.11 cm (signs change between 2.105 and 2.115)
Tick what you can do now
  • not yet? step 1
  • not yet? step 2
  • not yet? step 3
Practise with m26/22 Q7(c); s26/33 Q8(d); m26/22 Q7(a), Q7(c) (related model-to-iteration practice)
3 / 4
9709 · Unit 14 · Numerical solution of equations
Revisionbyexamplicity

Iterations with logarithms and tangents

§2.6 · §3.6 · Numerical solution of equations · Papers 2 and 3

Equations such as eˣ + x = 10 or tan x = 4 − 2x mix x with eˣ or tan x, so no algebra gets x on its own. The same three tools still work: rearrange, iterate, prove by signs. Two new checks come with them: a logarithm needs a positive input, and an inverse tangent works in radians and gives one angle.

1ln needs a positive input

Take ln of a side only when that side is positive for every value you will use.
eˣ + x = 10: compare two graphs0122.50510x10 − xeˣ
Worked example

Show that eˣ + x = 10 can be written as x = ln(10 − x), and that a limit of the iteration solves the equation.

  1. Isolate eˣ
    ex=10−x
  2. Take natural logs
    x=ln(10−x)
  3. If xₙ → L, put L on both sides
    L=ln(10−L)L+eL=10
  4. Answer
    the limit L solves eˣ + x = 10

2Iterate and prove the ln root

The exponential rises and the line 10 − x falls, so they meet once. Iterate from x₀ = 2, then check signs of E(x) = eˣ + x − 10.
nxₙ
02.000000
12.079442
22.069462
32.070721
42.070562
52.070582
62.070580
Worked example

Find the root of eˣ + x = 10 to 3 decimal places.

  1. Iterate xₙ₊₁ = ln(10 − xₙ)
    x₄=2.070562x₅=2.070582
  2. Test the rounding boundaries
    E(2.0705) ≈ −0.00071E(2.0715) ≈ 0.00822
  3. Answer
    x = 2.071 to 3 decimal places
✓Check every input stayed below 10, so each ln was defined

3tan⁻¹: radians, one branch

Set the calculator to radians. On 0 < x < π/2, tan⁻¹ gives back the angle you started with.
tan x = 4 − 2x, in radians01π/2024x4 − 2xtan x
Worked example

For 0 < x < π/2, show that tan x = 4 − 2x has a root between 1 and 1.2, and write an iteration for it.

  1. Signs of T(x) = tan x + 2x − 4
    T(1) ≈ −0.4426T(1.2) ≈ 0.9722
  2. Take tan⁻¹ of both sides
    x = tan−1⁡(4−2⁢x)
  3. If xₙ → L, take tan of both sides
    tan(L)=4−2L
  4. Answer
    xn+1 = tan−1⁡(4−2⁢xn)

4Iterate and prove the tan root

nxₙ
01.00000
11.10715
21.06031
31.08181
41.07215
51.07653
61.07455
71.07545
81.07504
Worked example

Find the root of tan x = 4 − 2x to 3 decimal places, starting at x₀ = 1.

  1. Iterate in radians
    x₇=1.07545x₈=1.07504
  2. Test the rounding boundaries
    T(1.0745) ≈ −0.00429T(1.0755) ≈ 0.00213
  3. Answer
    x = 1.075 radians to 3 decimal places
In degree mode tan⁻¹ gives a different sequence. And tan⁻¹ only returns angles between −π/2 and π/2, so it cannot reach roots of tan x = … outside that range.

5Try it

Your turn

1 The sequence xₙ₊₁ = ln(8 − xₙ) converges. Which equation does its limit satisfy?

2 Start at x₀ = 2. Find x₁ and x₂ to 4 decimal places.

3 Using xₙ₊₁ = tan⁻¹(3 − xₙ) in radians with x₀ = 1, find x₁ to 4 decimal places, and the equation its limit satisfies.

  1. 1
    L = ln(8 − L), so eᴸ = 8 − L: eˣ + x = 8
  2. 2
    x₁ = ln 6 ≈ 1.7918, x₂ ≈ 1.8259 (the root is 1.821)
  3. 3
    x₁ = tan⁻¹ 2 ≈ 1.1071; tan x = 3 − x (root ≈ 1.089)
Tick what you can do now
Practise with m26/22 Q7(a), Q7(c); s26/35 Q8(c) (related logarithmic fixed-point proof); s26/31 Q6(b), Q6(c), Q6(d); s26/32 Q8(c) (related inverse-trig fixed-point proof)
4 / 4