Class Session File
Class Session File
Numerical Analysis
Lesson #: 5
Title: Bi-section method
𝑎+𝑏
Choose initial values for ‘a’ and ‘b’, let a = 0 , c =
and b =
2 1
Error (b-
Iteration a f(a) b f(b) c f(c) f(a)xf(c) f(b)xf(c)
a)
1 0 1 0.5
6
Solution ( ) 2
𝑓 𝑥 =4 𝑥 +3 𝑥 − 3
Choose initial values for ‘a’ and ‘b’, let a = 0 , and b = 1
Since f(a) x f(b) < 0, we have at least one root between 0
and 1. a
Iteratio
f(a) b f(b) c f(c) f(a)xf(c)
f(b)xf(
Error (b-a)
n c)
0.562 0.625-
4 0.5 -0.5 0.625 0.4375 -0.0469 + -
5 0.5=0.125
0.562 - 0.593 0.625-
5 0.625 0.4375 0.1918 - +
5 0.0469 8 0.5625=0.063
0.562 - 0.593 0.578 0.5938-
6 0.1918 0.07148 - +
5 0.0469 8 2 0.5625=0.03
Therefore, x = 0.5782
Solution ( ) 2
𝑓 𝑥 =4 𝑥 +3 𝑥 − 3
Choose initial values for ‘a’ and ‘b’, let a = 0 , and b = 1
Since f(a) x f(b) < 0, we have at least one root between 0
and 1. a
Iteratio
f(a) b f(b) c f(c) f(a)xf(c)
f(b)xf(
Error (b-a)
n c)
0.562 0.625-
4 0.5 -0.5 0.625 0.4375 -0.0469 + -
5 0.5=0.125
0.562 - 0.593 0.625-
5 0.625 0.4375 0.1918 - +
5 0.0469 8 0.5625=0.063
0.562 - 0.593 0.578 0.5938-
6 0.1918 0.07148 - +
5 0.0469 8 2 0.5625=0.03
Therefore, x = 0.5782
Classwork
• Find the left most root of the function using bi-section
method to an error level of 0.05.
• let a= -2, b = 0
2
( )
Solution 𝑓 𝑥 =4 𝑥 +3 𝑥 − 3
𝑎+𝑏
Choose initial values for ‘a’ and ‘b’, let a = 0 , c=
and b =2 1
Error (b-
Iteration a f(a) b f(b) c f(c) f(a)xf(c) f(b)xf(c)
a)
1 -2 0 -1
7
Solution ( ) 2
𝑓 𝑥 =4 𝑥 +3 𝑥 − 3
𝑎+𝑏
Choose initial values for ‘a’ and ‘b’, let a = 0 , and
c=b =2 1
Error (b-
Iteration a f(a) b f(b) c f(c) f(a)xf(c) f(b)xf(c)
a)
1 -2 7 0 -3 -1 -2 - + 2
2 -2 7 -1 -2 -1.5 1.5 + - 1
-
5 -1.375 0.4375 -1.25 -0.5 -1.3125 - + 0.125
0.04688
- - 0.19140
6 -1.375 0.4375 -1.3125 + - -0.0625
0.04688 1.34375 6
-
- 0.19140 - 0.07128
7 -1.3125 1.32812 + - 0.03125
1.34375 6 0.04688 9
Therefore, x = -1.3281255
End of Class