Iterative Methods for Simple Roots
Iterative Methods for Simple Roots
October 5, 2024
1 Introduction
We consider the methods for determining the roots of the equation
f (x) = 0 (1)
1. Direct methods : These methods give the exact value of the roots in a finite number of
steps. These methods determine all the roots at the same time.
2. Iterative methods : These methods are based on the idea of successive approximations.
Starting with one or more initial approximations to the root, we obtain a sequence of
iterates xk which in the limit converges to the root. These methods determine one or
two roots at a time.
1
2 Iterative methods for simple roots
0
Definition : A root ξ is called a simple root of f (x) = 0, if f (ξ) = 0 and f (ξ) 6= 0. Then,
we can also writef (x) = (x − ξ)g(x), where g(x) is bounded and g(ξ) 6= 0.
6. Display x2 as root.
7. Stop.
2
2.2 Secant Method
In this method, we approximate the graph of the function y = f (x) in the neighbourhood
of the root by a straight line (secant) passing through the points (xk–1 , fk–1 ) and (xk , fk ),
where fk = f (xk ) and take the point of intersection of this line with the x-axis as the next
iterate. We thus obtain
xk − xk−1
xk+1 = xk − fk , k = 1, 2, . . .
fk − fk−1
or
xk−1 fk − xk fk−1
xk+1 = , k = 1, 2, . . .
fk − fk−1
where xk–1 and xk are two consecutive iterates. In this method, we need two initial approx-
imations x0 and x1 . This method is also called the chord method. The order of the method
is obtained as
1 √
p = (1 + 5) ≈ 1.62
2
If the approximations are chosen such that f (xk –1)f (xk ) < 0 for each k, then the method is
known as Regula-Falsi method and has linear (first order) rate of convergence. Both these
methods require one function evaluation per iteration.
Algorithm
1. Start
3. Input initial guesses x0 and x1 , tolerable error () and maximum iteration (N )
5. If f (x0 ) = f (x1 ) then print “Mathematical Error” and goto (11) otherwise goto (6)
(x1 −x0 )
6. Calcualte x2 = x1 − f (x1 )−f (x0 )
∗ f (x1 )
8. If i >= N then print “Not Convergent” and goto (11) otherwise goto (9)
9. If |f (x2 )| > then set x0 = x1 , x1 = x2 and goto (5) otherwise goto (10)
11. Stop
3
2.3 Newton-Raphson method
In this method, we approximate the graph of the function y = f (x) in the neighbourhood of
the root by the tangent to the curve at the point (xk , fk ) and take its point of intersection
with the x-axis as the next iterate. We have the Newton-Raphson method as
fk
xk+1 = xk − 0 , k = 0, 1, . . .
fk
and its order is p = 2. This method requires one function evaluation and one first derivative
evaluation per iteration.
Algorithm
3. Input initial guess (x0 ), tolerable error () and maximum iteration (N )
5. If g(x0 ) = 0 then print “Mathematical Error” and goto (11) otherwise goto (6)
f (x0 )
6. Calcualte x1 = x0 − g(x0 )
8. If i >= N then print “Not Convergent” and goto (11) otherwise goto (9)
9. If |f (x1 )| > then set x0 = x1 and goto (5) otherwise goto (10)
11. Stop
4
Example: Find the interval of equation x3 − x − 4 = 0. in which the smallest positive
root lies and also, determine the roots correct to two decimal places using the bisection
method.
Solution:
We find f (0) = −4, f (1) = −4, f (2) = 2.
Therefore, the root lies in the interval (1, 2). The sequence of intervals using the bisection
method is obtained as
After 10 iterations, we find that the root lies in the interval (1.795898, 1.796875). Therefore,
the approximate root is m = 1.796387. The root correct to two decimal places is 1.80.
5
Example: Given the following equation : x4 − x − 10 = 0, determine the initial approx-
imations for finding the smallest positive root. Use these to find the root correct to three
decimal places with the following methods:
(a) Secant method, (b) Regula-Falsi method, (c) Newton-Raphson method.
Solution:
We find that f (0) = −10, f (1) = −10, f (2) = 4.
Hence, the smallest positive root lies in the interval (1, 2).
The Secant method gives the iteration scheme
xk − xk−1
xk+1 = xk − fk , k = 1, 2, . . .
fk − fk−1
With x0 = 1, x1 = 2, we obtain the sequence of iterates
6
2.4 Fixed point Iteration
Fixed point : A point, say, s is called a fixed point if it satisfies the equation x = g(x).
Fixed point Iteration : The transcendental equation f (x) = 0 can be converted alge-
braically into the form x = g(x) and then using the iterative scheme with the recursive
relation
xi+1 = g(xi ), i = 0, 1, 2, . . . ,
with some initial guess x0 is called the fixed point iterative scheme.
Algorithm : Given an equation f (x) = 0
3. Compute
xi+1 = g(xi ), i = 0, 1, 2, . . . ,
i 0 1 2 3 4 5 6
xi 1.0 1.82116 1.85424 1.85553 1.85558 1.85558
xi 2.0 1.861 1.8558 1.85559 1.85558 1.85558
xi 4.0 1.93434 1.85866 1.8557 1.85559 1.85558 1.85558