Another method of finding the roots of a function f(x).
- Set n = 0 and make an initial guess, X0
- Compute Xn+1 = Xn - f(Xn)/f'(Xn)
- If |Xn+1 / Xn | < threshold
- Return Xn+1
- Else, go to step 2
- h = X0 - X1
- tan(θ) = f(X0)/h
- Tangent of a curve f(X) at a point X0 is f'(X0)
- f'(X0) = f(X0)/h
- h = f(X0)/f'(X0) = X0 - X1
- Hence, X1 = X0 - f(X0)/f'(X0)
Although Newton's method is a very powerful technique, and it converges on the root much faster than the Interval Bisection method:
- Calculating the derivative may be difficult or expensive
- The derivative may be 0 and will halt due to divison by 0
- May fail to converge
- e.g. if f(x) = 1 - x2 and initial guess is 0