Computational Physics - Department of Physics

(Axel Boer) #1
4.2 Iterative Methods 97

numerics. Through an iterative search of the solution, the hope is that we can approach,
within a given toleranceε, a valuex 0 which is a solution tof(s) = 0 if

|x 0 −s|<ε, (4.9)

andf(s) = 0. We could use other criteria as well like
∣∣
∣∣x^0 −s
s

∣∣

∣∣<ε, (4.10)

and|f(x 0 )|<εor a combination of these. However, it is not given that the iterative process
will converge and we would like to have some conditions onfwhich ensures a solution. This
condition is provided by the so-called Lipschitz criterion. If the functionf, defined on the
interval[a,b]satisfies for allx 1 andx 2 in the chosen interval the following condition

|f(x 1 )−f(x 2 )|≤k|x 1 −x 2 |, (4.11)

withka constant, thenfis continuous in the interval[a,b]. Iffis continuous in the interval
[a,b], then the secant condition gives

f(x 1 )−f(x 2 ) =f′(ξ)(x 1 −x 2 ), (4.12)

withx 1 ,x 2 within[a,b]andξwithin[x 1 ,x 2 ]. We have then

|f(x 1 )−f(x 2 )|≤|f′(ξ)||x 1 −x 2 |. (4.13)

The derivative can be used as the constantk. We can now formulate the sufficient conditions
for the convergence of the iterative search for solutions tof(s) = 0.


  1. We assume thatfis defined in the interval[a,b].

  2. fsatisfies the Lipschitz condition withk< 1.


With these conditions, the equationf(x) = 0 has only one solution in the interval[a,b]and it
converges afterniterations towards the solutionsirrespective of choice forx 0 in the interval
[a,b]. If we letxnbe the value ofxafterniterations, we have the condition

|s−xn|≤
k
1 −k
|x 1 −x 2 |. (4.14)

The proof can be found in the text of Bulirsch and Stoer. Sinceit is difficult numerically to
find exactly the point wheref(s) = 0 , in the actual numerical solution one implements three
tests of the type



  1. |xn−s|<ε, (4.15)
    and




  2. |f(s)|<δ, (4.16)




  3. and a maximum number of iterationsNmaxiterin actual calculations.



Free download pdf