Beruflich Dokumente
Kultur Dokumente
I Systems of Equations 5
Preface
These course materials are a modified version of the lecture slides writ-
ten by Ralf Hiptmair and Vasile Gradinaru. They have been prepared
for the course 401-0654-00L Numerische Methoden in the spring
semester 2013. These course materials are also inspired by the hand-
written notes of Lars Kielhorn for the course 401-0654-00L Numerische
Methoden in the spring semester 2012. Special thanks are due to
Markus Sprecher for proofreading the course materials.
3
4 CONTENTS
Z
urich, February 2013
Arnulf Jentzen
Reading instructions
These course materials are neither a textbook nor lecture notes. They
are ment to be supplemented by explanations given in class.
Some pieces of advice:
Systems of Equations
5
Chapter 1
satisfy
(k+1) (k) 1 (k) a
x = (x ) = x + (k) (1.5)
2 x
for all k N0.
Definition 1.1.2 (Convergence with given initial guess(es)). An it-
erative method with iteration function : U (Rn)m Rn and
initial guess(es) (x(0), . . . , x(m1)) U converges to x Rn if
lim x(k) = x
k
Norms provide tools for measuring errors. Recall the next definition.
In the following K = R or C.
Definition 1.1.6 (Norm). Let V be a K-vector space. A map
kk : V [0, ) is a norm on V if
(i) v V : v = 0 kvk = 0 (positive definite)
(ii) v V, K : kvk = || kvk (homogeneous)
(iii) v, w V : kv + wk = kvk + kwk (triangle inequality).
y = [ ];
for i = 1:15
x = x + ( c o s ( x )+1)/ s i n ( x ) ;
y = [y,x ];
end
err = y x ;
rate = err (2:15)./ err (1:14);
1.1. ITERATIVE METHODS 13
Note: x(15) replaces the limit limk x(k) in the computation of the
rate of convergence.
k x(0) = 0.4 x(0) = 0.6 x(0) = 1
|x(k) x(15) | |x(k) x(15) | |x(k) x(15) |
x(k) |x(k1) x(15) |
x(k) |x(k1) x(15) |
x(k) |x(k1) x(15) |
2 3.3887 0.1128 3.4727 0.4791 2.9873 0.4959
3 3.2645 0.4974 3.3056 0.4953 3.0646 0.4989
4 3.2030 0.4992 3.2234 0.4988 3.1031 0.4996
5 3.1723 0.4996 3.1825 0.4995 3.1224 0.4997
6 3.1569 0.4995 3.1620 0.4994 3.1320 0.4995
7 3.1493 0.4990 3.1518 0.4990 3.1368 0.4990
8 3.1454 0.4980 3.1467 0.4980 3.1392 0.4980
Numerical computations indicate: rate of convergence 0.5.
1
10
(0)
x = 0.4
x(0) = 0.6
x(0) = 1
0
10
iteration error
1
10
2
10
3
10
4
10
1 2 3 4 5 6 7 8 9 10
index of iterate
Comments:
Convergence with order p [1, ) is independent of choice of
norm.
Convergence with order 2 is sometimes referred as quadratic
convergence and convergence with order 3 is sometimes referred
as cubic convergence
Remark 1.1.3 (Seeing higher order convergence). Assume that x(k)
Rn, k N0, converges with order p (1, ) to x Rn. Then
2
x x
C
x(k1) x
p C (p0+p1)
x(k2) x
(p )
(k)
| {z }
=:k
(p0 +p1 +...+p(k1) )
(0)
k
(p )
C x x
(pk 1)
(pk )
= C (p1)
x(0) x
log(C) log(C) k
log k + + log 0 p
(p 1) (p 1)
for all k N0 . Moreover, if k N0 : k+1 C (k )p and C > 0,
then
k N0 : log k
log(C)
log(C) k
+ + log 0 p . (1.13)
(p 1) (p 1)
In that case, the error graph is a concave power curve in a lin-log
chart provided that 0 is sufficiently small. Furthermore, if C>0
then for every k N :
k+1 C (k )p
log k+1 log k
k C (k1)p p. (1.14)
log k log k1
0 < k+1 < k < k1
K = min k N0 :
x x
.
n o
(k)
(1.27)
Termination criteria:
x x
(K)
(1.28)
and hence
1
x
(k1)
(k)
x x(k1)
x (1.31)
(1 L)
and therefore
L
x x
(k)
(k)
x x(k1)
(1.32)
(1 L)
for all k N. This suggests that we take the right hand side of
(1.32) as an a posteriori error bound for a reliable termina-
tion criterion.
1.2. 1-POINT ITERATION METHODS 19
F (x) = x ex 1 (1.35)
1.5
1
F(x)
0.5
0.5
1
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
1+x
1(x) = ex, 2(x) = , 3(x) = x + 1 x ex (1.36)
1 + ex
for all x [0, 1].
20CHAPTER 1. ITERATIVE METHODS FOR NON-LINEAR SYSTEMS OF EQUATIONS
1 1 1
0.5 0.5 0.5
0 0 0
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
x x x
kk instead of kkL(kk,kk),
kk1 instead of kkL(kk1,kk1) and
kkL(kkA) instead of kkL(kkA,kkA).
Remark 1.2.2 (A simple criterion for a continuously differ-
entiable function to be contractive). Let U Rn be a convex
open set and let : U Rn Rn be continuously differentiable.
Then
1 0
Z
(x) (y)
=
y + r(x y) (x y) dr
0
Z 1
0
y + r(x y) L(kk) dr x y
(1.44)
" 0 #
0
sup y + r(x y)
dr x y
L(kk)
r[0,1]
x x
x x
(l)(x) = 0 (1.55)
for all l {1, 2, . . . , k}. Then there exists a (0, ) such that
for every
x(0) O := {x Rn : kx xk } (1.56)
it holds that the iterates associated to and x(0) lie in O and
converge with order k + 1 to x.
26CHAPTER 1. ITERATIVE METHODS FOR NON-LINEAR SYSTEMS OF EQUATIONS
Proof. Lemma 1.2.1 proves that there exists a (0, ) such that
such that for every
x(0) O := {x Rn : kx xk } (1.57)
it holds that the iterates associated to and x(0) lie in O and converge
linearly to x. Let x(0) O and let (x(k))kN0 be iterates associated to
and x(0). Next Talyors formula proves
(x)
k
X 1
= (x) + (l)(x) (x x, . . . , x x)
l!
l=1
1 k
Z
(1 r)
+ (k+1)(x + r(x x)) (x x, . . . , x x) dr
0 k!
(1.58)
and hence
k(x) (x)k
Z 1
k
(k+1) (1 r)
(x + r(x x)) (x x, . . . , x x)
dr
"0 # k!
kx xk(k+1)
(k+1)
sup
(x + r(x x )) (k+1) L (kk)
r[0,1]
(y)
L(k+1)(kk) kx xk(k+1)
(l+1)
sup
yO
| {z }
=:C
(1.59)
iteration function
given by
0
1
(x) = x F (x) F (x) (1.64)
for all x D with det(F 0(x)) 6= 0 is called Newtons method for
F.
F x1 x0
x(0) O := {x O : kx xk } (1.66)
0(x) = 0. (1.69)
given by
F (x)F 00(x)
F (x)
(x) = x 0 G (1.71)
F (x) (F 0(x))2
F (x)F 00 (x)
for all x D with F 0(x) 6= 0 and (F 0 (x))2
U is called G-
modified Newton method for F .
(k) (k)
x := lim x1 = lim x2 [a, b]. (1.76)
k k
Note that
(k) (k) (k) (k)
min(x1 , x2 ) x max(x1 , x2 ) (1.77)
4
It is also possible to formulate the bisection method as a iterative 2-point method.
1.2. 1-POINT ITERATION METHODS 31
and hence
f u n c t i o n x = b i s e c t (G, a , b , t o l )
% S e a r c h i n g z e r o by b i s e c t i o n
Ga = G( a ) ; Gb = G( b ) ;
i f (GaGb>0)
e r r o r ( G( a ) , G( b ) same s i g n ) ;
end ;
i f (Ga < 0 ) , v=1; e l s e v = 1 ; end ;
x = 0 . 5 ( b+a ) ;
t o l 2 = 2 t o l ;
w h i l e ( ( ba > t o l 2 ) & ( ( a<x ) & ( x<b ) ) )
i f ( vG( x)<=0), b=x ; e l s e a=x ; end ;
x = 0 . 5 ( a+b )
end
Advantages:
Drawbacks:
32CHAPTER 1. ITERATIVE METHODS FOR NON-LINEAR SYSTEMS OF EQUATIONS
given by
F (y) (y x)
(x, y) = y (1.82)
(F (y) F (x))
for all x, y D with F (x) 6= F (y) is called secant method for F .
for all k N.
1.3. MULTI-POINT ITERATION METHODS 33
x0 x2 x1
f u n c t i o n x = s e c a n t ( x0 , x1 , F , t o l )
f o = F( x0 ) ;
f o r i =1:MAXIT
f n = F( x1 ) ;
s = f n ( x1x0 ) / ( fnf o ) ;
x0 = x1 ; x1 = x1s ;
i f ( abs ( s ) < t o l ) , x = x1 ; r e t u r n ; end
fo = fn ;
end
Advantages:
Drawbacks:
1
converges typically with order p = 2 1 + 5 1.62 and not
faster; is thus typically not as fast as Newtons method