Root Finding: Bisection & Newton's Method

25 min
0/4 practice checks

When an equation f(x)=0f(x) = 0 has no tidy formula, we find roots numerically.

Bisection. Start with an interval [a,b][a, b] where f(a)f(a) and f(b)f(b) have opposite signs (so a root lies between them). Test the midpoint; keep the half that still brackets the root; repeat. Slow but sure.

Newton's method. Follow the tangent line down to where it hits the xx-axis:

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

Worked example (finding 2\sqrt 2). With f(x)=x22f(x) = x^2 - 2, f(x)=2xf'(x) = 2x, the update simplifies to xn+1=12(xn+2xn).x_{n+1} = \tfrac{1}{2}\left(x_n + \tfrac{2}{x_n}\right). From x0=1x_0 = 1: x1=1.5x_1 = 1.5, then x21.4167x_2 \approx 1.4167 — already close to 2=1.4142\sqrt 2 = 1.4142\ldots

To start bisection on [a,b][a, b], the values f(a)f(a) and f(b)f(b) must…

Apply one Newton step to f(x)=x22f(x) = x^2 - 2 starting from x0=1x_0 = 1. Find x1x_1.

Bisection on f(x)=x22f(x) = x^2 - 2 over [1,2][1, 2]: the first midpoint is 1.51.5, and f(1.5)=0.25>0f(1.5) = 0.25 > 0 while f(1)<0f(1) < 0, so the root lies in [1,1.5][1, 1.5]. What is the next midpoint?

Continue Newton's method for 2\sqrt 2 from x1=1.5x_1 = 1.5. Find x2x_2 (to 3 decimal places).