Applying Newton to the extraction of a root leads to a very ancient formula, and shows how fast its convergence is.

Example — Computing 2\sqrt{2} with Newton

Let f(x)=x22f(x)=x^2-2, f(x)=2xf'(x)=2x. The iteration becomes xn+1=xnxn222xn=12(xn+2xn).x_{n+1} = x_n - \frac{x_n^2-2}{2x_n} = \frac{1}{2}\left(x_n+\frac{2}{x_n}\right). Starting from x0=2x_0=2:

| nn | xnx_n | xn2|x_n-\sqrt{2}| | |:---:|:---:|:---:| | 00 | 22 | 0,5850{,}585\ldots | | 11 | 1,51{,}5 | 0,08580{,}0858\ldots | | 22 | 1,4161{,}41\overline{6} | 0,00240{,}0024\ldots | | 33 | 1,414215681{,}41421568\ldots | 2,11062{,}1\cdot 10^{-6} | | 44 | 1,414213561{,}41421356\ldots | 1012\le 10^{-12} |

At each step the number of correct decimal digits doubles: the convergence is quadratic, in the sense that xn+1αCxnα2|x_{n+1}-\alpha|\le C\,|x_n-\alpha|^2 in a neighbourhood of the root α\alpha (Esty, 2014). It is the famous Babylonian-Heronian algorithm for computing the root, attributed to Hero of Alexandria (60\approx 60 AD; Boyer, 2011).

The formula xn+1=12(xn+2xn)x_{n+1} = \tfrac{1}{2}\left(x_n+\tfrac{2}{x_n}\right) has an intuitive reading: if xnx_n is an overestimate of 2\sqrt{2}, then 2/xn2/x_n is an underestimate, and their average is a better estimate. This idea of the “average between overestimate and underestimate” is precisely the ancient method, and the quadratic convergence explains why very few steps are enough to obtain a great many digits.

Topics: Continuita
Concepts: Convergenza quadratica · Metodo di newton raphson
Methods: Newton raphson
Skills: Calcolare · Usare formule
People: Erone