Newton-raphson method: Difference between revisions

From HandWiki
imported>PolicyEnforcerIA
(attribution)
 
(No difference)

Latest revision as of 11:45, 5 August 2021


An iteration method for solving a system of n non-linear equations

Error creating thumbnail: Unable to save thumbnail to destination

for the n variables

Error creating thumbnail: Unable to save thumbnail to destination

. An approximate solution x must be known. Then a better approximation

Error creating thumbnail: Unable to save thumbnail to destination

is found from the approximate equations

Error creating thumbnail: Unable to save thumbnail to destination

which are linear equations in the unknown

Error creating thumbnail: Unable to save thumbnail to destination

. The matrix J is the Jacobi matrix,

Error creating thumbnail: Unable to save thumbnail to destination

The process is iterated until it converges, usually until

Error creating thumbnail: Unable to save thumbnail to destination

is smaller than the accuracy wanted in the solution, or until all the fj(x) are ``sufficiently close to 0 (general criteria are difficult to define). Convergence may, of course, not be obtained if the first approximation was poor (again this is difficult to define in general).

In the one-dimensional case the Newton-Raphson formula

Error creating thumbnail: Unable to save thumbnail to destination

has a very simple geometrical interpretation: it is the extrapolation to 0 along the tangent to the graph of f(x) (also called Newton's  rule).

The convergence is quadratic,

Error creating thumbnail: Unable to save thumbnail to destination

, where

Error creating thumbnail: Unable to save thumbnail to destination

is the error after m iterations. Note that only approximate solutions for

Error creating thumbnail: Unable to save thumbnail to destination

are required. A small error in

Error creating thumbnail: Unable to save thumbnail to destination

will not destroy the convergence completely, but may make it linear instead of quadratic. Hence also the Jacobian matrix J needs to be calculated only approximately, in particular it need often not be recalculated for each iteration. Double computer precision for x and f(x) but single precision for J and

Error creating thumbnail: Unable to save thumbnail to destination

may give double precision for the final solution.

In fact, the Newton-Raphson method may be applied even to linear equations in order to give double precision solutions using single precision subroutines.

Numerical differentiation might be used; this is then essentially the secant method. Some care may be needed, since numerical differentiation becomes inaccurate both for small and large steps, see Press95.