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!
=== Solution of {{math|1=cos({{var|x}}) = {{var|x}}{{sup|3}}}} using Newton's method === Consider the problem of finding the positive number {{mvar|x}} with {{math|1=cos {{var|x}} = {{var|x}}{{sup|3}}}}. We can rephrase that as finding the zero of {{math|1={{var|f}}({{var|x}}) = cos({{var|x}}) − {{var|x}}{{sup|3}}}}. We have {{math|1={{var|{{prime|f}}}}({{var|x}}) = −sin({{var|x}}) − 3{{var|x}}{{sup|2}}}}. Since {{math|cos({{var|x}}) β€ 1}} for all {{mvar|x}} and {{math|{{var|x}}{{sup|3}} > 1}} for {{math|{{var|x}} > 1}}, we know that our solution lies between 0 and 1. A starting value of 0 will lead to an undefined result which illustrates the importance of using a starting point close to the solution. For example, with an initial guess {{math|1={{var|x}}{{sub|0}} = 0.5}}, the sequence given by Newton's method is: <math display="block">\begin{matrix} x_1 & = & x_0 - \dfrac{f(x_0)}{f'(x_0)} & = & 0.5 - \dfrac{\cos 0.5 - 0.5^3}{-\sin 0.5 - 3 \times 0.5^2} & = & 1.112\,141\,637\,097\dots \\ x_2 & = & x_1 - \dfrac{f(x_1)}{f'(x_1)} & = & \vdots & = & \underline{0.}909\,672\,693\,736\dots \\ x_3 & = & \vdots & = & \vdots & = & \underline{0.86}7\,263\,818\,209\dots \\ x_4 & = & \vdots & = & \vdots & = & \underline{0.865\,47}7\,135\,298\dots \\ x_5 & = & \vdots & = & \vdots & = & \underline{0.865\,474\,033\,1}11\dots \\ x_6 & = & \vdots & = & \vdots & = & \underline{0.865\,474\,033\,102}\dots \end{matrix} </math> The correct digits are underlined in the above example. In particular, {{math|{{var|x}}{{sub|6}}}} is correct to 12 decimal places. We see that the number of correct digits after the decimal point increases from 2 (for {{math|{{var|x}}{{sub|3}}}}) to 5 and 10, illustrating the quadratic convergence.
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)