The principal nth root
(for integer n there are n distinct complex solutions to this equation if
There is a very fast-converging nth root algorithm for finding
- Make an initial guess
x 0 - Set
x k + 1 = 1 n [ ( n − 1 ) x k + A x k n − 1 ] . In practice we doΔ x k = 1 n [ A x k n − 1 − x k ] ; x k + 1 = x k + Δ x k - Repeat step 2 until the desired precision is reached, i.e.
| Δ x k | < ϵ .
A special case is the familiar square-root algorithm. By setting n = 2, the iteration rule in step 2 becomes the square root iteration rule:
Several different derivations of this algorithm are possible. One derivation shows it is a special case of Newton's method (also called the Newton-Raphson method) for finding zeros of a function
For large n, the nth root algorithm is somewhat less efficient since it requires the computation of
Derivation from Newton's method
Newton's method is a method for finding a zero of a function f(x). The general iteration scheme is:
- Make an initial guess
x 0 - Set
x k + 1 = x k − f ( x k ) f ′ ( x k ) - Repeat step 2 until the desired precision is reached.
The nth root problem can be viewed as searching for a zero of the function
So the derivative is
and the iteration rule is
leading to the general nth root algorithm.