Non Linear Iterative Methods
Non Linear Iterative Methods
Objectives
At the end of this section you will learn how to solve non-linear systems using
1. functional fixed-point iteration,
2. the Gauss-Seidel(Extra Reading) and
3. Newton’s methods.
Introduction
Solutions x x0 to equations of the form f ( x) 0 are often required where it is
impossible or infeasible to find an analytical expression for the vector x. If the scalar
function f depends on n independent variables x1 , x2 , , xn , then the solution x0 will
describe a surface in n – 1 dimensional space. Alternatively we may consider the vector
function f(x) = 0, the solutions of which typically collapse to particular values of x. For
this course we restrict our attention to n independent variables x1 , x2 , , xn and seek
solutions to F (x) 0 where F is vector valued.
f n ( x1 , x2 , , xn ) 0
where each function f i maps n-dimensional space, R n , into the real line R. The above
system can be defined alternatively by defining the function F (x) 0 , where
F : Rn Rn , x ( x1 , x2 , , xn ) and
F ( x1 , x2 , , xn ) f1 ( x1 , x2 , , xn ), f 2 ( x1, x2 , , xn ), , f n ( x1, x2 , , xn ) .
1
Numerical Analysis Non-Linear Iterative Methods
x1( k ) g1 x1( k 1) , x2( k 1) , , xn( k 1)
x2( k ) g x 2
( k 1)
1 , x2( k 1) , , xn( k 1)
xn( k ) g n x1( k 1) , x2( k 1) , , xn( k 1)
The following theorem provides conditions for the iterative process to converge.
Theorem
Let D ( x1 , x2 , , xn ) : ai xi bi , for each i 1, 2, , n , for some collection of
constants (a1 , a2 , , an ) and (b1 , b2 , , bn ) . Suppose G is a continuous function with
continuous first partial derivatives from D Rn into R n with the property that
G(x) D whenever x D . If a constant K 1 exists with
gi (x) K
whenever x D
x j n
for each j 1, 2, , n and each component function g i , then the sequence x ( k )
k 0
defined by x (k )
G x ( k 1)
for each i 1, 2,3, converges to the unique fixed point
Kj
p D , for any x (0) in D , and x ( j ) p x (1) x (0) .
1 K
Example 1
3x1 cos( x2 x3 ) 12 0
x12 81( x2 0.1) 2 sin x3 1.06 0
e x1x2 20 x3 1033 0
f1 ( x1 , x2 , , xn ) 3x1 cos( x2 x3 ) 12
f 2 ( x1 , x2 , , xn ) x12 81( x2 0.1) 2 sin x3 1.06
f3 ( x1 , x2 , , xn ) e x1x2 20 x3 1033
F ( x1 , x2 , , xn ) f1 ( x1 , x2 , , xn ), f 2 ( x1 , x2 , , xn ), , f n ( x1 , x2 , , xn )
3x1 cos( x2 x3 ) 12 , x12 81( x2 0.1) 2 sin x3 1.06, e x1x2 20 x3 1033
Example 2
3x1 cos( x2 x3 ) 12 0
x12 81( x2 0.1) 2 sin x3 1.06 0
e x1x2 20 x3 1033 0
2
Numerical Analysis MATH351/352
If the ith equation is solved for xi , the system can be changed into the fixed point
problem
x1 13 cos( x2 x3 ) 16 ,
x2 19 x12 sin x3 1.06 0.1,
x3 201 e x1x2 1060
3
.
g1 ( x1 , x2 , x3 ) 13 cos( x2 x3 ) 16 12 ,
g 2 ( x1 , x2 , x3 ) 1
9 x12 sin x3 1.06 0.1
1
20 e 1060
3
0.61
.
so 1 gi ( x1 , x2 , x3 ) 1, for each i 1, 2,3. Thus, G(x) D whenever x D .
Finding bounds on the partial derivatives on D gives the following:
g 2 x1 1 g 2
0.238, 0,
x1 9 x 2 sin x 1.06 9 0.218 x2
1 3
g 2 cos x3 1
0.119,
x3 18 x 2 sin x 1.06 18 0.218
1 3
g3 x g3 x
2 e x1x2 201 e 0.14, 1 e x1x2
x1 20 x2 20
3
Numerical Analysis Non-Linear Iterative Methods
Since the partial derivatives are bounded on D, the above Theorem implies that these
functions are continuous on D. Consequently, G is continuous on D. Moreover, for every
xD
gi (x)
0.281 for each i 1, 2,3 and j 1, 2,3, and the condition in the second part of
x j
Theorem 9.7 holds for K 0.843 . It can be shown that
gi (x) x j for each i 1, 2,3 and j 1, 2,3 is continuous on D. Consequently, G has a
unique fixed point on D and the nonlinear system has a solution in D.
Example 3
3x1 cos( x2 x3 ) 12 0
x 81( x2 0.1) sin x3 1.06 0
2
1
2
e x1x2 20 x3 1033 0
Solution
If the ith equation is solved for xi , the system can be changed into the fixed point
problem as
x1 13 cos( x2 x3 ) 16 ,
x2 19 x12 sin x3 1.06 0.1,
x3 201 e x1x2 1060 3
.
and write the iterative process as
x1( k ) 13 cos x2( k 1) x3( k 1) 16 ,
x
2
( k 1)
x2( k ) 19 1 sin x3( k 1) 1.06 0.1,
( k 1) ( k 1)
x3( k ) 201 e x1 x2
1060
3
.
x ( k ) x ( k 1) 105
4
Numerical Analysis MATH351/352
(0.843)5
x (5) p 0.423 1.15
1 0.843
x (3) 0.50000000,1.234 105 , 0.52359814
(0.843)5
x (5) p (1.20 105 ) 5.5 105
1 0.843
x (5) p 2 108
x1( k ) 13 cos x2( k 1) x3( k 1) 16 ,
x
2
x2( k ) 19 (k )
1 sin x3( k 1) 1.06 0.1,
x3( k ) 201 e x1
(k ) (k )
x2
1060
3
.
Newton’s Method
In order to construct an algorithm that led to an appropriate fixed-point method
a11 (x) a12 (x) a1n (x)
a21 (x) a22 (x) a2 n (x)
A(x)
an1 (x) an 2 (x) ann (x)
where each of the entries aij (x) is a function from Rn R . The procedure requires
that A(x) be found so that G(x) x A(x)1 F (x) gives quadratic convergence to the
solution F (x) 0 , provided that A(x) is nonsingular at the fixed point.
5
Numerical Analysis Non-Linear Iterative Methods
Theorem
Suppose p is a solution of G(x) x for some function G ( g1 , g2 , , gn ) , mapping R n
into R n . If a number 0 exists with the property that
i) gi x j is continuous on N x : x p for each
i 1, 2, , n and j 1, 2, ,n,
ii) 2 gi (x) x j xk is continuous, and 2 gi (x) x j xk M for some constant M
whenever x N for each i 1, 2, , n, j 1, 2, , n and k 1, 2, ,n,
iii) gi (p) x j 0 for each i 1, 2, , n and j 1, 2, , n ,
then the sequence generated by x ( k ) G x ( k 1) converges quadratically to p
n2 M ( k 1) 2
for any choice of x (0) N and x ( k ) p x p for each k 1 .
2
n
Since G(x) x A(x)1 F (x) , gi (x) xi bij (x) f j (x) ;
j 1
n
f j bij
1 bij (x) (x) (x) f j (x) , if i k ,
g (x) j 1 xk xk
so i n
xk f
b (x) j (x) ij (x) f (x) , if i k.
b
ij
xk xk
j
j 1
n f j
0 1 bij (p) (p)
j 1 xk
n f j
so b (p) x
j 1
ij (p) 1
k
n f j
0 bij (p) (p)
j 1 xk
n f j
So b (p) x
j 1
ij (p) 0
k
6
Numerical Analysis MATH351/352
A(p)1 J (p) I
so J (p) A(p)
G(x) x J (x)1 F (x)
x ( k ) G x ( k -1) x (k -1) J x (k -1) F x (k -1)
1
Example 1
Solve the nonlinear system
3x1 cos( x2 x3 ) 12 0
x 81( x2 0.1) sin x3 1.06 0
2
1
2
e x1x2 20 x3 1033 0
Solution
The Jacobian matrix for the system is given by
3 x3 sin x2 x3 x2 sin x2 x3
J ( x1 , x2 , x3 ) 2 x1 162( x2 0.1) cos x3
x1 x2 x1 x2
x2e x1e 20
and
x1( k ) x1( k 1) h1( k 1)
x ( k ) x ( k 1) h( k 1)
2( k ) 2( k 1) 2( k 1)
x3 x3 h3
where
h1( k 1)
h( k 1) J x ( k 1) , x ( k 1) , x ( k 1) 1 F x( k 1) , x( k 1) , x( k 1) .
2( k 1) 1 2 3 1 2 3
h3
7
Numerical Analysis Non-Linear Iterative Methods
3 x3( k 1) sin x2( k 1) x3( k 1) x2 sin x2( k 1) x3( k 1) h1( k 1)
( k 1) ( k 1)
2 x1 162( x2( k 1) 0.1) cos x3( k 1) h2( k 1)
x e 1 2
( k 1) x ( k 1) ( k 1)
x
x1 e 1 2
( k 1) x ( k 1) ( k 1)
x h3
2 20
3x1( k 1) cos( x2( k 1) x3( k 1) ) 12
( k 1) 2
x1 81( x2( k 1) 0.1) 2 sin x3( k 1) 1.06
x1( k 1) x2( k 1)
e 20 x3( k 1) 1033
must be solved. The results obtained using the above iterative procedure is as shown
below
Examples
1. The nonlinear system
x 2 10 x y 2 8
F( x, y ) 2 0
xy x 10 y 8
can be transformed into the fixed point problem
x 10
x 2 y 2 8
G( x, y) xy2 x 8
y 10
8
Numerical Analysis MATH351/352
Solution
(a)
i x y g1(x,y) g2(x,y) Tol
0 0 0 0.8 0.8
1 0.8 0.8 0.928 0.9312 0.8
2 0.928 0.9312 0.972832 0.97327 0.1312
3 0.972832 0.97327 0.989366 0.989435 0.044832
4 0.989366 0.989435 0.995783 0.995794 0.016534
5 0.995783 0.995794 0.998319 0.998321 0.006417
6 0.998319 0.998321 0.999328 0.999329 0.002536
7 0.999328 0.999329 0.999732 0.999732 0.00101
8 0.999732 0.999732 0.999893 0.999893 0.000403
9 0.999893 0.999893 0.999957 0.999957 0.000161
10 0.999957 0.999957 0.999983 0.999983 6.44E-05
11 0.999983 0.999983 0.999993 0.999993 2.58E-05
12 0.999993 0.999993 0.999997 0.999997 1.03E-05
13 0.999997 0.999997 0.999999 0.999999 4.12E-06
14 0.999999 0.999999 1 1 1.65E-06
(b)
i x y g1(x,y) g2(x,y) Tol
0 0 0 0.8 0.88
1 0.8 0.88 0.94144 0.967049 0.88
2 0.94144 0.967049 0.982149 0.990064 0.14144
3 0.982149 0.990064 0.994484 0.99693 0.040709
4 0.994484 0.99693 0.998287 0.999045 0.012335
5 0.998287 0.999045 0.999467 0.999703 0.003803
6 0.999467 0.999703 0.999834 0.999907 0.00118
7 0.999834 0.999907 0.999948 0.999971 0.000367
8 0.999948 0.999971 0.999984 0.999991 0.000114
9 0.999984 0.999991 0.999995 0.999997 3.56E-05
10 0.999995 0.999997 0.999998 0.999999 1.11E-05
11 0.999998 0.999999 1 1 3.46E-06
(c)
From (a) and (b) it is seen that Gauss-Seidel Method accelerate convergence.
2. Convert the nonlinear system
3x cos( yz ) 12 0
x 2 81 y 101 sin z 1.06 0
2
e xy 20 z 1033 0
to a fixed point problem and use both functional iteration and the Gauss-Seidel
variant of functional iteration to approximate the root to within 105 in the l
norm, starting the initial estimate x0 y0 0.1 and z0 0.1 . [Note the exact
12 , 0, 6
T
root is ]
9
Numerical Analysis Non-Linear Iterative Methods
Solution
cos( yz ) 12 x 2 sin z 1.06 1 e xy 1033
x , y , z
3 81 10 20
For k 1, 2, , the functional iteration and the Gauss-Seidel variant of functional
iteration are given as
cos( y ( k 1) z ( k 1) ) 12
x(k )
3
( x ) sin z ( k 1) 1.06 1
( k 1) 2
y(k ) and
81 10
( k 1)
e x y ( k 1) 103 3
z (k )
20
( k 1) ( k 1)
cos( y z ) 12
x(k )
3
( x ) sin z ( k 1) 1.06 1
(k ) 2
y(k ) respectively for the above fixed point
81 10
e x y 103 3
(k ) (k )
z (k )
20
problem.
Using the functional iteration we have the following table:
10
Numerical Analysis MATH351/352
3. Starting with the initial guess x0 y0 1.0 , use fixed point (functional iteration
to approximate the solution to the system
2 x2 y 2 4.32, x2 y 2 0
by performing 5 iterations.
4. Consider the nonlinear system
2 x xy 1 0
2 y xy 1 0
which has a unique root x (1, 1)T . Starting with the initial estimate x0 y0 0
, compare the methods of functional iteration, Gauss-Seidel Newton when
approximating the root of this system (perform 5 iterations in each case).
5. Use Newton’s Method to approximate the solution of the nonlinear system
x 2 2 x y 12 0
x2 4 y 2 4 0
starting with the initial estimate x0 , y0 2, 14 and computing 3 iterations.
Solution
Using the Newton’s iterative method
x( k ) x( k 1) J 1 ( x( k 1) ) F ( x( k 1) ), for k 1, with x(0) x0 , y0 2, 14 , we
have
1
2 2 1 0.25
x (1) x (0) J 1 ( x (0) ) F ( x(0) )
0.25 4 2 0.25
2 1 2 1 0.25 2 1 0.75 1.90625
0.25 8 4 2 0.25 0.25 8 0.50 0.3125
1
1 1.90625 1.8125 1 0.00879
x x J ( x )F (x )
(2) (1) (1) (1)
0.3125 3.8125 2.5 1.70312
1.90625 1 2.5 1 0.00879 2.10773
3.8125 1.8125 1.70312 0.68232
0.3125 8.34375
6. Use Newton’s Method to approximate the two solutions of the nonlinear system
ye x 2, x2 y 2 4
by computing 2 iterations for each of the given initial estimates
(a) x0 , y0 0.6, 3.7
(b) x0 , y0 1.9, 0.4
7. Use Newton’s Method to approximate the solution of the nonlinear system
x 2 y 2 0.6 y 0.16 0
x 2 y 2 x 1.6 y 0
by computing 3 iterations with the initial estimate of x0 , y0 0.6,0.25 .
Using the more accurate initial estimate of x0 , y0 0.3,0.1 , repeat the
process using the modified Newton’s method whereby the Jacobian is evaluated
and held constant for subsequent iterations. Compare the two results.
11