Numerical methods

Newton’s Method, Visually

Use tangent lines to approach a root

Building intuition8 min readSample lesson
x₀x₁

Video preview placeholder

No completed video is available for this sample lesson yet.

Video coming later
The idea

What you’ll explore

Root-finding turns an equation into a sequence of better guesses. Newton’s method uses the local slope of a function to estimate where its graph crosses the axis.

Newton update

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

Step by step

  1. 01

    Start with an estimate xₙ where the derivative is defined and nonzero.

  2. 02

    Follow the tangent at (xₙ, f(xₙ)) until it meets the x-axis. That intercept becomes the next estimate.

  3. 03

    The method can converge quickly near a suitable root, but the starting point and function shape matter.

A small code example

Python
def newton_step(x, f, df):
    return x - f(x) / df(x)

x = 1.5
for _ in range(5):
    x = newton_step(x, f, df)
Keep exploring

Related lessons