The problem of finding an approximation to the root of an equation can be traced back at least to 1700 B.C.E.
A cuneiform table in the Yale Babylonian Collection dating from that period gives a sexigesimal (base-60) number equivalent to 1.414222
as an approximation to 2
a result that is accurate to within 10−5.
The Bisection Method
Overview
We first consider the Bisection (Binary search) Method which is based on the Intermediate Value Theorem (IVT).
Suppose a continuous function f, defined on [a,b] is given with f(a) and f(b) of opposite sign.
By the IVT, there exists a point p∈(a,b) for which f(p)=0. In what follows, it will be assumed that the root in this interval is unique.
Intermediate Value Theorem
If f∈C[a,b] and K is any number between f(a) and f(b), then there exists a number c∈(a,b) for which f(c)=K.
Bisection Technique
Main Assumptions
Suppose f is a continuous function defined on the interval [a,b], with f(a) and f(b) of opposite sign.
The Intermediate Value Theorem implies that a number p exists in (a,b) with f(p)=0.
Although the procedure will work when there is more than one root in the interval (a,b), we assume for simplicity that the root in this interval is unique.
The method calls for a repeated halving (or bisecting) of subintervals of [a,b] and, at each step, locating the half containing p.
Computational Steps
To begin, set a1=a and b1=b, and let p1 be the midpoint of [a,b]; that is,
p1=a1+2b1−a1=2a1+b1.
If f(p1)=0, then p=p1, and we are done.
If f(p1)=0, then f(p1) has the same sign as either f(a1) or f(b1).
If f(p1) and f(a1) have the same sign, p∈(p1,b1). Set a2=p1 and b2=b1.
If f(p1) and f(a1) have opposite signs, p∈(a1,p1). Set a2=a1 and b2=p1.
Then re-apply the process to the interval [a2,b2], etc.
The Bisection Method to solve f(x)=0
Interval Halving to Bracket the Root
Given the function f defiend on [a,b] satisfying f(a)f(b) < 0.
The Bisection Method
Comment on Stopping Criteria for the Algorithm
Other stopping procedures can be applied in Step 4.
For example, we can select a tolerance ϵ>0 and generate p1,…,pN until one of the following conditions is met:
∣pN−pN−1∣∣pN∣∣pN−pN−1∣∣f(pN)∣<ϵ<ϵ,pN=0, or <ϵ
Without additional knowledge about f or p, Inequality (2) is the best stopping criterion to apply because it comes closest to testing relative error.
Solving f(x)=x3+4x2−10=0
Example: The Bisction Method
Show that f(x)=x3+4x2−10=0 has a root in [1,2] and use the Bisection method to determine an approximation to the root that is accurate to at least within 10−4.
Relative Error Test
Note that, for this example, the iteration will be terminated when a bound for the relative error is less than 10−4, implemented in the form: ∣pn∣∣pn−pn−1∣<10−4
Bisection Method applied to f(x)=x3+4x2−10
Solution
Because f(1)=−5 and f(2)=14 the Intermediate Value Theorem ensures that this continuous function has a root in [1,2]. -ivt
For the first iteration of the Bisection method we use the fact that at the midpoint of [1,2] we have f(1.5)=2.375>0.
This indicates that we should select the interval [1,1.5] for our second iteration.
Then we find that f(1.25)=−1.796875 so our new interval becomes [1.25,1.5], whose midpoint is 1.375.
Continuing in this manner gives the values shown in the following table.
After 13 iterations, p13=1.365112305 approximates the root p with an error
so the approximation is correct to at least within 10−4.
The correct value of p to nine decimal places is p=1.365230013
Intermediate Value Teorem
If f∈C[a,b] and K is any number between f(a) and f(b), then there exists a number c∈(a,b) for which f(c)=K
Theretical Result for the Bisction Method
Theorem
Suppose that f∈C[a,b] and f(a)⋅f(b)<0. The Bisection method generates a sequence {pn}n=1∞ approximating a zero p of f with
∣pn−p∣≤2nb−a, when n≥1.
Proof.
For each n≥1, we have
bn−an=2n−11(b−a) and p∈(an,bn).
Since pn=21(an+bn) for all n≥1, it follows that
∣pn−p∣≤21(bn−an)=2nb−a.
Rate of Convergence
Because
∣pn−p∣≤(b−a)2n1,
the sequence {pn}n=1∞ converges to p with rate of convergence O(2n1); that is,
pn=p+O(2n1).
Conservative Error Bound
It is important to realize that the theorem gives only a bound for approximation error and that this bound might be quite conservative.
For example, this bound applied to the earlier problem, namely where
f(x)=x3+4x2−10
ensures only that
∣p−p9∣≤292−1≈2×10−3
but the actual error is much smaller:
∣p−p9∣=∣1.365230013−1.365234375∣≈4.4×10−6
Example: Using the Error Bound
Determine the number of iterations necessary to solve f(x)=x3+4x2−10=0 with accuracy 10−3 using a1=1 and b1=2.
Solution
We we will use logarithms to find an integer N that satisfies
∣pN−p∣≤2−N(b−a)=2−N<10−3.
Logarithms to any base would suffice, but we will use base-10 logarithms because the tolerance is given as a power of 10 .
Since 2−N<10−3 implies that log102−N<log1010−3=−3, we have −Nlog102<−3 and N>log1023≈9.96
Hence, ten iterations will ensure an approximation accurate to within 10−3.
The earlier numerical results show that the value of p9=1.365234375 is accurate to within 10−4.
Again, it is important to keep in mind that the error analysis gives only a bound for the number of iterations.
In many cases, this bound is much larger than the actual number required.
Final Remarks
The Bisection Method has a number of significant drawbacks.
Firstly it is very slow to converge in that N may become quite large before p−pN becomes sufficiently small.
Also it is possible that a good intermediate approximation may be inadvertently discarded.
It will always converge to a solution however and, for this reason, is often used to provide a good initial approximation for a more efficient procedure.
이분법은 많은 중요한 결점들을 가지고 있다.
첫째, p-pN이 충분히 작아지기 전에 N이 상당히 커질 수 있다는 점에서 수렴하는 것은 매우 느리다.
또한 좋은 중간 근사치가 실수로 폐기될 수 있다.
그러나 이는 항상 솔루션으로 수렴되며, 이러한 이유로 더 효율적인 절차를 위해 좋은 초기 근사치를 제공하는 데 종종 사용된다.