Jump to content

Rootfinding for nonlinear equations

From Wikiversity

   

Rootfinding for nonlinear equations


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

limk→∞xk=α

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


Convergence

[edit | edit source]

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 p≥1 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

[edit | edit source]

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

e1=|x1−α|=|x0−α|2=10−2

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=10−4

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

e3=|x3−α|=|x2−α|2=10−8

which is still larger than the tolerance. Similarly,

e4=|x4−α|=|x3−α|2=10−16

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)