Year 12 Methods — Bisection & Newton's Method (10H)

Cambridge Methods 3&4, Ch 10: Section 10H  •  Mr Wong

Today's lesson

Learning intentions

Warm up (tech-free)

WARM UP (a)
Find the $x$-intercept of the tangent line to $f(x) = x^3 - 4x$ at the point where $x = 2$.
Point on the curve: $f(2) = 2^3 - 4(2) = 8 - 8 = 0$. So the tangent touches the curve at $(2, 0)$.
Gradient: $f'(x) = 3x^2 - 4$, so $f'(2) = 12 - 4 = 8$.
Tangent line: $y - 0 = 8(x - 2)$, i.e. $y = 8x - 16$.
$x$-intercept: set $y = 0 \Rightarrow 8x = 16 \Rightarrow x = 2$.
The tangent's $x$-intercept is $x = 2$ — the same point we started at, because $f(2)=0$ is already a root.
Observation: when the function value at the starting point is already $0$, the tangent's $x$-intercept gives us that root back. This is the key idea behind Newton's method.
WARM UP (b) — the general case
Find the $x$-intercept of the tangent line to the general rule $f(x)$ at the point where $x = a$. Your answer will be $x = $ something in terms of $a$, $f(a)$, and $f'(a)$.
At $x = a$ the point on the curve is $\big(a,\, f(a)\big)$ and the gradient is $f'(a)$.
Tangent line equation (point–gradient form):
$y - f(a) = f'(a)\,(x - a)$
$x$-intercept: set $y = 0$:
$-f(a) = f'(a)(x - a)$
$x - a = -\dfrac{f(a)}{f'(a)}$
$x = a - \dfrac{f(a)}{f'(a)}$
This is Newton's formula. Each new approximation is the $x$-intercept of the tangent at the previous approximation.

The Bisection Method

The idea: if $f$ is continuous and $f(a)$ and $f(b)$ have opposite signs, then there must be a root between them. So we keep halving the interval, always keeping the half that still contains a sign change.

Consider the solution to $x^3 + 3x + 1 = 0$.

Check endpoints on $[-2, 2]$:

Signs differ ⇒ a root lies somewhere in $(-2, 2)$.

📺 Animation: Bisection method on $f(x)=x^3+3x+1$ over $[-2, 2]$. Watch the orange interval halve at each step — keeping whichever half still contains the sign change — until we converge on $x \approx -0.32$.

EXAMPLE 1
The equation $x^3 + 3x + 1 = 0$ has one real solution in the interval $[-2, 2]$. Use a spreadsheet with the bisection method to find this solution correct to two decimal places.
Take $a_n, b_n$ as the current interval, $m_n = \dfrac{a_n + b_n}{2}$ the midpoint, and check the sign of $f(m_n)$.
If $f(m_n)$ has the same sign as $f(a_n)$, replace $a_n$ with $m_n$. Otherwise replace $b_n$.
$n$$a_n$$b_n$$m_n$$f(m_n)$action
0-2201.000+ve → keep left half
1-20-1-3.000-ve → keep right half
2-10-0.5-0.625-ve → keep right half
3-0.50-0.250.234+ve → keep left half
4-0.5-0.25-0.375-0.178-ve → keep right half
5-0.375-0.25-0.31250.0322+ve → keep left half
6-0.375-0.3125-0.34375-0.0719-ve → keep right half
7-0.34375-0.3125-0.328125-0.0196-ve → keep right half
8-0.328125-0.3125-0.32031250.0063+ve → keep left half
9-0.328125-0.3203125-0.32421875-0.0067interval width < 0.01
Solution correct to two decimal places: $x \approx -0.32$
Spreadsheet tip: in Excel/Sheets use =IF(SIGN(f_m)=SIGN(f_a), m, a) to update $a$ and similarly for $b$. Each row halves the interval.

The bisection algorithm — summary

For $f(x) = 0$ with one solution in interval $(a, b)$ and $f$ continuous:
  1. Check $f(a)$ and $f(b)$ have opposite signs.
  2. Compute the midpoint $m = \dfrac{a + b}{2}$ and $f(m)$.
  3. If $f(m)$ has the same sign as $f(a)$, the root is in $[m, b]$ — replace $a$ with $m$.
    Otherwise the root is in $[a, m]$ — replace $b$ with $m$.
  4. Repeat steps 2–3 until the interval is narrower than the required accuracy.
⚠️ Bisection is guaranteed to converge (as long as you have a sign change), but it's slow — each step only adds about one bit of precision (i.e. each step halves the error). To get two decimal places you typically need 7–10 iterations.

Newton's Method — a faster iterative approach

From the warm-up (b), starting at $x = x_n$ and following the tangent down to the $x$-axis gives:

NEWTON'S METHOD $\displaystyle x_{n+1} \;=\; x_n - \dfrac{f(x_n)}{f'(x_n)}$

Each iteration "snaps" to where the tangent line crosses the $x$-axis, which is usually much closer to the root than $x_n$ itself.

📺 Animation: Newton's method applied to $f(x)=x^2-x-1$ starting at $x_0 = 3$. Watch each tangent (green) snap down to the $x$-axis — the red dots show where the next $x_n$ lands. After three iterations we're already at $\varphi \approx 1.618$ (the golden ratio).

EXAMPLE 2
Let $f(x) = x^2 - x - 1$.
(a) Show that Newton's method gives the iterative formula $\;x_{n+1} = \dfrac{x_n^{\,2} + 1}{2x_n - 1}$.
(b) Start with $x_0 = 3$ and find $x_1$, $x_2$, $x_3$.
(a) Differentiate: $f'(x) = 2x - 1$.
Apply Newton's formula:
$x_{n+1} = x_n - \dfrac{x_n^{\,2} - x_n - 1}{2x_n - 1}$
Combine over the common denominator $2x_n - 1$:
$x_{n+1} = \dfrac{x_n(2x_n - 1) - (x_n^{\,2} - x_n - 1)}{2x_n - 1}$
Expand the numerator:
$= \dfrac{2x_n^{\,2} - x_n - x_n^{\,2} + x_n + 1}{2x_n - 1} = \dfrac{x_n^{\,2} + 1}{2x_n - 1}$  ✓
(b) With $x_0 = 3$:
$n$$x_n$$x_n^{\,2} + 1$$2x_n - 1$$x_{n+1}$
03105$10/5 = 2$
1253$5/3 \approx 1.6667$
2$5/3$$34/9$$7/3$$\dfrac{34/9}{7/3} = \dfrac{34}{21} \approx 1.6190$
3$34/21$$\approx 1.6180$
$x_1 = 2, \;\; x_2 = \tfrac{5}{3} \approx 1.6667, \;\; x_3 \approx 1.6190$ — converging to the positive root $\dfrac{1+\sqrt{5}}{2} \approx 1.6180$ (the golden ratio).
SIMILAR EXAMPLE 2
(a) Show that the graph of $y = x^2 - x$ and the line $y = 3$ intersect at a point in the interval $[0, 3]$.
(b) Use Newton's method to solve the equation $x^2 - x - 3 = 0$ numerically. Start with $x_0 = 3$ and find $x_1$ to $x_3$.
(a) The intersection occurs where $x^2 - x = 3$, i.e. where $f(x) = x^2 - x - 3 = 0$.
$f(0) = -3$ (negative)  and  $f(3) = 9 - 3 - 3 = 3$ (positive).
Since $f$ is continuous and changes sign on $[0, 3]$, there is at least one root in this interval. ✓
(b) $f'(x) = 2x - 1$. Newton's iteration:
$x_{n+1} = x_n - \dfrac{x_n^{\,2} - x_n - 3}{2x_n - 1} = \dfrac{x_n^{\,2} + 3}{2x_n - 1}$
$n$$x_n$$x_n^{\,2}+3$$2x_n - 1$$x_{n+1}$
03125$12/5 = 2.4$
12.48.763.8$\approx 2.3053$
22.30538.31423.6105$\approx 2.3028$
32.3028$\approx 2.3028$
$x_1 = 2.4, \;\; x_2 \approx 2.3053, \;\; x_3 \approx 2.3028$ — converging to $\dfrac{1+\sqrt{13}}{2} \approx 2.3028$.

Three potential dangers when using Newton's method

Newton's method is fast when it works, but a poor choice of $x_0$ can cause it to fail. Here are the three classic dangers.

1

Convergence to the wrong root

If $f$ has multiple roots, the tangent at $x_0$ might point you toward a different root than you wanted.

📺 Animation: Newton's method on $f(x)=x^3-6x-40$ starting at $x_0 = -1$. The real root is at $x = 4$, but the tangent at $x_0$ shoots us all the way out to $x_1 \approx -12.67$.

DANGER 1 — wrong root
Find the positive $x$-intercept of $y = x^3 - 6x - 40$ using Newton's method with $x_0 = -1$. (The real root is at $x = 4$.)
$f(x) = x^3 - 6x - 40$, $f'(x) = 3x^2 - 6$.
$f(-1) = -1 + 6 - 40 = -35$, $\;\; f'(-1) = 3 - 6 = -3$.
$x_1 = -1 - \dfrac{-35}{-3} = -1 - \dfrac{35}{3} \approx -12.67$
We've jumped far to the left of the actual root at $x = 4$. Subsequent iterations will eventually converge, but the iteration has wandered through the cubic's negative region first.
⚠️ Bad starting point — the tangent at $x_0 = -1$ slopes the wrong way and throws us in the opposite direction from the real root.
2

Divergence (the iteration runs off to infinity)

If a tangent has a very small or zero gradient near $x_0$, dividing by $f'(x_n)$ can produce huge jumps that move further from the root each time.

📺 Animation: Newton's method on $f(x)=x^3-2x+2$ starting at $x_0 = 0$. Watch as the iteration cycles between $x = 0$ and $x = 1$ over and over, never approaching the actual root near $x \approx -1.77$.

DANGER 2 — divergence near a horizontal tangent
Apply Newton's method to $f(x) = x^3 - 2x + 2$ starting from $x_0 = 0$.
$f'(x) = 3x^2 - 2$, so $f(0) = 2$, $f'(0) = -2$.
$x_1 = 0 - \dfrac{2}{-2} = 1$.
$f(1) = 1 - 2 + 2 = 1$, $f'(1) = 3 - 2 = 1$.  $x_2 = 1 - \dfrac{1}{1} = 0$.
$x_3 = 1$ again, $x_4 = 0$ again, and so on. The iteration cycles between 0 and 1 forever and never converges.
⚠️ Cycling — Newton's method gets stuck in a loop and never reaches the actual root at $x \approx -1.77$.
3

Horizontal tangent — division by zero

If $f'(x_n) = 0$, Newton's formula is undefined: $\dfrac{f(x_n)}{0}$ is impossible. Geometrically, the tangent is horizontal and never crosses the $x$-axis.

📺 Animation: Newton's method on $f(x)=x^2-4$ starting at $x_0 = 0$. The tangent at the vertex is perfectly horizontal — it never crosses the $x$-axis, so the formula produces $-4/0$ and the method can't even take its first step.

DANGER 3 — stuck at a stationary point
Apply Newton's method to $f(x) = x^2 - 4$ starting from $x_0 = 0$.
$f'(x) = 2x$, so $f'(0) = 0$.
$x_1 = 0 - \dfrac{f(0)}{f'(0)} = 0 - \dfrac{-4}{0}$ — undefined.
The tangent at $x_0 = 0$ is horizontal (the minimum of the parabola), so it never meets the $x$-axis and Newton's method can't even take its first step.
⚠️ Always check $f'(x_n) \neq 0$ before iterating. Choose a different $x_0$ if it lies at (or very close to) a stationary point.

Method summary

Choosing between the two methods:

Working program — Cambridge textbook

ExerciseSet work
10H — Bisection & Newton's methodAll questions

Exit ticket — write in your book

Before you pack up, in your exercise book:
  1. State Newton's iteration formula in terms of $f$ and $f'$.
  2. Apply one step of Newton's method to $f(x) = x^2 - 5$ starting from $x_0 = 2$. (You should get $x_1 = 9/4$.)
  3. Name one situation where Newton's method fails.
Thanks team 🙏 — Mr Wong