The bisection method is a straightforward and reliable numerical technique used to find roots (solutions) of continuous functions. It works by repeatedly dividing an interval in half and selecting the subinterval where the function changes sign, thereby narrowing down the location of the root.
Example
Given Function
Error Margin is 0.01
Step 1 : Rearranging the Equation:
f(x)=x2−4=0 Step 2 : Choose Initial Points
To apply the Bisection Method, we first need to choose two initial points a and b such that:
f(a) and f(b) have opposite signs. lets's choose a=0 and b=3
f(0)=02−4=−4 (negative) f(3)=32−4=5 (positive) Since f(0)<0 and f(3)>0, we can proceed.
Step 3 : Calculate Midpoint
Next, we calculate the midpoint C of the interval [ a , b ] :
C=2a+b=20+3=1.5 Step 4 : Update the Interval
Since f(a)<0 and f(C)<0, we know that the root must lie in the interval [ C , b ] :
Set a=C=1.5 Step 5 : Repeat the Process
We repeat the steps:
- Calculate new midpoint:
C=21.5+3=2.25 - Evaluate function:
f(2.25)=(2.25)2−4=5.0625−4=1.0625 - Update interval:
Since f(1.5)<0 and f(2.25)>0 set b=C=2.25
Step 6 : Continuing the Process
Continuing this process, we narrow down the interval:
- Calculate new midpoint:
C=21.5+2.25=1.875 - Evaluate function:
f(1.875)=(1.875)2−4=3.515625−4=−0.484375 - Update interval:
Since f(1.875)<0 and f(2.25)>0, set a=2.25
Continue until Desired Accuracy
Continue this process until the difference between 𝑎 and 𝑏 is less than a desired tolerance (for example,0.01).
Eventually, you will converge on the root:
Conclusion
The Bisection Method is an efficient way to find the root of a function defined by a continuous equation. In this case, we demonstrated it for x2=4 and found that the root is x=2 The method guarantees convergence as long as you start with points that bracket the root, making it a reliable technique for root-finding problems.