Why numerical methods
Equations like x³ − 2x − 5 = 0, cos x = x or ex = 3x have no general formula. Numerical methods approach the root step by step to any tolerance ε.
Methods
- Bisection halves the interval keeping the half with a sign change. Always converges, slowly.
- False position (chords):
x = b − f(b)·(b − a) / (f(b) − f(a)). Usually faster, always converges. - Newton–Raphson:
xk+1 = xk − f(xk) / f′(xk). Very fast near the root, needs a good start (the interval midpoint here). - Secant: Newton with the derivative replaced by the slope through the last two points.
Example
x³ − 2x − 5 = 0 on [2; 3]: root x ≈ 2.0945515. Bisection with ε = 0.0001 needs about 14 iterations, Newton about 4.