Bisection Method
Bisection Method
Bisection Method
Prianka Mandal
Lecturer
Daffodil International University
1
2
Iterative Method
• An iterative technique usually begins with an approximate value of
the root, known as the initial guess, which is then successively
corrected iteration by iteration under a certain mathematical basis
Bisection method
False position method
Newton-Raphson method
Secant method
5
Bisection Method
• One of the first numerical methods developed to find the root of a
nonlinear equation f(x)=0 was the bisection method (also called
binary-search method / binary chopping / interval halving /
Bolzano’s method).
Theorem
An equation f(x)=0, where f(x) is a real continuous function of
x, has at least one root between xl and xu and if f(xl)f(xu)<0
6
• Since the root is bracketed between two points, xl and xu one can
find the mid-point, xr between xl and xu. This gives us two new
intervals.
• Step #2:
An estimate of the root xr is determined by
𝑥𝑙 + 𝑥𝑢
𝑥𝑟 =
2
8
(a) If f(xl)f(xr)<0, the root lies in the lower subinterval. Therefore, set
xu= xr and return to step 2.
(b) If f(xl)f(xr)>0, the root lies in the upper subinterval. Therefore, set xl
= xr and return to step 2.
An Exercise
• Use the bisection approach to determine the drag
coefficient c needed for a parachutist of mass m=68.1 kg to
have a velocity of 40 m/s after free-falling for time t=10 s.
Note: The acceleration due to gravity is 9.8 m/s2
• Solution:
This problem can be solved by determining the root of Eq.
𝑔𝑚 −
𝑐
𝑡
𝑓 𝑐 = 1 −𝑒 𝑚 −𝑣
𝑐
using the parameters t=10, g=9.8, v=40, and m=68.1:
9.8(68.1) 𝑐
− 68.1 10
𝑓 𝑐 = 1 −𝑒 − 40
𝑐
667.38
or, 𝑓 𝑐 = 1 − 𝑒 −0.146843𝑐 − 40
𝑐
10
Therefore, the initial estimate of the root xr lies at the midpoint of the
interval,
12 + 16
𝑥𝑟 = = 14
2
𝑇𝑟𝑢𝑒 𝐸𝑟𝑟𝑜𝑟
Review Formula:Relative True Error (percent), εt=
𝑇𝑟𝑢𝑒 𝑉𝑎𝑙𝑢𝑒 × 100
11
14 + 16
𝑥𝑟 = = 15
2
And it continues…………..
Understand Visually
A graphical depiction of the bisection method. This plot conforms to the first three iterations
15
Another Example
• Continue the previous example until the approximate
error falls below a stopping criterion of εs = 0.5%. Use the
same equation to compute the errors.
• Solution:
Iter. xl xu xr εa (%) εt (%)
1 12 16 14 - 5.279
2 14 16 15 6.667 1.487
3 14 15 14.5 3.448 1.896
4 14.5 15 14.75 1.695 0.204
5 14.75 15 14.875 0.840 0.641
6 14.75 14.875 14.8125 0.422 0.219
• Thus, after six iterations εa finally falls below εs = 0.5%, and the
computation can be terminated.
16
Exercise
• Determine the real roots of f (x) = −0.6x2 + 2.4x + 5.5 using
bisection method for three iterations. Employ initial guesses of xl =
5 and xu = 10. Compute the estimated error εa after each iteration.
• Determine the real root of f (x) = 4x3 − 6x2 + 7x − 2.3 using bisection
to locate the root. Employ initial guesses of xl = 0 and xu = 1 and
iterate until the estimated error εa falls below a level of εs = 10%.
17
𝑇𝑟𝑢𝑒 𝐸𝑟𝑟𝑜𝑟
• Review Formula:Relative True Error (percent), εt=
𝑇𝑟𝑢𝑒 𝑉𝑎𝑙𝑢𝑒 × 100
• If one of the initial guesses is closer to the root, it will take larger
number of iterations to reach the root.
21
Thank you!!!