notesonly.in

One notebook for every subject — open it anywhere.

Log in

Newton-Raphson Method Explained: Root Finding Made Simple

The Newton-Raphson method finds roots by following tangent lines. At your guess x_n, draw the tangent to y = f(x) and take where it hits the x-axis as your next guess x_n+1. A smooth curve looks almost straight up close, so the tangent points accurately at the root, and each step roughly doubles the correct digits — quadratic convergence.

This method matters because it is the workhorse root-finder of science and engineering. Whenever a calculator, a physics simulation, or an optimization routine needs to solve an equation, some form of Newton-Raphson is usually doing the heavy lifting. It is fast, simple to program, and extends naturally to systems of equations and optimization problems.

Key Concepts

  • Tangent line: the straight line touching y = f(x) at (x_n, f(x_n)), with slope f′(x_n).
  • Simple root: a root where f′(r) ≠ 0, the case where Newton converges quadratically. At a multiple root (f′(r) = 0) it slows down to linear convergence.
  • Stopping rule: stop when |x_n+1 − x_n| is smaller than the tolerance, or when |f(x_n)| is tiny.
  • Basin of attraction: the set of starting points that lead to a particular root. A bad start can converge to a different root, cycle forever, or diverge.

Formulas

  • Newton iteration: x_n+1 = x_n − f(x_n) / f′(x_n), valid only when f′(x_n) ≠ 0.
  • Geometric meaning: the tangent line y = f(x_n) + f′(x_n)(x − x_n) crosses y = 0 exactly at x_n+1.
  • Quadratic convergence: near a simple root, the new error is roughly proportional to the square of the old error, E_n+1 ≈ |f″(r) / (2f′(r))| · E_n². This assumes f is twice differentiable and the start is close enough to the root.

Worked Example

Find √2 by solving f(x) = x² − 2 = 0, with f′(x) = 2x, starting at x₀ = 1. Iteration 1: x₁ = 1 − (1² − 2)/(2·1) = 1 − (−1)/2 = 1.5. Iteration 2: x₂ = 1.5 − (1.5² − 2)/(2·1.5) = 1.5 − 0.25/3 = 1.5 − 0.083333 = 1.416667. Iteration 3: x₃ = 1.416667 − (1.416667² − 2)/(2·1.416667). Since 1.416667² = 2.006944, the numerator is 0.006944 and the denominator is 2.833333, giving x₃ = 1.416667 − 0.002451 = 1.414216. The true √2 = 1.414214, so three steps give five correct decimal places — the errors went roughly 0.41, then 0.086, then 0.0024, each about the square of the previous, showing quadratic convergence in action.

Common Misconceptions

  • "Newton's method always converges." It fails when the tangent is flat (f′ = 0), the start is far from any root, or the function oscillates — the iteration can cycle forever or fly off to infinity.
  • "It always finds the nearest root." The basin of attraction can have a complicated shape; a starting point can converge to a distant root or to none at all.
  • "The formula needs an exact derivative." When the derivative is hard to get, the secant method approximates it from function values, which is Newton's close cousin.

Real-World Applications

  • Astronomy: solving Kepler's equation to predict planet and satellite positions.
  • Electrical engineering: finding operating points of nonlinear circuits.
  • Optimization: Newton's method on the derivative finds minima of functions, powering machine-learning training algorithms.
  • Finance: computing implied volatility of options from market prices.

The Newton-Raphson method replaces the curve by its tangent line at each step, giving x_n+1 = x_n − f(x_n)/f′(x_n). Near a simple root it converges quadratically, doubling correct digits each iteration, but it needs a good starting guess and a nonzero derivative to stay on track.