Top Qs
Timeline
Chat
Perspective

Bisection method

Algorithm for finding a zero of a function From Wikipedia, the free encyclopedia

Bisection method
Remove ads

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]

Thumb
A few steps of the bisection method applied over the starting range [a1;b1]. The bigger red dot is the root of the function.

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.

Remove ads

The method

Summarize
Perspective

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,

  • then the method sets ,
  • else the method sets .

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.

Stopping conditions

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]

  • Absolute tolerance:
  • Relative tolerance: ||

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]

Iteration process

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:

  1. Calculate , the midpoint of the interval, ;
  2. Calculate the function value at the midpoint, ;
  3. If , return c;
  4. If convergence is satisfactory (that is, is sufficiently small), return ;
  5. Examine the sign of and replace either or with so that there is a zero crossing within the new interval.

Example

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:

More information , ...

After 13 iterations, it becomes apparent that there is a convergence to about 1.521: a root for the polynomial.

Remove ads

Generalization to higher dimensions

Summarize
Perspective

The bisection method has been generalized to multi-dimensional functions. Such methods are called generalized bisection methods.[10][11]

Methods based on degree computation

Some of these methods are based on computing the topological degree.[12]

Characteristic bisection method

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:

  • Sign f(A) = (-,-), that is, f1(A)<0, f2(A)<0.
  • Sign f(B) = (-,+), that is, f1(B)<0, f2(B)>0.
  • Sign f(C) = (+,-), that is, f1(C)>0, f2(C)<0.
  • Sign f(D) = (+,+), that is, f1(D)>0, f2(D)>0.

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:

  • If Sign f(M) = Sign(A), then A is replaced by M, and we get a smaller characteristic polyhedron.
  • If Sign f(M) = Sign(B), then B is replaced by M, and we get a smaller characteristic polyhedron.
  • Else, we pick a new proper edge and try again.

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

Remove ads

See also

References

Further reading

Loading related searches...

Wikiwand - on

Seamless Wikipedia browsing. On steroids.

Remove ads