Eq Roots
Eq Roots
Introduction
Before the advent of digital computers, there were several ways to solve for roots of
algebraic and transcendental equations. For some cases, the roots could be obtained by
direct methods, as in the case of quadratic formula for quadratic equations. Although there
were equations like this that could be solved directly, there were many more that could not.
For example, even an apparently simple function such as f x e x x cannot be solved
analytically. In such instances, the only alternative is an approximate solution technique.
One method to obtain an approximate solution is to plot the function and determine
where it crosses the x-axis. This point, which represents the x value for which f x 0 , is
the root.
y
y f x
Bracketing Methods
To find the root of a function f(x), bracketing methods exploit the fact that a function
typically changes sign in the vicinity of a root. These techniques are called bracketing
methods because two initial guesses for the root are required. As the name implies, these
guesses must “bracket” or be on either side of the root. The particular methods described
herein employ different strategies to systematically reduce the width of the bracket and,
hence, home in on the correct value.
a) The Bisector Method
If f(x) is real and continuous in the interval from xl to xu and f(xl) and f(xu) have opposite
signs, that is [f(xl)f(xu)] < 0 , then there is at least one real root between xl and xu .
Incremental search methods capitalize on this observation by locating an interval where
the function changes sign. Then the location of the sign change (and consequently the root)
is identified more precisely by dividing the interval into number of subintervals. Each of
these subintervals is searched to locate the sign change. The process is repeated and the root
estimate refined by dividing the subintervals into finer increments.
The bisector method, which is alternatively called binary chopping, interval halving is
one type of incremental search method in which the interval is always divided in half. If the
function changes sign over an interval, the function value at the midpoint is evaluated. The
location of the root is then determined as lying at the midpoint of the subinterval within
which the sign change occurs. [See Figure Below for Bisector Method]
f x f x
xl xm
x
xu
xr
xm 1 nearer to xr
f x f x
xint 1 x
xl
xr xu
xint 2 nearer to xr
k xl xu f xl f xu
1 1.000 2.000 -1.000 3.000
2 1.250 2.000 -0.797 3.000
3 1.407 2.000 -0.434 3.000
4 1.482 2.000 -0.190 3.000
5 1.513 2.000 -0.075 3.000
6 1.525 2.000 -0.028 3.000
7 1.529 2.000 -0.011 3.000
8 1.531 2.000 -0.004 3.000
9 1.532 2.000 -0.001 3.000
10 1.532 2.000 -0.001 3.000
Hence, the root is approximately 1.532; it is computed more accurately to be 1.532089