In mathematics, the bisection method is a root-finding method that applies to any continuous function for which one knows two values with opposite signs. The method consists of repeatedly bisecting the interval defined by these values, then selecting the subinterval in which the function changes sign, which therefore must contain a root. It is a very simple and robust method, but it is also relatively slow. Because of this, it is often used to obtain a rough approximation to a solution which is then used as a starting point for more rapidly converging methods. [1] The method is also called the interval halving method, [2] the binary search method , [3] or the dichotomy method. [4]
For polynomials, more elaborate methods exist for testing the existence of a root in an interval (Descartes' rule of signs, Sturm's theorem, Budan's theorem). They allow extending the bisection method into efficient algorithms for finding all real roots of a polynomial; see Real-root isolation.
The method is applicable for numerically solving the equation for the real variable , where is a continuous function defined on an interval and where and have opposite signs. In this case and are said to bracket a root since, by the intermediate value theorem, the continuous function must have at least one root in the interval .
At each step the method divides the interval in two parts/halves by computing the midpoint of the interval and the value of the function at that point. If itself is a root then the process has succeeded and stops. Otherwise, there are now only two possibilities: either and have opposite signs and bracket a root, or and have opposite signs and bracket a root. [5] The method selects the subinterval that is guaranteed to be a bracket as the new interval to be used in the next step. In this way an interval that contains a zero of is reduced in width by 50% at each step. The process is continued until the interval is sufficiently small.
Explicitly, if then may be taken as the solution and the process stops.
Otherwise, if and have the same signs,
In both cases, the new and have opposite signs, so the method may be applied to this smaller interval. [6]
Once the process starts, the signs at the left and right ends of the interval remain the same for all iterations.
In order to determine when the iteration should stop, it is necessary to consider various possible stopping conditions with respect to a tolerance (). Burden and Faires (2016) identify the three stopping conditions: [7]
does not give an accurate result to within unless . The other two possibilities represent different concepts: the absolute difference says that c and a are the same to decimal places, while the relative difference says that c and a are the same to significant figures. [8] If nothing is known about the value of the root, then relative tolerance is the best stopping condition. [9]
The input for the method is a continuous function and an interval , such that the function values and are of opposite sign (there is at least one zero crossing within the interval). Each iteration performs these steps:
Suppose that the bisection method is used to find a root of the polynomial
First, two numbers and have to be found such that and have opposite signs. For the above function, and satisfy this criterion, as
and
Because the function is continuous, there must be a root within the interval [1, 2]. Iterating the biscetion method on this interval gives increasingly accurate approximations:
| Iteration | ||||
|---|---|---|---|---|
| 1 | 1 | 2 | 1.5 | −0.125 |
| 2 | 1.5 | 2 | 1.75 | 1.6093750 |
| 3 | 1.5 | 1.75 | 1.625 | 0.6660156 |
| 4 | 1.5 | 1.625 | 1.5625 | 0.2521973 |
| 5 | 1.5 | 1.5625 | 1.5312500 | 0.0591125 |
| 6 | 1.5 | 1.5312500 | 1.5156250 | −0.0340538 |
| 7 | 1.5156250 | 1.5312500 | 1.5234375 | 0.0122504 |
| 8 | 1.5156250 | 1.5234375 | 1.5195313 | −0.0109712 |
| 9 | 1.5195313 | 1.5234375 | 1.5214844 | 0.0006222 |
| 10 | 1.5195313 | 1.5214844 | 1.5205078 | −0.0051789 |
| 11 | 1.5205078 | 1.5214844 | 1.5209961 | −0.0022794 |
| 12 | 1.5209961 | 1.5214844 | 1.5212402 | −0.0008289 |
| 13 | 1.5212402 | 1.5214844 | 1.5213623 | −0.0001034 |
| 14 | 1.5213623 | 1.5214844 | 1.5214233 | 0.0002594 |
| 15 | 1.5213623 | 1.5214233 | 1.5213928 | 0.0000780 |
After 13 iterations, it becomes apparent that there is a convergence to about 1.521: a root for the polynomial.
The bisection method has been generalized to multi-dimensional functions. Such methods are called generalized bisection methods. [10] [11]
Some of these methods are based on computing the topological degree. [12]
The characteristic bisection method uses only the signs of a function in different points. Lef f be a function from Rd to Rd, for some integer d ≥ 2. A characteristic polyhedron [13] (also called an admissible polygon) [14] of f is a polyhedron in Rd, having 2d vertices, such that in each vertex v, the combination of signs of f(v) is unique. For example, for d=2, a characteristic polyhedron of f is a quadrilateral with vertices (say) A,B,C,D, such that:
A proper edge of a characteristic polygon is a edge between a pair of vertices, such that the sign vector differs by only a single sign. In the above example, the proper edges of the characteristic quadrilateral are AB, AC, BD and CD. A diagonal is a pair of vertices, such that the sign vector differs by all d signs. In the above example, the diagonals are AD and BC.
At each iteration, the algorithm picks a proper edge of the polyhedron (say, A--B), and computes the signs of f in its mid-point (say, M). Then it proceeds as follows:
Suppose the diameter (= length of longest proper edge) of the original characteristic polyhedron is . Then, at least bisections of edges are required so that the diameter of the remaining polygon will be at most . [14] : 11, Lemma.4.7
⊤