4.1.33 · D4Calculus I — Limits & Derivatives

Exercises — Newton-Raphson method for root finding

3,708 words17 min readBack to topic

Level 1 — Recognition

(Can you read the formula and run it once or twice?)

L1.1 — One Newton step by hand

For with , compute .

Recall Solution

WHAT we do: apply the rule once. WHY: L1 just checks you can identify , , and plug in.

  • , so (power rule from Derivatives — definition and rules).
  • At : (we are below the axis), (slope rising). Sanity: , so is closer than . The height was negative, so we moved right (added) — the sign took care of the direction automatically.

L1.2 — Identify the pieces

For , write down and the full Newton update expression .

Recall Solution

WHY this matters: before iterating you must differentiate correctly; a wrong ruins everything.

  • and , so .

L1.3 — Spot the sign error

A classmate writes . Using , , show their answer moves away from .

Recall Solution

With the wrong plus sign: . But , so we jumped from distance to distance further away. The correct minus sign gave (distance ). The subtraction is what points you toward the root.


Level 2 — Application

(Can you iterate to convergence and read the answer?)

L2.1 — Cube root of 7

Use to estimate . Start and iterate to .

Recall Solution

Set-up: . Substituting straight into the update rule, WHY rearrange? Splitting the fraction turns "old guess minus a correction" into a self-contained recipe you can evaluate in one pass, and it exposes the structure of the step. Distribute the denominator over the numerator: What the form tells us: keeps most of the old guess, and is a pull toward the true root — exactly the "weighted average" flavour Newton takes on for root-finding.

  • :
  • : , so Check: — already 6 correct digits after two steps. Quadratic speed! With we would stop at the very next step, since falls below it.

L2.2 — A quadratic with a known answer

Apply Newton to starting at . Find and say which root you land on.

Recall Solution

.

  • : , .
  • : , . The guesses fall toward . WHY that root and not ? Newton is local: starting to the right of both roots, the tangent points you to the nearer root, which is .

L2.3 — Reciprocal without division

Newton can compute using only multiplication (how old CPUs did division). Using , derive the update and compute from to .

Recall Solution

WHY this : its root is , and its derivative avoids re-dividing.

  • , . Only multiplications — beautiful.
  • , :
  • : Check: — converging with no division used.

Level 3 — Analysis

(Can you predict behaviour and explain why?)

L3.1 — Watch the error square

For via , the error is . Starting , compute and verify each is roughly the square of the previous (times a constant).

Recall Solution

Update: . With :

  • ,
  • ,
  • , Analysis: the theory says . Check: vs actual ✓. And vs ✓. The error genuinely squares — this is Taylor series convergence in the flesh.

L3.2 — A flat spot ambush

For with , do two steps and explain geometrically why nearly sabotages you.

Recall Solution

; note at . Our start sits just past that flat spot.

  • : , (tiny!). What it looks like (see figure below): a nearly-horizontal tangent barely slopes down, so it hits the axis far away — the guess is hurled from to . This is the "small " danger made visible.
  • : , . It now homes in on the real root near .
Figure — Newton-Raphson method for root finding

L3.3 — Double root, degraded speed

The equation has a double root at ( too). Start and show the error halves each step instead of squaring.

Recall Solution

. The update simplifies beautifully: So the error obeys linear, not quadratic.

  • () → () → () → . WHY: the quadratic-convergence proof needs . At a double root the slope vanishes at the target, the "" ratio behaves like , and you lose the squaring bonus.

Level 4 — Synthesis

(Can you build a Newton scheme from a new problem?)

L4.1 — Intersection of two curves

Where do and meet? Set up , its derivative, the update, and iterate from until .

Recall Solution

Turn "intersection" into "root": two curves meet where their difference is zero, so let . Then .

  • : , , .
  • : , , . Not done yet: , so the tolerance test fails — we must take another step.
  • : , , . Now , so we stop at . This special number (the value solving ) is called the omega constant; the two curves cross exactly once, there.

L4.2 — Design a scheme for

Invent a Newton iteration whose root is , using a function whose derivative you know cleanly. Iterate from until .

Recall Solution

Idea: is the number with , i.e. the root of . Then .

  • : .
  • : . Not done yet: , so we continue.
  • : . Here is still keep going.
  • : . Now , so we stop at . Check: — matched to 7 digits. Any with the right root works; a clean just makes the arithmetic pleasant.

L4.3 — Connect to fixed-point iteration

Show that Newton's method is a Fixed-point iteration , write , and verify (which explains the fast convergence).

Recall Solution

