Professional Documents
Culture Documents
Roots of Equations - Bisection Method
Roots of Equations - Bisection Method
Chapter 2
Roots of Equations
- Bisection Method
6/10/2019
2 Roots of Equations
x=?
root
6/10/2019
3 Bracketing Methods
6/10/2019
4 Bisection Method
f (x)
f ( xu )
xl xu
f ( xl )
root
6/10/2019
5 Bisection Method
f ( xu )
f (x)
xl xu
f ( xl )
root
The bisection method is one type of incremental search
method in which the interval is divided in half. If a function
changes sign over an interval, the function value at the
midpoint is evaluated. The location of the root is then
determined as lying at the midpoint of the subinterval within
which the sign change occurs. The process is repeated to
obtain refined estimates.
6/10/2019
6 Bisection Method
xl xu
xr
2
6/10/2019
7 Bisection Method
f (x)
f ( xu ) ve
f ( xr ) ve
xl xr xu
f ( xl ) ve
root
6/10/2019
8 Bisection Method
f (x)
f ( xu ) ve
f ( xr ) ve
xl xr xu
root
f ( xl ) ve
6/10/2019
9 Bisection Method
f (x)
f ( xu ) ve
f ( xr ) 0
xl xr xu
f ( xl ) ve root
6/10/2019
10 Termination Criteria and
Error Estimates
6/10/2019
11 Example 1
6/10/2019
12 Solution
6/10/2019
13 Solution
Second iteration:
xl xu 0 0.5
xr 0.25
2 2
0.25 0.5
a 100% 100% s
0.25
f ( xl ) f ( xr ) f (0) f (0.25) 2(0.734375) 1.46875 0
6/10/2019
14 Solution
Third iteration:
0.25 0.5
xr 0.375
2
0.375 0.25
a 100% 33.33% s
0.375
f ( xl ) f ( xr ) f (0.25) f (0.375) (0.734375)(0.189453125)
0.139129638 0
The new bracket is xl 0.375 and xu 0.5
6/10/2019
15 Solution
Fourth iteration:
0.375 0.5
xr 0.4375
2
0.4375 0.375
a 100% 14.29% s
0.4375
f ( xl ) f ( xr ) f (0.375) f (0.4375) (0.189453125)(0.086669921)
0.016419887 0
6/10/2019
16 Solution
Fifth iteration:
0.375 0.4375
xr 0.40625
2
0.40625 0.4375
a 100% 7.6923% s
0.40625
6/10/2019
17 Example 2
6/10/2019
18 Solution
First iteration:
xl xu 0.5 1
xr 0.75
2 2
f ( xl ) f ( xr ) f (0.5) f (0.75) (0.354426)(0.2597638) 0.092067 0
6/10/2019
19 Solution
Second iteration:
xl xu 0.75 1
xr 0.875
2 2
0.875 0.75
a 100% 14.29% s
0.875
f ( xl ) f ( xr ) f (0.75) f (0.875) (0.259764)(0.0976216) 0.025359 0
6/10/2019
20 Solution
All the iterations are shown below:
Iteration xl xu xr f ( xl ) f ( xu ) f ( xl ) f ( xu ) a
1 0.5 1 0.75 + + +
2 0.75 1 0.75 + + + 14.29
3 0.87 0.875 1 0.9375 + - - 6.67
4 0.875 0.9375 0.90625 + + + 3.45
5 0.90625 0.9375 0.921875 + + + 1.69
6/10/2019
21 Solution
6/10/2019