Calculus

Newton's Method Explained: Finding Roots with Tangent Lines

By Math Solving Space · · 2 min read

On this page
  1. Why it works
  2. The formula
  3. Worked example 1: @@STASH4@@
  4. Worked example 2: @@STASH11@@
  5. When it fails
  6. Common mistakes
  7. Practice questions
  8. Frequently asked questions

Newton's method finds where a function equals zero by repeatedly sliding down tangent lines. From a guess xnx_n, draw the tangent and see where it hits the x-axis; that point is the next, better guess. The formula is xn+1=xn−f(xn)f′(xn)x_{n+1} = x_n - \frac{f(x_n)}{f'(x_n)}.

Why it works

Near a root, a smooth curve looks almost like a straight line: its tangent. The tangent's x-intercept is easy to find, and it lands close to the true root. Repeating the step usually closes in very fast.

The formula

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

Worked example 1: 2\sqrt{2}

Solve x2−2=0x^2 - 2 = 0, so f(x)=x2−2f(x) = x^2 - 2 and f′(x)=2xf'(x) = 2x. Start at x0=1x_0 = 1.

nn xnx_n
0 1
1 1.5
2 1.41666…
3 1.41421568…
4 1.41421356237…

After four steps the answer is correct to 12 digits.

Worked example 2: cos⁡x=x\cos x = x

Rewrite as f(x)=cos⁡x−x=0f(x) = \cos x - x = 0, with f′(x)=−sin⁡x−1f'(x) = -\sin x - 1. Starting from x0=1x_0 = 1 the method settles on x≈0.739085x \approx 0.739085 in a few steps. No algebra trick solves this equation exactly, which is exactly when numerical methods shine.

When it fails

  • Flat tangent: if f′(xn)=0f'(x_n) = 0 you divide by zero.
  • Bad start: far from a root, a tangent can send the next guess far away.
  • Cycling: occasionally guesses bounce between values.

Try a different starting guess, ideally read from a graph.

Common mistakes

  • Forgetting to differentiate correctly.
  • Using degrees in trig functions (calculus needs radians).
  • Stopping too early: keep going until the guesses stop changing.

Practice questions

  1. Do one step of Newton's method for x2−5x^2 - 5 from x0=2x_0 = 2.
  2. What is f′(x)f'(x) for f(x)=x3−2x−5f(x) = x^3 - 2x - 5?
  3. Why does x0=0x_0 = 0 fail for f(x)=x2−2f(x) = x^2 - 2?

Answers: 1) x1=2.25x_1 = 2.25 2) 3x2−23x^2 - 2 3) f′(0)=0f'(0) = 0, so the tangent is flat

The Newton's method calculator lists every iteration and animates the tangents. To find all roots in a range at once, use the equation solver. Derivatives are covered in derivatives for beginners.

Frequently asked questions

Is Newton's method the same as Newton–Raphson?

Yes. Both names refer to the same tangent-line method.

How do I choose the starting guess?

Sketch or graph the function and start near where it crosses the x-axis.

Does it find every root?

No. It finds one root near the starting guess. Use different starting points for others.

Open the calculator →

#calculus#equations#numerical methods