Chapter 2 - Open Methods
Chapter 2 - Open Methods
For the bracketing methods, the root is located within an interval prescribed by a lower SIMPLE FIXED POINT - ITERATION
and upper bound. Repeated application of these methods always results in closer
As mentioned above, open methods employ a formula to predict the root. Such a
estimates of the true value of the root. Such methods are said convergent they move
formula can be developed for a simple fixed-point iteration (or, as it is called, one-point
closer to the truth as the computation progresses.
iteration or successive substitution) by rearranging the function ( ) = 0 so that is
on the left-hand side of the equation:
In contrast, the open methods described in this lecture are based on formulas that
they require only a single starting value of x or two starting values that do not
= ( )
necessarily bracket the root. As such, they sometimes diverge or move away from the
true root as the computation progresses. However, when the open methods converge,
This transformation can be accomplished by either algebraic manipulation or by
they usually do so much more quickly than the bracketing methods.
simply adding x to both sided of the original equation. For example,
−2 +3 = 0
−
= %
TEST OF CONVERGENCE
Theorem: Let be a continuous function on the interval [ , ]. If ( ) ∈ [ , ] for
each ∈ [ , ], then has a fixed point in [ , ]. Furthermore, if is differentiable on
( , ) and there exists a constant < 1 such that,
| ′( )| ≤ , ∈( , )
Then g has exactly one fixed point in [ , ].
EXAMPLE:
− −1=0
EXAMPLE: THE NEWT
NEWTON – RAPHSON METHOD
2. Use simple fixed-point iteration to locate the root of ( ) = % ,&
− . Use Perhaps the most widely used of all root-locating formulas is the Newton-Raphson
'( = 0.5%. equation. If the initial guess at the root is , a tangent can be extended from the point
[ , ( )]. The point where this tangent crosses the x-axis usually represents an
improved estimate of the root.
+( )
0.5
-(
( )−0
)=
− .
0( )
/ = −
0′( )
0( ) 0′( ) /
1 3
EXAMPLE:
2. Use the Newton-Raphson method to estimate the root of ( ) = % & + − 3,
employing an initial guess of 3 = 2.
0( ) 0′( ) /
1 2
EXAMPLE:
3. Use the Newton-Raphson method to estimate the root of ( ) = % ,& − ,
employing an initial guess of 3 = 0.
0( ) 0′( ) /
1 0
THE SECANT METHOD This is the formula for the secant method. Notice that the approach requires two initial
estimates of . However, because ( ) is not required to change signs between the
A potential problem in implementing the Newton-Raphson method is the evaluation of
the derivative. Although this is not inconvenient for polynomials and many other estimates, it is not classified as a bracketing method.
functions, there are certain functions whose derivatives may be extremely difficult or
inconvenient to evaluate. For these, cases, the derivative can be approximated by a
backward finite divided difference as shown in the figure below.
( ,)− ( )
′( ) ≅
, −
( )( , − )
= −
( , )− ( )
EXAMPLE:
EXAMPLE:
1. Use the secant method to estimate the root of ( ) = 3 + ln − . Start with
initial estimates of 5 = 5 and 6 = 7. Perform three iterations. Also, compute
for the approximate error, εa.
8 0( ) 0( 8) /
1 5 7
EXAMPLE:
EXAMPLE:
2. Use the secant method to estimate the root of ( ) = % & + − 3. Start with
initial estimates of 5 = 1 and 6 = 2. Perform three iterations. Also, compute
for the approximate error, εa.
8 0( ) 0( 8) /
1 1 2
EXAMPLE:
3. Use the secant method to estimate the root of ( ) = % ,& − . Start with initial
estimates of 5 = 0 and 6 = 1.0. Perform three iterations. Also, compute for
the approximate error, εa.
8 0( ) 0( 8) /
1 0 1
THE MODIFIED SECANT METHOD
Rather than using two arbitrary values to estimate the derivative, an alternative
approach involves a fractional perturbation of the independent variable to estimate
’( ),
( +: )− ( )
′( ) ≅
:
: ( )
= −
( +: )− ( )
EXAMPLE:
EXAMPLE:
1. Use the modified secant method to estimate the root of ( ) = 3 + ln − .
Use a value of 0.01 for :and start with = 1.0. Also, compute for the
approximate error, εa.
: +: 0( ) 0( +: ) /
1 1 0.01
EXAMPLE:
EXAMPLE:
2. Use the modified secant method to estimate the root of ( ) = % & + − 3.
Use a value of 0.02 for :and start with = 2. Also, compute for the
approximate error, εa.
: +: 0( ) 0( +: ) /
1 2 0.02
EXAMPLE:
3. Use the modified secant method to estimate the root of ( ) = % ,& − . Use
a value of 0.01 for :and start with 3 = 1.0. Also, compute for '5 . Perform
three iterations.
: +: 0( ) 0( +: ) /
1 2 0.02
MULTIPLE ROOTS
A multiple root corresponds to a point where a function is tangent to the axis. For 2. Another possible problem is related to the fact that not only ( ) but also ( )
example, a double root result from: goes to zero at the root. This poses problems for both the Newton-Raphson
and secant methods, which both contain the derivative (or its estimate) in the
( ) = ( − 3)( − 1)( − 1) denominator of their respective formulas. This could result in division by zero
when the solution converges very close to the root. A simple way to
or, multiplying < terms, ( )= =
−5 + 7 − 3. circumvent these problems is based on the fact that it can be demonstrated
The equation has a double root because of the value theoretically (Ralston and Rabinowitz, 1978) that ( ) will always reach zero
of makes two terms equal to zero. Graphically, this before ( ). Therefore, if a zero check for ( ) is incorporated into the
corresponds to the curve touching the -axis computer program, the computation can be terminated before ( ) reaches
tangentially at the double root. zero.
3. It can be demonstrated that the Newton-Raphson and secant methods are
On-the-other-hand, a triple root corresponds to the linearly, rather than quadratically, convergent for multiple roots (Ralston and
case where one x value makes three terms in an Rabinowitz, 1978). Modifications have been proposed to alleviate this
equation equal to zero, as in problem. Ralston and Rabinowitz (1978) have indicated that a slight change
in the formulation returns it to quadratic convergence, as in
( ) = ( − 3)( − 1)( − 1)( − 1) 0( )
= −@
0- ( )
EXAMPLE
Use both the standard and modified Newton-Raphson method to evaluate the multiple
> =
roots of 6 12 10 3 with an initial guess of 3 4. Perform
five iterations for each method.
https://youtu.be/rRq03ADaAR0
https://youtu.be/ujcZc5sPX4c