Skip to main content

Thomas’ Calculus · Chapter 04 · Section 4.7

By Muhammad Abdullah Athar · SymPy Verified

Newton's Method

❦

Read this page the way you would a book: first the notes, then the key ideas, then every worked example in order — each step explains not only what to do, but why it works.

Part One

Section Notes

❧

Section 4.7: Newton's Method

Newton's method (the Newton-Raphson algorithm) is a rapid numerical method for approximating real solutions of f(x)=0f(x) = 0.


1. Geometric Derivation

At the current estimate xnx_n, the tangent line to y=f(x)y = f(x) is:

y−f(xn)=f′(xn)(x−xn)y - f(x_n) = f'(x_n)(x - x_n)

Setting y=0y = 0 to find the xx-intercept xn+1x_{n+1}:

0−f(xn)=f′(xn)(xn+1−xn)  ⟹  xn+1=xn−f(xn)f′(xn)0 - f(x_n) = f'(x_n)(x_{n+1} - x_n) \implies x_{n+1} = x_n - \frac{f(x_n)}{f'(x_n)}

2. Failure Modes

Newton's method may fail if:

  1. f′(xn)=0f'(x_n) = 0: The tangent line is horizontal and has no xx-intercept.
  2. Cycle / Oscillation: Estimates alternate indefinitely without converging.
  3. Divergence: The sequence shoots off to infinity.

Part Two

Key Ideas to Remember

1 essential statements for this section, each with a plain-words explanation.

Formula #1Sec 4.7

Newton-Raphson Iteration Formula

xn+1=xn−f(xn)f′(xn)(f′(xn)≠0)x_{n+1} = x_n - \frac{f(x_n)}{f'(x_n)} \quad (f'(x_n) \neq 0)

Newton's method approximates a real root of f(x) = 0 by replacing the curve with its tangent line at x_n and taking the x-intercept of the tangent line as the next estimate x_{n+1}.

Conditions: f is differentiable; f'(x_n) != 0 at every iteration step

In plain words: Exhibits quadratic convergence near simple roots: the number of accurate decimal places roughly doubles with each iteration.

Remember — x_{n+1} is the x-intercept of the tangent line to f at x_n.

Part Three

Worked Examples

5 exercises, solved in full. Every answer has been checked symbolically with SymPy before printing.

Example 01(Section 4.7, Exercise 1)

Warm-up

Problem. Use Newton's method to approximate sqrt(5) by finding the positive root of f(x) = x^2 - 5 with initial guess x_0 = 2, computing x_1 and x_2.

Step-by-Step Derivation (3 steps)

1

Derive Iteration Formula

f(x)=x2−5  ⟹  f′(x)=2x  ⟹  xn+1=xn−xn2−52xn=xn2+52xn=12(xn+5xn)f(x) = x^2 - 5 \implies f'(x) = 2x \implies x_{n+1} = x_n - \frac{x_n^2 - 5}{2x_n} = \frac{x_n^2 + 5}{2x_n} = \frac{1}{2}\left(x_n + \frac{5}{x_n}\right)

Apply Newton's formula.

Why this works: Babylonian square root algorithm.
2

Compute First Iteration x_1

x1=12(2+52)=12(92)=94=2.25x_1 = \frac{1}{2}\left(2 + \frac{5}{2}\right) = \frac{1}{2}\left(\frac{9}{2}\right) = \frac{9}{4} = 2.25

Substitute x_0 = 2.

Why this works: First iteration.
3

Compute Second Iteration x_2

x2=12(94+59/4)=12(94+209)=12(81+8036)=16172≈2.236111x_2 = \frac{1}{2}\left(\frac{9}{4} + \frac{5}{9/4}\right) = \frac{1}{2}\left(\frac{9}{4} + \frac{20}{9}\right) = \frac{1}{2}\left(\frac{81 + 80}{36}\right) = \frac{161}{72} \approx 2.236111

Accurate to 5 decimal places (true sqrt(5) = 2.236068...).

Why this works: Second iteration.

Answer: x1=94=2.25,x2=16172≈2.236111x_1 = \frac{9}{4} = 2.25, \quad x_2 = \frac{161}{72} \approx 2.236111

✓ Verified by SymPy CAS

Example 02(Section 4.7, Exercise 2)

Core practice

Problem. Apply Newton's method to approximate the real root of x^3 - 2x - 5 = 0 starting at x_0 = 2, computing x_1 and x_2.

Step-by-Step Derivation (3 steps)

1

Formulate Newton Iteration

f(x)=x3−2x−5,f′(x)=3x2−2  ⟹  xn+1=xn−xn3−2xn−53xn2−2f(x) = x^3 - 2x - 5, \quad f'(x) = 3x^2 - 2 \implies x_{n+1} = x_n - \frac{x_n^3 - 2x_n - 5}{3x_n^2 - 2}

Compute iteration quotient.

Why this works: Newton-Raphson scheme.
2

Compute x_1 from x_0 = 2

x1=2−23−2(2)−53(22)−2=2−8−4−512−2=2−−110=2.1x_1 = 2 - \frac{2^3 - 2(2) - 5}{3(2^2) - 2} = 2 - \frac{8 - 4 - 5}{12 - 2} = 2 - \frac{-1}{10} = 2.1

Evaluate with x_0 = 2.

