Professional Documents
Culture Documents
Amer Rasheed
Lecture 3
Numerical Analysis
Math344, Math541
Zero of a function
f (P ) = 0, f 0 (P ) = 0, f 00 (P ) = 0, . . . , f (M 1) (P ) = 0, and f (M ) (P ) 6= 0.
Bisection Method
Graphical Interpretation
a = a1 a2 a3 an b1 = b
b1 b2 b3 bn a1
Bisection Method
Bisection Method
2 + x ex = 0
We choose
xl = 0, xr = 3
Find
xl + xr 0+3
xm = = = 1.5
2 2
and f (xm ) = f (1.5) = 0.981689
Bisection Method
Bisection Method
Bisection Method
Bisection Theorem
Convergence of Bisection Method
Assume that f C[a, b] and there exists a number r [a, b] such that
f (r) = 0, If f (a) and f (b) have opposite signs and {cn }
n=1 represents
the sequence of midpoints generated by bisection process, then
ba
r cn < , n = 1, 2, 3, . . . .
2n+1
and therefore the sequence {cn }
n=1 converges to x = r (zero of
function), i.e.,
lim cn = r.
n
Bisection Theorem
Convergence of Bisection Method
Proof : As both r and the sequence {cn } n=1 lie in the same interval
[an , bn ], the distance between r and cn cannot be greater than half the
width of this interval, i.e.,
bn an
r cn < n = 1, 2, 3, . . . . (1)
2
Also observe that the successive interval widths form the pattern
b1 a1
b2 a2 =
21
b2 a2 b1 a1
b3 a3 = =
21 22
In general, using mathematical induction, we can show that
b1 a1
bn an = n1 , n (2)
2
Bisection Theorem
Convergence of Bisection Method
ba
r cn < , n = 1, 2, 3, . . . .
2n
Taking limit on both sides, we arrive at
lim cn = r.
n
Note : We observe that the sequence {cn}n=1 generated by bisection
1
process converges to r is of order O , i.e.,
2n
1
cn = r + O
2n
Bisection Theorem
Convergence of Bisection Method
In previous example
ln(3 0) ln(105 )
N int = 18
ln2
Bisection Theorem
|en+1 | 1
lim 1
n |en | 2
Bisection Method
Advantages/Drawbacks
Advantages
Always convergent.
The root bracket gets halved with each iteration.
Disadvantages
Slow convergence
If one of initial guess is close to the root, the convergence is even
slower.
Bisection Method
Advantages/Drawbacks
Bisection Method
Advantages/Drawbacks
an f (bn ) bn f (an )
cn =
f (bn ) f (an )
a0 f (b0 ) b0 f (a0 )
c0 = =3
f (b0 ) f (a0 )