Skip to content

Newton’s method

Newton’s method finds a root by replacing the function with its tangent line, solving that instead, and repeating from the answer. Each step is one formula, so the marks are in setting the equation up as f(x)=0f(x) = 0, carrying the arithmetic exactly, and recognising a starting point where the method stalls or runs away.

In this topic

Taught
Before the final, flavours A and B
Questions
13
Total marks
40
Suggested time
67 min
Difficulty

Introductory to Capstone

Show the 5 hardest

Key results

Newton’s method
xn+1=xn−f(xn)f′(xn)x_{n+1} = x_{n} - \frac{f(x_{n})}{f'(x_{n})}

When f′(xn)≠0f'(x_{n}) \neq 0; xn+1x_{n+1} is where the tangent line at xnx_{n} crosses the xx-axis.

When it fails
f(x)=x3−2x+2,x0=0  ⟹  x1=1,x2=0,x3=1, …f(x) = x^{3} - 2x + 2, \quad x_{0} = 0 \implies x_{1} = 1, \quad x_{2} = 0, \quad x_{3} = 1, \ \ldots

A horizontal tangent, f′(xn)=0f'(x_{n}) = 0, gives no next estimate; a nearly horizontal one sends it far away, possibly to another root; and the estimates can cycle, as here, and never settle.

An equation as a root
g(x)=h(x)  ⟺  f(x)=0,f(x)=g(x)−h(x)g(x) = h(x) \iff f(x) = 0, \qquad f(x) = g(x) - h(x)

Read the theoryUBC Math 100 §10 Newton’s methodUBC Math 100 §10.1 Newton’s method

Worked example

Standard3 marks · 4 min

Use Newton’s method on f(x)=x2−5f(x) = x^{2} - 5 with x0=2x_{0} = 2 to approximate 5\sqrt{5}. Find x2x_{2}.

Strategy

Take two steps, each with the value and the slope at the latest estimate. Keep the fractions exact; the denominators stay small.

Working

  1. f(2)=−1,f′(2)=4,x1=2−−14=94f(2) = -1, \quad f'(2) = 4, \qquad x_{1} = 2 - \frac{-1}{4} = \frac{9}{4}

    The first step, from x₀ = 2.

  2. f ⁣(94)=8116−5=116,f′ ⁣(94)=92f\!\left(\tfrac{9}{4}\right) = \frac{81}{16} - 5 = \frac{1}{16}, \qquad f'\!\left(\tfrac{9}{4}\right) = \frac{9}{2}

    Value and slope at the new estimate.

  3. x2=94−1/169/2=94−172=162−172=16172x_{2} = \frac{9}{4} - \frac{1/16}{9/2} = \frac{9}{4} - \frac{1}{72} = \frac{162 - 1}{72} = \frac{161}{72}

    Dividing by 9/2 is multiplying by 2/9: (1/16)(2/9) = 1/72.

  4. 16172=2.236111…,5=2.236068…\frac{161}{72} = 2.236111\ldots, \qquad \sqrt{5} = 2.236068\ldots

    Two steps already agree with √5 to four decimal places.

Answer

x2=16172x_{2} = \frac{161}{72}

The answer is 161 over 72, about 2.23611.

Check

(161/72)² ≈ 5.0002, so x₂ squares to within 0.0002 of 5, as an estimate of √5 should.

Where this goes wrong

Reusing the slope f′(2) = 4 in the second step, which gives 143/64. Each step uses the tangent line at the latest estimate, so the slope must be recomputed at 9/4.

On the paper

Write the iteration xn+1=xn−f(xn)/f′(xn)x_{n+1} = x_n - f(x_n)/f'(x_n) with your ff and f′f', then show each iterate to the precision asked.

Leans on

Linear approximation, from Linear approximation

Your turn

Standard3 marks · 5 min

The equation cos⁡x=x\cos x = x has exactly one solution, the zero of f(x)=cos⁡x−xf(x) = \cos x - x. Use one step of Newton’s method on ff from x0=π4x_{0} = \dfrac{\pi}{4} to estimate the solution. Give x1x_{1} exactly.

Answer this question

Practice questions

5 of the 13, across every level. Open a solution to read the working, or answer the question yourself and it counts towards your progress.

  • Introductory1 mark · 2 min

    Newton’s method improves an estimate xnx_{n} of a root of f(x)=0f(x) = 0 by following the tangent line at xnx_{n} to the point where it crosses the xx-axis. Which formula gives the next estimate xn+1x_{n+1}?

    Answer this question
  • Introductory2 marks · 3 min

    Let f(x)=x3+x−3f(x) = x^{3} + x - 3. Starting from x0=1x_{0} = 1, use one step of Newton’s method to find x1x_{1}.

    Answer this question
  • Standard3 marks · 5 min

    After a dose, the concentration of a drug in the blood is C(t)=5t e−0.4tC(t) = 5t\,e^{-0.4t} mg/L, where tt is in hours. The drug takes effect once the concentration reaches 3 mg/L. Starting from t0=1t_{0} = 1, use one step of Newton’s method on f(t)=C(t)−3f(t) = C(t) - 3 to estimate the time at which this first happens.

    Answer this question
  • Challenging3 marks · 5 min

    The function f(x)=x3−xf(x) = x^{3} - x has roots −1-1, 00 and 11. Newton’s method is started at x0=12x_{0} = \tfrac{1}{2}. Which root do the estimates approach, and why?

    Answer this question
  • Capstone6 marks · 10 min

    The equation ex=3−xe^{x} = 3 - x has exactly one solution, rr. Write it as f(x)=0f(x) = 0 and find x1x_{1} and x2x_{2} exactly by Newton’s method from x0=0x_{0} = 0. Then use the concavity of ff to decide, without finding rr, whether x2x_{2} is above or below rr.

    Explain also why every later estimate lies on the same side of r, and why each is closer than the one before. Compare your working with the model solution.

    Answer this question

Browse all 13 questions

  • Needs

    Linear approximation

    Tangent-line estimates, whether they run high or low, and approximating a value without a calculator.

    14 questions