Why this works: First step.
3

Compute x_2 from x_1 = 2.1

x2=2.1−(2.1)3−2(2.1)−53(2.1)2−2=2.1−9.261−4.2−513.23−2=2.1−0.06111.23≈2.094568x_2 = 2.1 - \frac{(2.1)^3 - 2(2.1) - 5}{3(2.1)^2 - 2} = 2.1 - \frac{9.261 - 4.2 - 5}{13.23 - 2} = 2.1 - \frac{0.061}{11.23} \approx 2.094568

Substitute x_1 = 2.1.

Why this works: Second step.

Answer: x1=2.1,x2=217103≈2.094568x_1 = 2.1, \quad x_2 = \frac{217}{103} \approx 2.094568

✓ Verified by SymPy CAS

Example 03(Section 4.7, Exercise 3)

Core practice

Problem. Find the Newton iteration formula for solving cos(x) = x, and compute x_1 starting with x_0 = 1.

Step-by-Step Derivation (3 steps)

1

Set up Root Function

f(x)=cos⁡x−x=0  ⟹  f′(x)=−sin⁡x−1f(x) = \cos x - x = 0 \implies f'(x) = -\sin x - 1

Rewrite equation as f(x) = 0.

Why this works: Standard form for root finding.
2

Apply Newton's Formula

xn+1=xn−cos⁡(xn)−xn−sin⁡(xn)−1=xn+cos⁡(xn)−xnsin⁡(xn)+1x_{n+1} = x_n - \frac{\cos(x_n) - x_n}{-\sin(x_n) - 1} = x_n + \frac{\cos(x_n) - x_n}{\sin(x_n) + 1}

Simplify the minus signs.

Why this works: Clean iteration rule.
3

Evaluate at x_0 = 1

x1=1+cos⁡(1)−1sin⁡(1)+1=1+0.54030−10.84147+1=1−0.459701.84147≈0.75036x_1 = 1 + \frac{\cos(1) - 1}{\sin(1) + 1} = 1 + \frac{0.54030 - 1}{0.84147 + 1} = 1 - \frac{0.45970}{1.84147} \approx 0.75036

Evaluate trigonometric functions in radians.

Why this works: First iteration value.

Answer: x1=1−cos⁡(1)−1−sin⁡(1)−1=sin⁡(1)+cos⁡(1)1+sin⁡(1)≈0.75036x_1 = 1 - \frac{\cos(1) - 1}{-\sin(1) - 1} = \frac{\sin(1) + \cos(1)}{1 + \sin(1)} \approx 0.75036

✓ Verified by SymPy CAS

Example 04(Section 4.7, Exercise 4)

Core practice

Problem. Show that Newton's method fails to converge for f(x) = x^(1/3) for any initial guess x_0 != 0.

Step-by-Step Derivation (3 steps)

1

Compute f'(x)

f′(x)=13x−2/3f'(x) = \frac{1}{3}x^{-2/3}

Power rule derivative.

Why this works: Derivative calculation.
2

Apply Newton's Iteration Formula

xn+1=xn−xn1/313xn−2/3=xn−3xn1/3xn2/3=xn−3xn=−2xnx_{n+1} = x_n - \frac{x_n^{1/3}}{\frac{1}{3}x_n^{-2/3}} = x_n - 3x_n^{1/3}x_n^{2/3} = x_n - 3x_n = -2x_n

The ratio simplifies directly to -3*x_n.

Why this works: Exact closed-form recurrence relation.
3

Analyze Recurrence Behavior

xn=(−2)nx0  ⟹  ∣xn∣=2n∣x0∣→∞ as n→∞x_n = (-2)^n x_0 \implies |x_n| = 2^n |x_0| \to \infty \text{ as } n \to \infty

Each iteration doubles the distance from the true root 0 and alternates signs, diverging catastrophically.

Why this works: Proves divergence.

Answer: xn+1=−2xn  ⟹  xn=(−2)nx0  ⟹  ∣xn∣→∞ (diverges)x_{n+1} = -2x_n \implies x_n = (-2)^n x_0 \implies |x_n| \to \infty \text{ (diverges)}

✓ Verified by SymPy CAS

Example 05(Section 4.7, Exercise 5)

Challenge

Problem. Derive Newton's iteration formula to compute 1/a without performing division by finding the root of f(x) = 1/x - a.

Step-by-Step Derivation (2 steps)

1

Compute Derivative of f(x) = 1/x - a

f′(x)=−1x2f'(x) = -\frac{1}{x^2}

Differentiate with respect to x.

Why this works: Derivative calculation.
2

Apply Newton's Formula

xn+1=xn−1xn−a−1xn2=xn+xn2(1xn−a)=xn+xn−axn2=2xn−axn2=xn(2−axn)x_{n+1} = x_n - \frac{\frac{1}{x_n} - a}{-\frac{1}{x_n^2}} = x_n + x_n^2\left(\frac{1}{x_n} - a\right) = x_n + x_n - ax_n^2 = 2x_n - ax_n^2 = x_n(2 - ax_n)

The resulting formula requires only addition, subtraction, and multiplication (no division!).

Why this works: Used in computer processor arithmetic units for hardware division.

Answer: xn+1=xn(2−axn)x_{n+1} = x_n(2 - ax_n)

✓ Verified by SymPy CAS