Chap-2.Fixed Iteration Method
Chap-2.Fixed Iteration Method
Solution of Algebraic
and Transcendental
Equations
3. Fixed Point Iteration Method
Procedure of Fixed Point Iteration Method:
3
Let, x x 2
1 0
Given, f ( x) x x 1
3 2
Step 2 : Choose , two real numbers 𝑎 and 𝑏
such that , 𝑓 (𝑎) × 𝑓 (𝑏) < 0
3
Let, x x 2
1 0
f (1) 1 1 1 1 0
3 2
f (0) 0 0 1 1
3 2
For , a x 1, f (a) a a 1
3 2
For , b x 2 f (b) b b 1
3 2
f (2) 2 2 2 10 0
3 2
x ( x 1) 1
2
1
x 2
( x 1)
1 ( x)...
x
( x 1)
1
g ( x) x ( say )
( x 1)
1
∴ 𝑥𝑛+1 = 𝑔(𝑥𝑛 ) = … … … (2)
1 + 𝑥𝑛
Step 4 : Find g ( x) and g ( x) 1 for x a, b
1
g ( x)
( x 1)
Find g ( x) and check g ( x) 1 for x a, b
d d 1
g ( x)
dx dx ( x 1)
1 1
d 1 1
g ( x) ( x 1) 2
( x 1) 2
dx 2
3
1
( x 1) 2
2
3
1
g ( x ) (1 x) 2
2 Find g ( x) and check g ( x) 1 for x a, b
3
1
g ( x ) (1 x) 2
2
𝑥𝑛+1 = 𝑔 𝑥𝑛 … … … (1) 1
𝑥𝑛+1 = 𝑔(𝑥𝑛 ) = … … … (2)
1 + 𝑥𝑛
Putting 𝑛 = 0, and let the initial value
𝑥 = 𝑥0 in equation (1) For, 𝑛 = 0, and 𝑥 = 𝑥0 = 0 (say)
[From interval 0,1 ] in equation (2)
𝑥0+1 = 𝑔 𝑥0 1
First approximatevalue , x1 g ( x0 )
𝑥1 = 𝑔 𝑥0 1 x0
1
for x0 0 x1 g (0) 1
Putting , 𝑛 = 0 and then take 1 0
initial value and then find
first approximate value.
Step 5 (Remain Part) :
1 1
Therefore the iterative formula for successive x6 g ( x5 ) 0.7548
approximation method is, 1 0.7554 1.7554
1 1
∴ 𝑥𝑛+1 = 𝑔 𝑥𝑛 for 𝑛 = 0,1,2,3, … … etc x7 g ( x6 ) 0.7549
1 0.7548 1.7548
Here, 𝑥𝑛+1 is the 𝑛 + 1 − 𝑡ℎ approximation of the
desired root of 𝑓(𝑥) = 0 1 1
x8 g ( x7 ) 0.7549
1 0.7549 1.7548
Step 6 : We shall continue this iterative cycle until the values of two successive
approximations are almost equal.
1 1
x7 g ( x6 ) 0.7549
1 0.7548 1.7548
1 1
x8 g ( x7 ) 0.7549
1 0.7549 1.7548
sin ce , x7 x8
Hence the require root is 0.7549.
f ( x) Sin x 5 x 2
Since 𝑓(0) and 𝑓(1) are the opposite sign , So the root lies on [0, 1]
Step 3 : Test
Now we rewrite the equation f(x) = 0
2 Sin x
Step 2: g ( x)
Sin x 5 x 2 0 5
d 2 Sin x g ( x) 1 d 2 Sin x
Sin x 5 x 2 0
d
g ( x)
dx dx 5 5 dx
5 x 2 Sin x 1 d d
( 2 Sin x )
5 dx dx
5 x 2 Sin x 1 1
(0 cos x ) cos x
2 Sin x 5 5
x
5 1
g ( x) cos x
5
1
g ( x) cos x
2 Sin x 5
x
5 1
cos 0 for (0,1)
2 Sin x 5
g ( x) x ..........(1)
5 1
g ( x) .1 1 for (0,1)
5
You have to do mode
Step 4: on radian to your
calculator
We take Initial Value, 𝑥 = 𝑥0 = 0.5
Then successive approximation using fixed point iteration method are tabulated below.
Step 5:
2 + sin 𝑥𝑛
Values of n Valuesof xn 𝑥𝑛+1 = 𝑔 𝑥𝑛 =
5
0 𝒙𝟎 = 𝟎. 𝟓 𝒙𝟏 = 𝟎. 𝟒𝟗𝟓𝟖𝟖𝟓𝟏𝟎𝟕
1 𝒙𝟏 = 𝟎. 𝟒𝟗𝟓𝟖𝟖𝟓𝟏𝟎𝟕 𝒙𝟐 = 𝟎. 𝟒𝟗𝟓𝟏𝟔𝟐𝟎𝟔𝟔𝟑
2 𝒙𝟐 = 𝟎. 𝟒𝟗𝟓𝟏𝟔𝟐𝟎𝟔𝟔𝟑 𝒙𝟑 = 𝟎. 𝟒𝟗𝟓𝟎𝟑𝟒𝟖𝟓𝟏𝟕
3 𝐱 𝟑 = 𝟎. 𝟒𝟗𝟓𝟎𝟑𝟒𝟖𝟓𝟏𝟕 𝒙𝟒 = 𝟎. 𝟒𝟗𝟓𝟎𝟏𝟐𝟒𝟔𝟑
4 𝑥4 = 𝟎. 𝟒𝟗𝟓𝟎𝟏𝟐𝟒𝟔𝟑 𝒙𝟓 = 𝟎. 𝟒𝟗𝟓𝟎𝟎𝟖𝟓𝟐𝟑𝟖
5 𝒙𝟓 = 𝟎. 𝟒𝟗𝟓𝟎𝟎𝟖𝟓𝟐𝟑𝟖 𝒙𝟔 = 𝟎. 𝟒𝟗𝟓𝟎𝟎𝟕𝟖𝟑𝟎𝟒
Since 𝑥6 − 𝑥5 ≈ 0.000001
Hence the root of the given equation is equal to 0.49501.
Problem 2:
Find the real root of the equation 𝒙 − 𝒍𝒏 𝒙 − 𝟐 = 𝟎 that lies on [3, 4] using fixed point iteration
method.
Solution: Let , f ( x) x ln x 2 0
Now,
x ln x 2 0
1
x ln x 2 g ( x) 0
x
g ( x ) x ln x 2 ( say ) 1
g ( x)
x
For (3, 4)
1
g (3) 1
3
Then successive approximation using fixed point iteration method are tabulated below.
Values of 𝑛 Valuesof xn 𝑥𝑛+1 = 𝑔 𝑥𝑛 = ln 𝑥𝑛 + 2
0 𝒙𝟎 = 𝟑 𝒙𝟏 = 𝟑. 𝟎𝟗𝟖𝟔𝟏𝟐𝟐𝟖𝟗
1 𝒙𝟏 = 𝟑. 𝟎𝟗𝟖𝟔𝟏𝟐𝟐𝟖𝟗 𝒙𝟐 = 𝟑. 𝟏𝟑𝟎𝟗𝟓𝟒𝟑𝟔𝟐
2 𝒙𝟐 = 𝟑. 𝟏𝟑𝟎𝟗𝟓𝟒𝟑𝟔𝟐 𝒙𝟑 = 𝟑. 𝟏𝟒𝟏𝟑𝟑𝟕𝟖𝟔𝟔
3 𝒙𝟑 = 𝟑. 𝟏𝟒𝟏𝟑𝟑𝟕𝟖𝟔𝟔 𝒙𝟒 = 𝟑. 𝟏𝟒𝟒𝟔𝟒𝟖𝟕𝟖𝟏
4 𝒙𝟒 = 𝟑. 𝟏𝟒𝟒𝟔𝟒𝟖𝟕𝟖𝟏 𝒙𝟓 = 𝟑. 𝟏𝟒𝟓𝟕𝟎𝟐𝟐𝟎𝟗
5 𝒙𝟓 = 𝟑. 𝟏𝟒𝟓𝟕𝟎𝟐𝟐𝟎𝟗 𝒙𝟔 = 𝟑. 𝟏𝟒𝟔𝟎𝟑𝟕𝟏𝟒𝟑
6 𝒙𝟔 = 𝟑. 𝟏𝟒𝟔𝟎𝟑𝟕𝟏𝟒𝟑 𝒙𝒙𝟕𝟕 == 𝟑.
𝟑.𝟏𝟒𝟔𝟏𝟒𝟑𝟔𝟏𝟏
𝟏𝟒𝟔𝟏𝟒𝟑𝟔𝟏𝟏
7 𝒙𝟕 = 𝟑. 𝟏𝟒𝟔𝟏𝟒𝟑𝟔𝟏𝟏 𝒙𝒙𝟖𝟖 =
= 𝟑.
𝟑.𝟏𝟒𝟔𝟏𝟕𝟕𝟒𝟓𝟐
𝟏𝟒𝟔𝟏𝟕𝟕𝟒𝟓𝟐
Since 𝑥8 − 𝑥7 ≈ 0.00001
Hence the root of the given equation is equal to 3.1462
Algorithm for Iteration method:
Steps Task
01 Define 𝑔(𝑥)
02 Read initial value, 𝑥0
03 Set 𝑛 = 0
04 𝑥𝑛+1 = 𝑔(𝑥𝑛 )
05 If 𝑥𝑛+1 − 𝑥𝑛 ≈ 0.0001
Then go to step 6
Else
𝑛 =𝑛+1
Go to step 4
End if