Bisection Method Interval Halving
Bisection Method Interval Halving
2
Intermediate Value Theorem
3
Notes
If f (a) and f (b) have the same
sign, the function may have an
even number of real zeros or
no real zeros in [a, b]. a b
a b
The function has no real zeros
4
Notes
If f (a) and f (b) have
different signs, then the
function has at least one
a b
real zero.
The function has one real zero
Bisection method can be
used to find one of the
zeros. a b
5
Bisection Algorithm f (a)
f (a) 6
Stopping Criteria
Two common stopping criteria
7
Example
Can you use Bisection method to find a zero of
f ( x) = x 2 − 3 in the interval [0,1]?
Answer:
f ( x) is continuous on [0,1]
and f (0) f (2) = (-3)(-2) = 6 0
Assumptions are not satisfied
Bisection method can not be used
8
Example
Can you use Bisection method to find a zero of
f ( x) = x 2 − 3 in the interval [1,2]?
Answer:
f ( x) is continuous on [1,2]
and f (1) f (2) = (-2)(1) = −2 0
Assumptions are satisfied
Bisection method can be used
9
Find the root of f ( x) = x − 3 in the interval [1,2]
2
│ Ea │
10
Solve e− x ( 3.2sin x − 0.5cos x ) = 0 in the interval [3,4]
Stop until the desired accuracy │Ea│ is less than 0.001.
│ Ea │
11