Professional Documents
Culture Documents
Lecture 3
Lecture 3
2
PROCEDURES
1. Find a pair of values of x, xl and xu such that fl=f(xl) <0 and fu=f(xu) >0 or fl=f(xl) >0 and fu=f(xu) <0.
E.g. f(xl). f(xu) < 0.
2. Estimate the value of the root from the following formula (Refer to Box 5.1)
( )( )
𝑥 =𝑥 −
( )
4
EXAMPLE 1
f(n) 668 06
1-2-0 1468432-40
.
=
.
I
9309
&
......
1468432
f(x) 668 06 0 .
-40
-
=
16
.
I
X , : 12 to Xu = - ......
Es = 0 5 .
% X, : 12 + 0 Xy : 14 . 9309
Iteration I
f(X 1) = 6 1139
.
12 sub into I
x, =
14 .
sub into I
X4 : 16
(-0 2516) (12-14 9309 .
Xr
.
: 14 9309-.
= 14 815/
2303
.
f (nu) : -
2 .
6 1139
. -
C-0 2516) .
( - 2 .
2303)(12 -
16)
Xr 0272
= 16 f (xr) = 0 .
6 1139
. -
C-2 2303)
.
Ea 14 . 8151 -
14 .
9309
9309
:
x 100 : 0 .
78 %
Xr : 14 .
sub into I
14 815/ .
f(Xr) :
-
0 . 2516
Eal % ) :
X,
new
Xold
100 % f(X)
new
X
6 1139
:
5
X
XI Xr Xu
·
-
2 .
2303
6
OPEN METHODS
when we
converge happen
value
Figure 6.1
7
SIMPLE FIXED-POINT ITERATION
f ( x) 0 g ( x) x
xk g ( xk 1 ) xo given , k 1, 2, ...
8
EXAMPLE 2
𝑥 − 2𝑥 + 3 = 0
9
EXAMPLE 3
Use simple fixed point iteration to locate the root of with stopping criterion 10%
f(x) = e-x - x
10
11
CONVERGENCE
Figure 6.2
12
EXAMPLE 4
Separate the equation in Example 3 into two parts and determine its roots
graphically with 0.2 step size.
13
14
EXERCISE 2 (SUBMIT 17 APRIL 2023)
1. Determine the root of:
𝑓 𝑥 = −0.5𝑥 + 2.5𝑥 + 4.5
(a) Graphically
(b) Using quadratic formula
(c) Using three iteration of the Regula Falsi method. Employ initial guesses of xl=5 and xu=10. Compute the
approximate relative error after each iteration.
15
Iteration 2
2 1 = 5 . 9
f (21) : 1 . 845
nu = 10
f (MU) : -
20 .
5
ur =
f (UU) (21 -
Mu) C -
20 .
5)(5 9-10)
.
: 6 .
2385
=
nu 10 -
f(x,) -
f (nu) 1 .
845 -
1- 20 5) .
f (Ur) = 0 .
6368
Ea : 6 .
23855 9 .
: 5 .
43 %
x 100
. 2385
6
Iteration 3
& 1 :
6 . 2385
f (n)) : 0 .
6368
nu = 10
f (MU) : -
20 .
5
nu -
f(x,) -
f (nu) 0 .
6368 -
1-20 5) .
f(ur) = 0 .
2068
Ea : 6 .
3518- 6 .
2385 1 .
78 %
:
x 100
.
6 3518
: Y root = 6 .
3518