Fixed Point Iteration: Roots of Equation
Fixed Point Iteration: Roots of Equation
Fixed Point Iteration: Roots of Equation
Roots of Equation
Asifur Rahman
CEN 205 Numerical Methods Asifur Rahman January 18, 2017 1/4
Fixed Point Iteration Fixed Point Iteration
Steps
1. Express the given f(x) = 0 in the form of x = g(x)
2. Assume a reasonable value of root, xo
3. Determine new root using, xn = g(xo )
4. Repeat Step 3 using xo = xn
CEN 205 Numerical Methods Asifur Rahman January 18, 2017 2/4
Example 1 Fixed Point Iteration
Iteration 1
xo = 1
√ √
4
xn = 4 x + 4 = 1 + 4 = 1.4953
1.4953 − 1
a = = 33.12%
1.4953
Iteration 2
xo = 1.4953
√ √4
xn = 4 x + 4 = 1.4953 + 4 = 1.5311
1.5311 − 1.4953
a = = 2.33%
1.5311
i xo xn a
1 1.0000 1.4953 33.1260
2 1.4953 1.5311 2.3339
3 1.5311 1.5336 0.1619
4 1.5336 1.5337 0.0112
CEN 205 Numerical Methods Asifur Rahman January 18, 2017 3/4
Example 2 Fixed Point Iteration
Iteration 1
xo = 1
q q
xn = ex /3 = e(1) /3 = 0.9519
0.9519 − 1
a = = 5.05%
0.9519
Iteration 2
xo = 0.9519
q q
xn = ex /3 = e(0.9519) /3 = 0.9293
0.9293 − 0.9519
a = = 2.43%
0.9293
i xo xn a
1 1.0000 0.9519 5.0542
2 0.9519 0.9293 2.4347
3 0.9293 0.9188 1.1377
4 0.9188 0.9140 0.5240
CEN 205 Numerical Methods Asifur Rahman January 18, 2017 4/4