Steply

Solve Newton's method for x^3 - 2x - 5 = 0 from x = 2, 3 steps

Step by step, with the reason for every step · Newton's method · Calculus 1

Step by step

The question

Question: estimate a root of x³ − 2x − 5 = 0 with Newton's method, starting at x = 2.

x3 − 2x − 5 = 0 =

1 The formula

Newton's idea: draw the tangent line at your guess.

Where it meets the x-axis is the next guess.

That gives this formula.

xn+1 = xn − f(xn)f′(xn)

See it on the graph.

Start at x₀ = 2.

Follow the tangent line down to the x-axis.

It lands at x₁: much closer to the root.

2 Find f′(x)

The slope: f′(x) = 3x² − 2, by the power rule.

f′(x) = 3x2 − 2

Careful!

f goes on top, and f′ at the bottom.

Not the other way round.

Careful: not x0 − f′(x0)f(x0) ✗

3 Round 1

f at 2 is −1.

f(2) = 23 − 2(2) − 5 = 8 − 4 − 5 = −1

f′ at 2 is 10.

f′(2) = 3(2)2 − 2 = 12 − 2 = 10

So x₁ is 2 minus −1/10: 2.1.

x1 = 2 − −110 = 2.1

4 Round 2

f at 2.1 is 0.061.

f(2.1) = 0.061

f′ at 2.1 is 11.23.

f′(2.1) = 11.23

So x₂ is 2.1 minus 0.061/11.23: about 2.09457.

x2 = 2.1 − 0.06111.23 ≈ 2.09457

5 Round 3

f at 2.09457 is about 0.00019.

f(2.09457) ≈ 0.00019

f′ at 2.09457 is about 11.16165.

f′(2.09457) ≈ 11.16165

So x₃ is 2.09457 minus 0.00019/11.16165: about 2.09455.

x3 = 2.09457 − 0.0001911.16165 ≈ 2.09455

After 3 rounds, the estimate is 2.09455.

root ≈ 2.09455

6 Check

Let's check: put 2.09455 into f.

We get about 0.000000: almost 0.

Right!

f(2.09455) ≈ 0.000000

Let's look back.

First: the formula.

Then: find f′(x).

Then: round 1.

Then: round 2.

Then: round 3.

Last: check.

Answer
root ≈ 2.09455

Your turn

Try this one yourself, then check:

Estimate a root of x3 − 2x − 6 = 0
Show the answer
x ≈ 2.17998

More from Newton's method

The whole lesson: Newton's method →