Bisection Method
Numerical technique that approximates the root (zero) of a given function by finding values of for which .
The bisection method repeatedly bisects an interval and determines which subinterval the root lies in, eventually narrowing down the interval that the zero resides in to a desired level of precision.
While it is robust and guaranteed to converge to a solution as long as the function is continuous and changes sign over the interval, the bisection method converges slowly compared to other methods.
Algorithm
For any continuous function , there must exist at least one zero within a closed interval , where (function values are opposite signs at the ends of the interval, so the continuous graph must have crossed the x-axis at at least one point.)
1.
to find the midpoint of the current interval
2.
If is the function’s root (zero).
3.
If ,
a.
If , the function’s root (zero) lies in . Repeat step 1 for interval .
b.
Otherwise, if , the function’s root (zero) lies in . Repeat step 1 for interval .
4.
Repeat process until or , where is a predefined threshold condition for terminating the bisection algorithm.
Investigation
Extension
•
What other numerical algorithms exist for finding the zero of a function? (Newton-Raphson Method)
•
Can numerical algorithms be used for other tasks, like finding the maximum or minimum point of a function?
•
How would numerical algorithms work for multivariate functions?
•
What are the pitfalls of numerical algorithms? Are there cases where they fail to converge/terminate? When is it disadvantageous to use numerical techniques compared to analytical methods?
•
How do we define and compare the performance of numerical algorithms?