Worked examples — Newton-Raphson method for root finding
Before anything, a reminder of the three symbols, in plain words, so nothing is assumed:
The scenario matrix
Every worked example below is tagged with the cell of this matrix it exercises.
| Cell | Situation | What could go wrong / be special | Example |
|---|---|---|---|
| A | Nice simple root, good start | Nothing — fast quadratic convergence | Ex 1 |
| B | Negative starting guess / other quadrant | Sign of steers you the "other way" | Ex 2 |
| C | Double root ( at the root) | Convergence drops to linear | Ex 3 |
| D | Degenerate step: exactly | Division by zero — method breaks | Ex 4 |
| E | Runaway / diverging start | Guess flies off to infinity | Ex 5 |
| F | Two roots, start decides which | Basin of attraction | Ex 6 |
| G | Real-world word problem | Set up from a story, mind the units | Ex 7 |
| H | Exam-style twist (reciprocal / division-free) | Design so the update has no division | Ex 8 |
Notice the matrix covers both signs of the guess, the degenerate slope, both limiting behaviours (converge fast, diverge), and applied + exam flavours. Nothing is left uncovered.
Cell A — the well-behaved simple root
Forecast: you start at , the true root is . Will land below ? By how much roughly — a small nudge or a big jump?
Steps
- Evaluate at the guess: , . Why this step? The update needs both the current height and the current slope; we always compute them first.
- Apply the formula: . Why this step? We ride the tangent from the point down to where it crosses the axis — that crossing is . Look at the lavender tangent in the figure below dropping to the -axis.
- Repeat: (to 3 dp), . Then . Why this step? Feed the new guess back in — each pass uses a fresh tangent at the new point.
- Once more: , and — already 6 correct digits. Why this step? To watch the digits double per step (2 correct → 4 → 6): the quadratic-convergence signature the Taylor series argument predicts.
Verify: plug into : . Height is essentially zero ✅. And as forecast — a modest first nudge, then it snaps in.
Cell B — a negative guess in a different quadrant
Forecast: starting at , which root do we head for — or ? Watch the sign.
Steps
- , . Why this step? On the left branch the slope is negative; that negative sign is exactly what redirects us toward the negative root.
- . Why this step? Height over slope is ; subtracting moves us left, toward . Never assume the jump goes right.
- . Why this step? Same doubling-of-digits, just mirrored across zero.
- .
Verify: ✅. We landed on , not — the starting sign chose the basin. Compare with Ex 6.
Cell C — a double root, convergence slows to linear
Forecast: the parent promised quadratic speed. Here the digits will not double. Guess: does each step halve the remaining error instead?
Steps
- , . So . Error went . Why this step? Ordinary update — but note the error only halved.
- , . . Error . Why this step? Again exactly halved — this is linear convergence, one bit per step.
- , . . Error . Why this step? The pattern holds forever — the quadratic guarantee failed because it assumed a simple root ().
Verify: the error sequence is exactly — a geometric (linear) decay, confirming the parent's mistake-callout #3 ✅. Contrast Ex 1 where errors squared.
Cell D — degenerate step: the slope is exactly zero
Forecast: what is the tangent's slope at ? If it's flat, where does a flat line cross the -axis?
Steps
- , . Why this step? We must check before dividing (parent mistake #2). Here it is exactly .
- The update is undefined — division by zero. Geometrically the tangent at is horizontal (see the flat coral line in the figure); a horizontal line never meets the -axis. Why this step? This is the degenerate case the theory warns about — the recipe simply has no answer.
Verify: exactly, so has a zero denominator — no finite exists ✅. The fix: perturb the start, e.g. gives and converges fine to . (Check: , then , closing on .)
Cell E — a runaway start that diverges
Forecast: for large , flattens toward — the slope becomes tiny. Tiny slope + not-tiny height means a huge jump. Guess: does move us closer to or hurl us further away?
Steps
- , . Why this step? Notice the height () is large relative to the slope () — a warning sign.
- . Why this step? We overshoot zero and land further from the root than we started, on the other side. The nearly-flat tangent (parent mistake #2) launched us.
- , . -ish . Why this step? The distance is growing each step () — textbook divergence.
Verify: , and ✅ — the guesses run away, confirming Newton-Raphson is only local. Starting instead at (small height, slope ) converges: , already close to .
Cell F — two roots, the start picks the basin
Forecast: start at (right of ) — do you reach or ? Then start at — same question, opposite side.
Steps
- Right start : , . . Why this step? We're to the right of the vertex, on the branch owned by root .
- , . . Why this step? Homing on — the right basin. Look at the figure: everything right of the dashed vertex flows to .
- Left start : , . . Why this step? Left of the vertex, so we fall into the left basin of root .
- , . .
Verify: from : heads to ✅. From : heads to ✅. The vertex () is the boundary between the two basins of attraction — links to Fixed-point iteration.
Cell G — a real-world word problem (mind the units)
Forecast: zero interest () gives exactly $5000 (five deposits). We need $6000, so is a positive, smallish rate. Guess: is nearer 5% or 15%?
Steps
- Start (a 10% trial): , . Why this step? Pick a sensible physical starting rate; compute height and slope in the same units (pure numbers now, since is a ratio).
- . Why this step? One Newton jump lowers the growth factor slightly — a small correction because we started close.
- -ish, , giving . Why this step? Already converged; more passes barely move it — quadratic convergence at a simple root.
Verify: growth factor . Plug back: ✅. Units check: dollars in = dollars out; is a pure rate ✅.
Cell H — an exam-style twist (division-free reciprocal)
Forecast: you must invent an whose root is and whose update cancels the division. What function has as a root but only involves multiplicatively?
Steps
- Choose . Its root is where , i.e. — exactly the target. Why this step? We design so its zero is the number we want.
- Differentiate: . Why this step? The update needs the slope; note it also contains a — we're about to make those cancel.
- Update: . Why this step? The two reciprocals cancel algebraically, leaving only multiplications and a subtraction — no division. That's the exam's punchline.
- Iterate with , : ; ; . Why this step? Confirm it homes on using multiplication alone.
Verify: ; check ✅. Every operation was a multiply or subtract — the division-free goal met ✅.
Recall Self-test: match example to cell
Which example shows linear (not quadratic) convergence, and why? ::: Ex 3 — a double root, where so the Taylor guarantee fails. Which example has no valid at all? ::: Ex 4 — exactly, so we divide by zero. In Ex 6, what value of separates the two basins of attraction? ::: The vertex , where . Why does Ex 8's update avoid division? ::: The from and the from cancel, leaving .
Connections
- Tangent line and linear approximation — every step here is one tangent, drawn and dropped to the axis.
- Taylor series — explains why Ex 1 doubles digits but Ex 3 doesn't.
- Derivatives — definition and rules — supplied in every example.
- Fixed-point iteration — the basin idea in Ex 6 is the fixed-point convergence picture.
- Bisection method — the safe fallback when Ex 4/Ex 5 misbehave (safeguarded Newton).
- Roots of polynomials — Ex 1, 6, 7 are all polynomial roots.