Professional Documents
Culture Documents
APPLICATIONS
(MEC500)
b b 2 4ac
x
2a
To solve
f (x) ax 2 bx c 0
GRAPHICAL BRACKETING
OPEN METHODS
METHODS METHODS
ONE-POINT
BISECTION
ITERATION (FIXED
METHOD
POINT) METHOD
FALSE-POSITION NEWTON-RAPHSON
METHOD METHODD
SECANT METHOD
MODIFIED
NEWTON-RAPHSON
METHOD
(MULTIPLE ROOTS)
Graphical Method
A simple method for obtaining the rough estimate of the root of the equation
f(x)=0 observe where it crosses the x-axis.
Graphs can also indicate where roots may be and where some root-finding
methods may fail.
In general, if xl = lower bound & xu= upper bound
f(xl) & f(xu) have same sign
no root or even number of roots
f(xl) & f(xu) have different sign
odd number of roots
Graphical Method
Graphical method only provides rough estimates of the roots
Useful for initial guess for NM lack of precision!
Alternative method–trial & error (guessing repeatedly the value of x and
evaluate whether f(x) = 0) inefficient!
Combine these methods + computer NM
Example 1
Graphical Method
c f(c)
9.8(68.1) 4 34.115
f (c) (1 e(c / 68.1)10 ) 40
c 8 17.653
Various values of c can be substituted 12 6.067
to gather: 16 -2.269
20 -8.401
Example 1
Graphical Method
These points are plotted.
Visual inspection of the plot provides a rough
estimate of the root of 14.75.
The validity of the graphical estimate can be
checked by substituting it into Eq. before and yield:
9.8(68.1)
f (c) (1 e(14.75 / 68.1)10 ) 40 0.059
14.75
which is close to zero
Bracketing Method
Bracketing methods are based on making two initial
guesses that “bracket” the root -that is, are on either side of
the root.
Brackets are formed by finding two guesses xl and xu where
the sign of the function changes, that is:
f (xl ) f (xu ) 0
Point of
f (x) (x 2)(x 2)(x 4) discontinuity
xrnew xrold
a new 100%
xr
Ea x 0
= absolute error
Ena n
n =2iteration number
Δx0 = zero iteration error = xu-xl
x 0
n logE2a,d= desired
error
Ea,d
n = iteration number
Δx0 = zero iteration error = xu-xl
Example 2
Bisection Method
From example 1, we observed that the root, c is between 12 and 16
(through visual inspection). [Note: True root = 14.7802]
The initial estimate of the root x, lies at the midpoint of the interval:
xl xu 12 16
xr 14
2 2
14.7802 14
t 100% 5.3%
14.7802
Evaluate f(xl).f(xr)
xrnew xrold
a new 100%
xr
f (xl ) f (xu )
xr xl xr xu
False Position Method
The value of xr then replaces whichever of the two initial
guesses yields a function value with the same sign as f(xr).
If a real root is bounded by xl & xu,
approximate the solution by a linear interpolation
between xl & xu
f (xu )(xl xu )
xr xu
f (xl ) f (xu )
False Position Method
1. Choose a pair of values of xl and xu such that they always bracket the
root. (i.e. f(xl).f(xu) <0).
2. Estimate the root using
f (xu )(xl xu )
xr xu
f (xl ) f (xu )
Disadvantages
One-sideness–one bracketing point will tend to stay
fixed
can lead to poor convergence, especially for
functions with significant curvature.
First iteration:
xl 12 f (xl ) 6.0699
xu 16 f (xu ) 2.2688
2.2688(12 16)
xr 16 14.9113
6.0669 (2.2688)
Which has a true relative error of 0.89 %
Example 3
False Position Method
Second iteration:
Therefore the root lies in the first subinterval and xr becomes the
upper limit for the next iteration, xu = 14.9113:
xl 12 f (xl ) 6.0699
xu 14.9113 f (xu ) 0.2543
0.2543(12 14.9113)
xr 14.9113 14.7942
6.0669 (0.2543)
which has true and approximate
relative errors of 0.09 and 0.79
percent. Additional iterations can be performed to refine the
estimate of the roots.
Bisection vs. False Position
The error for false position decreases much
faster than bisection because of the more
efficient scheme for root location in the false-
position method.
In the bisection method that the interval between
xl and xu grew smaller during the course of a
computation.
f (x) x10 1
False position is based on the premise that:
If f(xl) is closer to zero than f(xu), then the root is closer to xl
than to xu.