Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Newton's method
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===Use of Newton's method to compute square roots=== Newton's method is one of many known [[methods of computing square roots]]. Given a positive number {{mvar|a}}, the problem of finding a number {{mvar|x}} such that {{math|''x''<sup>2</sup> {{=}} ''a''}} is equivalent to finding a root of the function {{math|''f''(''x'') {{=}} ''x''<sup>2</sup> β ''a''}}. The Newton iteration defined by this function is given by :<math>x_{n+1} = x_n-\frac{f(x_n)}{f'(x_n)} = x_n-\frac{x_n^2-a}{2x_n} = \frac{1}{2}\left(x_n+\frac{a}{x_n}\right).</math> This happens to coincide with the [[Methods of computing square roots#Heron's method|"Babylonian" method of finding square roots]], which consists of replacing an approximate root {{math|''x''<sub>''n''</sub>}} by the [[arithmetic mean]] of {{math|{{var|x}}{{sub|{{var|n}}}}}} and {{math|{{frac|{{var|a}}|{{var|x}}{{sub|{{var|n}}}}}}}}. By performing this iteration, it is possible to evaluate a square root to any desired accuracy by only using the basic [[arithmetic operations]]. The following three tables show examples of the result of this computation for finding the square root of 612, with the iteration initialized at the values of 1, 10, and β20. Each row in a "{{math|''x''<sub>''n''</sub>}}" column is obtained by applying the preceding formula to the entry above it, for instance :<math>306.5 = \frac{1}{2} \left( 1+\frac{612}{1} \right).</math> {| class=wikitable style="border: none;" ! scope=col | {{math|''x''<sub>''n''</sub>}} ! scope=col | {{math|''f''(''x''<sub>''n''</sub>)}} | rowspan=7 style="border: none;"| ! scope=col | {{math|''x''<sub>''n''</sub>}} ! scope=col | {{math|''f''(''x''<sub>''n''</sub>)}} | rowspan=6 style="border: none;"| ! scope=col | {{math|''x''<sub>''n''</sub>}} ! scope=col | {{math|''f''(''x''<sub>''n''</sub>)}} |- | 1 || β611 || 10 || β512 || <u>β2</u>0 || β212 |- | 306.5 || 9.3330 Γ 10<sup>4</sup> || 35.6 || 655.36 || <u>β2</u>5.3 || 28.09 |- | 154.2483686786 || 2.3180 Γ 10<sup>4</sup> || <u>2</u>6.3955056180 || 84.722 || <u>β24.7</u>448616601 || 0.30818 |- | 79.1079978644 || 5.6461 Γ 10<sup>3</sup> || <u>24.7</u>906354925 || 2.5756 || <u>β24.73863</u>45374 || 3.8777 Γ 10<sup>β5</sup> |- | 43.4221286822 || 1.2735 Γ 10<sup>3</sup> || <u>24.7386</u>882941 || 2.6985 Γ 10<sup>β3</sup> || <u>β24.7386337537</u> || 6.1424 Γ 10<sup>β13</sup> |- | <u>2</u>8.7581624288 || 215.03 || <u>24.738633753</u>8 || 2.9746 Γ 10<sup>β9</sup> || style="border-style:none;" | |- | <u>2</u>5.0195385369 || 13.977 |- | <u>24.7</u>402106712 || 7.8024 Γ 10<sup>β2</sup> |- | <u>24.738633</u>8040 || 2.4865 Γ 10<sup>β6</sup> |- | <u>24.7386337537</u> || 2.5256 Γ 10<sup>β15</sup> |} The correct digits are underlined. It is seen that with only a few iterations one can obtain a solution accurate to many decimal places. The first table shows that this is true even if the Newton iteration were initialized by the very inaccurate guess of {{math|1}}. When computing any nonzero square root, the first derivative of {{mvar|f}} must be nonzero at the root, and that {{mvar|f}} is a smooth function. So, even before any computation, it is known that any convergent Newton iteration has a quadratic rate of convergence. This is reflected in the above tables by the fact that once a Newton iterate gets close to the root, the number of correct digits approximately doubles with each iteration.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)