Rewrite the update as a single function: A root satisfies , so — it is a fixed point.

Now differentiate , step by step. The term differentiates to , so we only need . This is a quotient, so we use the quotient rule from Derivatives — definition and rules, with and :

  • (derivative of ),
  • (derivative of is the second derivative),
  • .

Putting the pieces in:

= \frac{f'(x)^2 - f(x)f''(x)}{f'(x)^2}.$$ Therefore $$g'(x) = 1 - \frac{f'(x)^2 - f(x)f''(x)}{f'(x)^2} = \frac{f'(x)^2 - \big(f'(x)^2 - f(x)f''(x)\big)}{f'(x)^2} = \frac{f(x)f''(x)}{f'(x)^2}.$$ **WHY the last simplification:** the two $f'(x)^2$ terms in the numerator cancel, leaving only $f(x)f''(x)$. At a simple root $f(r)=0$ while $f'(r)\neq0$, so $g'(r) = 0$. **WHY this is the whole story:** fixed-point iteration converges fast when $|g'|$ is small; Newton makes $g'$ *exactly zero* at the root, which is precisely the condition for quadratic convergence.

Level 5 — Mastery

(Can you prove, generalise, and safeguard?)

L5.1 — Prove the error-squaring law

For a simple root , prove for some between and , where .

Recall Solution

Definitions first: let be the current error and the next one; is the true root, so .

Step 1 — Taylor-expand about , evaluated at the true root (from Taylor series): WHY: we know exactly; Taylor's theorem makes the remainder term with (some point between and ) exact, not approximate — that is what lets us pin down the error precisely.

Step 2 — substitute and divide the whole line by (allowed since a simple root has nearby): WHY divide by : it manufactures the exact term that appears in the Newton step, so we can trade it for a difference of iterates in the next line.

Step 3 — recognise the Newton step and convert to errors. The update rearranges to . Using and , Substitute this for in Step 2: WHY: every term is now expressed in the errors we care about, so the algebra collapses cleanly.

Step 4 — cancel and solve for . The and cancel: The next error is a constant times the square of the current error — quadratic convergence, proven. Since stays bounded near a simple root, halving the error once roughly doubles the correct-digit count on the following step.

L5.2 — Safeguarded Newton (combine with bisection)

Explain, and sketch pseudo-logic for, why practical solvers wrap Newton inside a bracket from the Bisection method. State the precise, quantitative test that decides when to reject a Newton step.

Recall Solution

The problem: Newton is fast but unbracketed — a small or bad guess can hurl outside any region of interest (recall L3.2 and the cycling example in the parent note). The fix — keep a bracket with (a sign change guarantees a root inside, by the intermediate value idea behind Bisection method). Each iteration:

  1. Propose the Newton step .
  2. Reject test (precise): reject the Newton step and use bisection instead if either
    • (the step left the bracket), or
    • for a fixed small slope threshold, e.g. (the tangent is too flat to trust). A common alternative test is to reject if the step fails to shrink the bracket by at least half, i.e. .
    When rejected, take the guaranteed-safe bisection step (always inside).
  3. Update the bracket: replace whichever of shares 's sign with . WHY it works: you get Newton's quadratic speed whenever the guess is good, and bisection's guaranteed (if slow) progress whenever Newton misbehaves — never worse than halving the bracket.

L5.3 — Diagnose a divergence

For (root at ), show that starting too far out makes Newton diverge, and find the critical starting magnitude.

Recall Solution

, so the update is WHY this can explode: for large , while grows, so the subtracted term overshoots massively — , spiralling outward. Critical point: the boundary between converge and diverge is where the step exactly flips the sign with equal magnitude, : Solving numerically gives . Start with and Newton converges to ; start with and it diverges (each step is bigger than the last). Exactly at it cycles forever. The figure below shows the narrow red band of good starting guesses.

Figure — Newton-Raphson method for root finding


Connections

  • Newton-Raphson method for root finding — the parent this drills.
  • Tangent line and linear approximation — every step is a tangent jump.
  • Taylor series — powers the L5.1 error-squaring proof.
  • Derivatives — definition and rules — supplies every above.
  • Fixed-point iteration — L4.3 recasts Newton as .
  • Bisection method — L5.2's safeguard partner.
  • Roots of polynomials — L2.2 and L3 live here.

Concept Map

run once

repeat

study behaviour

design new f

prove and protect

L1 recognition plug in once

L2 iterate to tolerance

L3 analyse error and flat spots

L4 build a scheme

L5 prove and safeguard

Update new = old minus height over slope