Module 4
Module 4
LEARNING OBJECTIVES
At the end of this module, you are expected to:
1. Determine roots of the given equation.
2. Solve the approximate roots using the methods that will be discuss in this module.
3. Discuss exercises using the steps in solving the roots of the equation.
KEY TERMS
Bisection Method
Incremental Search Method
Iterations
Newton-Raphson Method
Regula Falsi Method
Secant Method
The incremental search method starts with an initial value X0, a final value X1 (Lower and
upper limits of the interval, respectively) and a constant called Delta. This constant is going to be
added to the lower limit of the interval in each iteration in order to go from X0 to X1.
𝒙𝟏 = 𝒙𝟎 + ∆𝒙
If we convert that equation into an iterative one we got:
𝒙𝒏 = 𝒙𝒏−𝟏 + ∆𝒙
With the expression mentioned above, we have already a series of values of ‘x’ that we
can evaluate on the function.
Now, how do we know where is the root and in which interval is it?
The solution is to evaluate a pair of continue values of ‘x’ we obtained previously on the
function, multiply the images generated and see which sign we obtain:
➢ If f(xn-1)* f(xn) is greater than 0, then there is no root between these two values of x.
➢ If (xn-1)* f(xn) < 0, we can assure that a root exists between the interval [xn-1,xn].
“Incremental search” is not a numeric method, but a support that help to determine an
approximation of some initial values that are going to be used to calculate roots. Incremental
search is a search technique for continual planning (or, synonymously, replanning, plan reuse, and
lifelong planning) that reuses information from previous searches to find solutions to a series of
similar search problems potentially faster than is possible by solving each search problem from
scratch.
First iteration:
1.52 – 1.5 – 1 = - 0.25
nd
2 iteration:
Where 𝒙𝒏 = 𝒙𝒏−𝟏 + ∆𝒙 = 1.5 + 0.01 = 1.51
1.512 – 1.51 – 1 = - 0.2299
rd
3 iteration:
Where 𝒙𝒏 = 𝒙𝒏−𝟏 + ∆𝒙 = 1.51 + 0.01 = 1.52
1.522 – 1.52 – 1 = - 0.2096
Note:
As the x is increasing the value of f(x) is approaching closer to zero. So, we are on the right
track in obtaining the root of the equation.
4th iteration:
Where 𝒙𝒏 = 𝒙𝒏−𝟏 + ∆𝒙 = 1.52 + 0.01 = 1.53
1.532 – 1.53 – 1 = - 0.1891
5th iteration:
Where 𝒙𝒏 = 𝒙𝒏−𝟏 + ∆𝒙 = 1.53 + 0.01 = 1.54
1.542 – 1.54 – 1 = - 0.1684
6th iteration:
Where 𝒙𝒏 = 𝒙𝒏−𝟏 + ∆𝒙 = 1.54 + 0.01 = 1.55
1.552 – 1.55 – 1 = - 0.1475
7th iteration:
Where 𝒙𝒏 = 𝒙𝒏−𝟏 + ∆𝒙 = 1.55 + 0.01 = 1.56
1.562 – 1.56 – 1 = - 0.1264
8th iteration:
Where 𝒙𝒏 = 𝒙𝒏−𝟏 + ∆𝒙 = 1.56 + 0.01 = 1.57
1.572 – 1.57 – 1 = - 0.1051
9th iteration:
Where 𝒙𝒏 = 𝒙𝒏−𝟏 + ∆𝒙 = 1.57 + 0.01 = 1.58
1.582 – 1.58 – 1 = - 0.0836
10th iteration:
Where 𝒙𝒏 = 𝒙𝒏−𝟏 + ∆𝒙 = 1.58 + 0.01 = 1.59
Engr. Michael John T. Guillermo, RME
Subject Teacher/ Special Lecturer This Review Guide is a product of
research made by Engr. Ariel E. Novio
ES 221e – Numerical Solution to CE Problem 3
The sign of f(x) changes from negative to positive at 12th and 13th iteration. Therefore the positive
root is between 1.61 and 1.62.
Follow the below procedure to get the solution for the continuous function:
For any continuous function f(x),
• Find two points, say a and b such that a < b and f(a)* f(b) < 0
• Find the midpoint of a and b, say “t”
• t is the root of the given function if f(t) = 0; else follow the next step
• Divide the interval [a, b]
• If f(t)*f(b) <0, let a = t
• Else if f(t) *f(a), let b = t
• Repeat above three steps until f(t) = 0.
The bisection method is an approximation method to find the roots of the given equation by
repeatedly dividing the interval. This method will divide the interval until the resulting interval is
found, which is extremely small.
Solution:
Given: x2 – 3 = 0
The given function is continuous, and the root lies in the interval [1, 2].
t =3 / 2
t = 1.5
Therefore, the value of the function at “t” is
Limitations
While Regula Falsi Method like Bisection Method is always convergent, meaning that it is
always leading towards a definite limit and relatively simple to understand but there are also some
drawbacks when this algorithm is used. As both regula falsi and bisection method are similar there
are some common limitations both the algorithms have.
➢ Rate of convergence
The convergence of the regula falsi method can be very slow in some cases (May converge
slowly for functions with big curvatures) as explained above.
➢ Relies on sign changes
If a function f (x) is such that it just touches the x -axis for example say f(x) = x2 then it will not
be able to find lower guess (a) such that f(a)*f(b) < 0
Let f(x) = x3 – x – 1
Determine 2 values of x where the root is in between the two values.
x 0 1 2
f(x) -1 -1 5
At 10th iteration, the approximate root of the equation x3-x-1=0 using False Position method is
1.32464
𝑓(𝑥) = 0 {1}
The notation x* is often used to indicate the solution to a problem (Eq. {1})
in this method, here it is used to mean the next, (hopefully) improved value of the
variable, which, in the end, will indeed be the solution.
Eq. {2} shows that: if we know the solution, i.e., the x for which it is f(x) = 0, then, of
course, the next x is the same as the current one, so the process is terminated and
if the derivative is null in the solution, i.e., f’(x) = 0, the method fails
Example 4
Solve
𝑓(𝑥) = 𝑎𝑥 + 𝑏 = 0 {3}
from x = 1
𝑓 ′ (𝑥) = 𝑎 {4}
𝑎𝑥 + 𝑏 𝑏 𝑏
𝑥∗ = 𝑥 − =𝑥−𝑥− =− {5}
𝑎 𝑎 𝑎
Example 5
Solve
𝑓(𝑥) = 2𝑥 2 − 6𝑥 = 0 {6}
from x = ±5
2𝑥 2 − 6𝑥
𝑥∗ = 𝑥 − {7}
4𝑥 − 6
𝑥(𝑥 − 3)
𝑥∗ = 𝑥 − {8}
2𝑥 − 3
Eq. {7} could be simplified (to equation 8) but not necessary—, just to show that 0 and 3
are, the roots of the given equation. The function is shown in Fig. 1 and the computations
in Table 1.
INSTRUCTIONS: Answer the following questions. Write your answer in your notebook. Please
observe cleanliness to your work.
1) Using Incremental Search. Determine the values ox from x1, to x6
a) 1.5𝑥 − 6𝑥 −1
1
𝑓(𝑥) = − 0.65 tan ( )
(1 + 𝑥 2 )2 𝑥
b)
1.5𝑥 2
𝑓(𝑥) = + √𝑥
3
𝑥
4
2) Consider finding the root of f(x) = x^2-3. Let εstep = 0.01, εabs = 0.01 and start with the
interval [1, 2]. Use a table Bisection method applied to f(x) = x2 - 3.
3) Locate the intervals which contain the positive real roots of the equation x3 − 3x + 1 =
0. Obtain these roots correct to three decimal places, using the method of false
position.
4.) Use Newton’s Method to find the only real root of the equation x3−x−1 = 0 correct to 9
decimal places
SUGGESTED READINGS
REFERENCES
Student Solutions Manual and Study Guide for Numerical Analysis, 9th Edition
Richard L. Burden, Cengage Learning, 2011