Nepedia
Back to Discover
Fluent Reader
🔢

Bisection method

math Maturity 7-9 Next article →

Sometimes we need to find a very specific spot on a line. In math, we call this spot a root. A root is where a continuous function equals zero. To find it, we use the bisection method. This method is also called the interval halving method. Some people call it the binary search method or the dichotomy method. It is a very simple and robust way to find an answer. However, it can be a relatively slow process.

To start, you must find two values that bracket a root. These values must have opposite signs. One value must be positive and the other must be negative. This works because of the intermediate value theorem. This theorem says a continuous function must cross zero between those points. First, you find the midpoint of your two values. You then check the value of the function at that midpoint. If the midpoint is the root, you are finished.

If the midpoint is not the root, you must look at the signs. You check if the midpoint and your original points have opposite signs. You then select the new, smaller interval that contains the sign change. This new interval is guaranteed to bracket the root. Each step reduces the width of your interval by 50%. You repeat this many times to get closer to the answer. You stop when the interval is small enough for your needs.

There are different ways to decide when to stop. Burden and Faires wrote about this in 2016. They identified three main stopping conditions. One is called absolute tolerance. Another is called relative tolerance. Relative tolerance is often the best choice if you do not know the root's value. You can also use the absolute difference between points. These rules help you decide when your answer is accurate enough.

This method can even work in many dimensions. These are called generalized bisection methods. Some versions use something called a characteristic polyhedron. For example, in two dimensions, this might be a quadrilateral. The method uses the signs of the function at the corners. It picks an edge and finds a new midpoint. This helps find roots in more complex spaces. It is a reliable way to start a hard math job.

373 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

More to explore

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.