Rootfinding for nonlinear equations

From testwiki
Jump to navigation Jump to search

Template:Nocat Template:S Template:Center topTemplate:Font
Template:Center bottom
Template:Navigation bar

Here we want to solve an equation of the kind f(x)=0.

Suppose that there exist α such that f(α)=0. Then we want to construct a sequence xk, with k, such that

limkxk=α

The number α is called root (of the function f).


Convergence

If the sequence defined by the numerical method converges, we can ask what the rate of convergence is. With this aim, we define the order of convergence of a sequence :

Definition (Order of convergence). A sequence xk converges to α with order p1 if

|xk+1α|=C|xkα|p,k>0,

p is the order of convergence of the numerical method that has generated the sequence xk. The constant C is called rate of convergence. If p=1 and C is between 0 and 1, the convergence is said to be linear convergence.Under the linear convergence condition,if C=0, the sequence is said to converge superlinearly and if C=1, then the sequence is said to converge sublinearly.

The quantity

ek+1|xk+1α|

represents the error at step k. In general, with a numerical method, we do a finite number of iterations and for this reason we seek only an approximation xk+1 of the true root α. In particular, we can define a tolerance ϵ such that if |xk+1α|ϵ,we can stop the iteration and conclude that xk+1 is the approximation of the true root.

Example

Suppose that the sequence xk converges to α with order 2, where the constant C=1, and suppose that the initial error e0=|x0α|=101. Consider a tolerance ϵ=1010, then we can find the approximation of the true root by using the definition of convergence.Hence,

e1=|x1α|=|x0α|2=102

which is greater than the tolerance, so we should keep going until the error is less than the tolerance. We can get

e2=|x2α|=|x1α|2=104

which is also greater than the tolerance, thus we should do the iteration to calculate

e3=|x3α|=|x2α|2=108

which is still larger than the tolerance. Similarly,

e4=|x4α|=|x3α|2=1016

which is less than the tolerance. Therefore, we can stop here and can conclude that x4 is the approximation of the true root.


YangOu (talk) 02:44, 26 October 2012 (UTC)