2- Easy introduction to Bisection method for roots findings.

Last Updated on March 4, 2025 by Maged kamel

The bisection method.

The Bisection Method is a numerical root-finding technique used to solve equations that lack analytical solutions and to find the roots of polynomial equations. It works by dividing an interval into smaller intervals and narrowing down the range of possible solutions iteratively. 

What is the bracketing method?

Introduction to bracketing method. The bracketing method is a Numerical method that represents two values of a function having opposite signs; the root will be in between. One example was solved first using the analytical process, as shown in the following two slides.

The root is the value of x when y = 0. The bracketing method depends on two values for f(x): one negative and the other positive. The required root lies between these two brackets, which is called the bracketing method.

Bisection method.

This is one of the bracketing methods. To find the root point for f(x), the bisection method can be used by taking the average value of the horizontal distance between points of brackets, substituting it for the function, and determining whether the newly created point is left bracketed or right bracketed.

Introduction to bisection method.

Then, perform a series of bisecting till the value of the function at a certain point approaches zero.

The steps for the bisection method are continued, as shown In the next slide.
Let us trace the findings after using the bisection method; when the new F(x) is either positive or -ve v, please refer to the next slide for an illustration.

The steps are followed by the bisecting method.

A solved example for the bisection method.

This is a reminder of the analytic solution for the solved example. We will find the roots by using synthetic division for f(x)=x^3-6x^2+11x-6. We have three roots for this function. The details of the estimation are shown in the next slide image.

A solved problem for bisection method.

1-Now, refer to our previous example and solve it using the bisection method. We have x = 2.50, which gives a negative value for F(x); it is a left bracket. While x=4 gives a +positive value for F(x), it is the right bracket.


Take the average value of (2.50+4)=0.50*(6.50)=3.25.

2- Get the value for f(x), when x=3.25, so f(3.25)=2.5^3+11*2.5-6=0.7031. This is a new right bracket.
3- We make sure that f(a)*f(b) is >=<0; we want to make sure that we have a negative sign, so (f(2.5)* f(3.25)=-0.375*(+0.7031)=-0.2636. The zero root is in between these two points.
Point (3.25) is a new right bracket.

4—Let us take the average between the left and right bracket points (3.25,+2.50) as the new x value x2=0.50*(3.25+2.504)=+2.875. Check whether it is a right bracket or a left bracket.
5- Get the value for f(x), when x=2.875, so f(2.875)=2.875
2.875^3+11*2.875-6=-0.20508.This is a new left bracket.

6-We make sure that f(a)*f(b) is >=<0; we want to make sure that we have a negative sign, so (f(2.5)* f(2.875)=-0.375*(-0.20508)=+0.076905.

The product is positive. A new Point (x=2.875) is a new left bracket. Then, take the average between this last point(2.875) and our right bracket, x=4. the average is 0.50*(2.875+4)=3.0625.

A solved problem for bisection method.

7-Get the value for f(x), when x=3.0625, so f(3.0625)=3.0625^3+11*3.0625-6=+0.1370.The value of 3.0625 is a new right bracket.
8-We make check that f(a)*f(b) is >=<0, between the recent left bracket(2.875) and the recent right bracket(3.0625).

We want to ensure a negative sign, so (f(2.875)* f(3.0625)=-0.0281. Since the product is negative, point (3.0625) is a new right bracket point.

Take the average between (3.0625,2.875)=2.968. Every operation is called an iteration. There are the details of iterations. For more detailed information on iterations, please refer to the following two slides.

The first three iterations by using the bisecting method.

8-Get the value for f(x), when x=2.9688 so f(2.9688)=2.9688^3+11*2.9688-6=-0.0595. The value of 2.9688 is a new left bracket.
7-We make sure that f(a)*f(b) is >=<0 between the recent left bracket (2.9688) and the recent right bracket (3.0625).
We want to ensure a negative sign, so (f(2.9688)* f(3.0625)=-0.0082. Since the product is negative, point (2.9688) is a new left bracket point. After five iterations, we get the value of x, which will give an approximate solution the value is close o 3.00.

The fourth and fifth iterations in the bisecting method.

This equation is used for the number of iterations and the relative error.
Now, for the error estimation, the number of iterations n should be bigger or equal to log10 (b0-a0)-log10(e)  of the error value the error, for a given error value of 0.001 divided all by (log 10(2).
In our example, a0 = 2.50 and b 0 =4 are the errors of tolerance for the value  0.001.

We can substitute like this: n is bigger or equal to log 10 of (4 -2.50 )* (-3). That is, log value 10 of error 0.001, which is =-3, divided by log 10 of 2 is = (—0.16 6091)—1-(-3))/0.301029, giving us 10.55, which can be approximated to 11.

The fourth and fifth iterations in the bisecting method.

Relative error equals the (x new – x old) /  x new. For x, the value is estimated to be zero f(x).

The solution is done using the analytic method for the same solved example. The x value equals 3, which is one of the roots for the x value.

The solution of the example using alanalytic solution.

The next topic is the false position, another numerical method for root findings.
This is a good external reference—a holistic numerical method.