Before the final, flavours A and B
How does a tangent line find a root?
Replace the curve by its tangent, solve the line, and repeat: the step is a triangle, its sign is the direction, and near the root each step squares the error.
Builds on linear approximation.
The lesson as text
1. Solve the tangent instead
Where crosses the axis is hard to solve for; where a line crosses is easy. So replace the curve by its tangent at a guess, , where and , and solve the line instead.
Question: The tangent drops to reach the axis, at a slope of . How far left of does it get there?
Slope is rise over run, so the run is rise over slope: , and the next guess is . That is the whole of Newton's method: each step goes back from .
The figure: The curve y = x³ − 4x + 1, which crosses the x-axis three times, near −2.11, 0.25, 1.86. Its tangent at x₀ = 3.00, where f(x₀) = 16.000 and the slope is 23.000, meets the axis at x₁ = 2.3043.
2. Which way to step
The formula subtracts the ratio, and its signs do the steering. Try a start where the curve falls: at , and .
Question: Where does the next estimate, , land?
: the tangent falls to the right, so it meets the axis on the right, short of the root. Adding the ratio instead gives , in amber: the same distance the wrong way, where the tangent is above the axis, twice as far from it as at the start.
The figure: The curve y = x³ − 4x + 1, which crosses the x-axis three times, near −2.11, 0.25, 1.86. Its tangent at x₀ = 0.00, where f(x₀) = 1.000 and the slope is −4.000, meets the axis at x₁ = 0.2500. In amber, x₀ + f(x₀)/f′(x₀) = −0.2500, a step the same length the wrong way, where the tangent is 2.000 from the axis.
3. Again, and again
Each estimate is a new place to draw a tangent. Start again from and take three steps: watch the estimates, and their distance to the root, under the figure.
The figure: The curve y = x³ − 4x + 1, which crosses the x-axis three times, near −2.11, 0.25, 1.86. Newton’s method from x₀ = 3.00, after 3 steps, is at 1.869470.
4. Correct digits double
After three steps , from the root at . Close to the root the curve is nearly straight, so its tangent nearly lands on the root.
Question: How far from the root will be?
About , close to : too small to see even zoomed in this far. The tangent misses by the curve's bending over the gap, which grows like the gap squared. So the error is roughly squared each step, and the correct decimals double: two at , four at , eight at .
The figure: The curve y = x³ − 4x + 1, which crosses the x-axis three times, near −2.11, 0.25, 1.86. Newton’s method from x₀ = 3.00, after 4 steps, is at 1.860871.
5. A flat tangent throws it far
Start at , near the bottom of the dip, between two roots and nearer the one at . There and : the tangent is nearly flat.
Question: Which root will Newton’s method find?
The furthest. A nearly flat tangent meets the axis far away: , past both nearer roots, and from there the steps close in on . Newton's method follows tangents, not distances, so work out the steps before naming the root. Drag to try other starts.
The figure: The curve y = x³ − 4x + 1, which crosses the x-axis three times, near −2.11, 0.25, 1.86. Newton’s method from x₀ = 1.10, after 6 steps, is at −2.114915. The root nearest the start, 1.8608, is ringed in amber.
The film, as said, 1:44
- 0:00
To find where crosses the axis, replace the curve by its tangent at a guess, .
- 0:06
The tangent drops at a slope of , so it runs to the axis: .
- 0:14
That is the whole method: each step goes back from .
- 0:18
The signs steer. From , and : the tangent falls to the right.
- 0:23
Subtract the ratio: , just short of the root.
- 0:28
Adding it instead gives , in amber: the same distance the wrong way, where the tangent is twice as high.
- 0:35
Back to . Each estimate is a new place to draw a tangent.
- 0:39
Three steps, and , from the root at .
- 0:47
Zoom in on the root. Here the curve is nearly straight, so its tangent nearly lands on the root.
- 0:57
The fourth step misses by about , close to : too small to see even here.
- 1:04
The error is roughly squared each step, so the correct decimals double: two at , four at , eight at .
- 1:10
Now start at , by the bottom of the dip. The nearest root is at .
- 1:16
There : the tangent is nearly flat, and meets the axis far away, at .
- 1:23
From there the steps close in on , past both nearer roots.
- 1:31
Assuming the nearest root, ringed in amber, is the slip: Newton’s method follows tangents, not distances.
- 1:37
Solve the tangent, step, repeat. Near a root each step squares the error; a flat tangent throws the next guess far away.