Bisection Method Interval Halving
Bisection Method Interval Halving
2
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
3
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
4
Bisection Method
If the function is continuous on [a,b] and f (a) and
f (b) have different signs, then bisection method
obtains a new interval that is half of the current
interval and the sign of the function at the end points
of the interval are different.
5
Bisection Algorithm
1. Let a and b be such that f(a)∙f(b) < 0.
ab
2. Compute the midpoint c
2 f (a)
3. Evaluate f (c)
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
10
Find the root of f ( x) x 3 in the interval [1,2]
2
11
Find the root of f ( x) x 3 in the interval [1,2]
2
12
Find the root of f ( x) x 3 in the interval [1,2]
2
13
Find the root of f ( x) x 3 in the interval [1,2]
2
14
Solve e x 3.2sin x 0.5cos x 0 in the interval [3,4]
Stop until the desired accuracy is less than 0.001.
15
Solve e x 3.2sin x 0.5cos x 0 in the interval [3,4]
Stop until the desired accuracy is less than 0.001.
16
Solve e x 3.2sin x 0.5cos x 0 in the interval [3,4]
Stop until the desired accuracy is less than 0.001.
17
Solve e x 3.2sin x 0.5cos x 0 in the interval [3,4]
Stop until the desired accuracy is less than 0.001.
18
Solve e x 3.2sin x 0.5cos x 0 in the interval [3,4]
Stop until the desired accuracy is less than 0.001.
19
Solve e x 3.2sin x 0.5cos x 0 in the interval [3,4]
Stop until the desired accuracy is less than 0.001.
20
Solve e x 3.2sin x 0.5cos x 0 in the interval [3,4]
Stop until the desired accuracy is less than 0.001.
21