Professional Documents
Culture Documents
Nonlinear Systems: Rooting-Finding Problem
Nonlinear Systems: Rooting-Finding Problem
Rooting-Finding Problem
Jan 2016
Table of Contents
Introduction
Single Equation
Systems
Rooting-Finding Problem
One of the most basic problems of numerical approximation is the
root-finding problem. This process involves finding a root or
solution of an equation of the form
f (x) = 0
(1)
Cont
It is known that the curve assumed by a suspended cable is a
catenary. When the y-axis passess through the lowest point, we can
assume an equation of the form
x
y(x, ) = cosh
Basic Theorems
Theorem (Intermediate Value Theorem (IVT))
Suppose f C[a, b] and K is any number between f (a) and f (b), then
there exists a number c (a, b) for which f (c) = K.
n
X
f (k) (x0 )
k=0
and
Rn (x) =
k!
(x x0 )k
f (n+1) ((x))
(x x0 )n+1
(n + 1)!
(2)
(3)
A Schematic Diagram
Set i = 1 F A = f (a)
While i N do STEP 3 - 6
Set i = i + 1
10
x
2
10
Example cont
Let a1 = 0 and b1 = 1. Notice that f (0) = 1 and f (1) = 1 and
therefore, f (0)f (1) < 0, so a root exists in the interval [0, 1]. Now using
the algorithm given previously, we obtain the following results for
i = 1, 2, 3, 4, 5.
i
1
2
3
4
5
ai
0
0.5
0.5
0.625
0.625
bi
1
1
0.75
0.75
0.6875
pi = (ai + bi )/2
0.5
0.75
0.625
0.6875
0.65625
f (pi )
0.375
0.172
0.131
0.012
0.061
Error Analysis
Suppose that f C[a, b] and f (a)f (b) < 0. Let p be a root of the
equation f (x) = 0 where p [a, b]. To obtain a better understanding of
the bisection method, for n 1, let us consider the length of the
interval [an , bn ], that is
1
1
bn an = n1 (b1 a1 ) = n1 (b a)
(5)
2
2
and we expect the root p [an , bn ] and pn = (an + bn )/2. Now
1
1
(6)
|pn p| (bn an ) = n (b a)
2
2
In other words, limn pn = p. That is, given > 0 (the tolerance),
then there exists N N such that whenever n N , we have
1
|pn p| n (b a) <
2
Solving for n gives
ln(b a) ln
n>
(7)
ln 2
Newton-Raphson Method
Newton-Raphson method is one of the most powerful and well-known
numerical methods for solving a root-finding problem.
Suppose that f C 2 [a, b]. Let p0 [a, b] be an approximation solution
to the solution p of f (x) = 0 such that f 0 (x0 ) 6= 0 and |p p0 | is
small. Consider the first Taylor polynomial for f (x) expand about p0 ,
and evaluated at x = p,
f (p) = f (p0 ) + (p p0 )f 0 (p0 ) +
(p p0 )2 00
f ()
2
(8)
f (p0 )
f 0 (p0 )
(10)
An Iterative Formula
This set the stage for Newtons method, which starts with an
pn = pn1
f (pn1 )
f 0 (pn1 )
for n 1
(11)
Set i = 1
While i N do STEP 3 - 6
Set i = i + 1
Set p0 = p [Update p0 ]
pi
1.2
2.0743
1.7242
1.5572
1.5149
1.5121
f (pi )
0.2799
1.7361
0.4355
0.0740
0.0042
f 0 (pi )
0.3201
4.9591
2.6082
1.7457
1.5488
Stopping Criteria
Given a tolerance > 0 and suppose that we have generated a sequence
p1 , . . . , pN . The following criteria are some common stopping criteria
used in numerical mathematics:
1
|pN pN 1 | <
|pN pN 1 |
|pN |
|f (pN )| <
< with pN 6= 0
Nonlinear Systems
Some physical problems involve the solution of systems of n nonlinear
equations in n unknowns. One approach is to linearize and solve,
repeatedly.
In the general case, a system of n nonlinear equations in n unknowns
xi can be displayed in the form
fi (x1 , x2 , , xn ) = 0 i = 1, 2, . . . , n
(12)
Using vector notation, we can write this system in a more elegant form:
f (x) = 0
(13)
Differentiation
Suppose that U Rn is an open set. A function f : U Rm is
differentiable at x U if there is a linear map T : Rn Rm such that
lim
h0
kf (x + h) f (x) T (h)k
=0
khk
(14)
t0
(15)
Jacobian Matrix
By setting v = ej in the definition of the directional derivative, a
standard basis vector, we obtain the partial derivative in the j-th
direction and is denoted by Dj f (x).
Furthermore, if f = (f1 , f2 , , fn ), then the matrix Dj fi (x) with
1 i n and 1 j n is called the the Jacobian matrix of f at x
fi
(x).
and is denoted by Jij (x) = x
j
If we denote j fi =
fi
xj ,
1 f1
1 f2
J (x) = .
..
2 f1
2 f2
..
.
..
.
1 fn 2 fn
n f1
n f2
..
.
(16)
n fn
(17)
(18)
(19)
(21)
Example
Example
Given a system
x1 + x2 + x3 3 = 0
x21 + x22 + x23 5 = 0
ex1 + x1 x2 x1 x3 1 = 0
Use Newtons method to perform three iterations with initial guess
x(0) = [0.1 1.2 2.5]T using 4 decimal places.
Solution: The Jacobian matrix is
1
1
1
2x1
2x2 2x3
J (x) =
x
e 1 + x2 x3 x1 x1
0.8000
0.12 + 1.22 + 2.52 5
2.7000
f (x(0) ) =
=
0.1
e + (0.1)(1.2) (0.1)(2.5) 1
0.0248
and the Jacobian matrix J (x(0) ) is
1
1
1
1.0000 1.0000 1.0000
2(0.1)
2(1.2) 2(2.5) = 0.2000 2.4000 5.0000
0.1
e + 1.2 2.5
0.1
0.1
0.1948 0.1000 0.1000
By solving the system J (x(0) )h(0) = f (x(0) ), we have
h(0) = [0.0966 0.3217 0.3817]T which gives
x(1) = x(0) + h(0) = [0.0034
0.8783
2.1183]T
(1)
(1)
(1)
(1)
(1)
x
+
x
+
x
0.0000
1
2
3
(1)
(1)
(1)
0.2584
f (x(1) ) =
=
(x1 )2 + (x2 )2 + (x3 )2 5
x(1)
0.0008
(1)
(1)
(1)
(1)
e 1 + (x1 )(x2 ) (x1 )(x3 ) 1
Then the Jacobian matrix J (x(1) ) is given as
1
1
1
1.0000 1.0000 1.0000
(1)
(1)
(1)
2x1
2x2
2x3 = 0.0068 1.7566 4.2366
(1)
(1)
(1)
(1)
(1)
0.2366 0.0034 0.0034
ex1 + x x
x
x
2
0.9833
2.0137]T
(2)
(2)
(2)
(2)
(2)
x
+
x
+
x
0.0000
1
2
3
(2)
(2)
(2)
0.0219
f (x(2) ) =
=
(x1 )2 + (x2 )2 + (x3 )2 5
x(2)
0.0001
(2)
(2)
(2)
(2)
e 1 + (x1 )(x2 ) (x1 )(x3 ) 1
Then the Jacobian matrix J (x(2) ) is given as
1
1
1
1.0000 1.0000 1.0000
(2)
(2)
(2)
2x1
2x2
2x3 = 0.0060 1.9666 4.0274
(2)
(2)
(2)
(2)
(2)
0.2274 0.0030 0.0030
ex1 + x x
x
x
2
0.9952
2.0025]T
(k)
x1
0.1
0.0034
0.0030
0.0024
0.0012
0.0006
(k)
x2
1.2
0.8783
0.9833
0.9952
0.9976
0.9988
(k)
x3
2.5
2.1183
2.0137
2.0025
2.0012
2.0006
kx(k) x(k1) k
0.3817
0.1050
0.0119
0.0024
0.0012
Problems