Professional Documents
Culture Documents
Lesson 2 Methods of Root Finding
Lesson 2 Methods of Root Finding
Lesson 2 Methods of Root Finding
METHODS OF ROOT-FINDING
NUMERICAL METHODS AND ANALYSIS
LESSON 2
PRESENTED BY: ENGR. ROMULO C. CRUZ JR.
LEARNING OUTCOMES
➢ Bracketing methods
➢ Open methods
NOTE:
(1) Useful in finding the roots of non-factorable polynomials.
(2)The bracketing methods always work but converge slowly;
the open methods can diverge, but usually converge quickly
https://www.cfm.brown.edu/people/dobrush/am33/Mathematica/ch3/brack
et.html
Let 𝑓 𝑥 be a continuous function in the interval (a, b) such that 𝒇(𝒂) and 𝒇(𝒃)
are of opposite signs, that is 𝑓 𝑎 ∙ 𝑓(𝑏) < 0
𝑎+𝑥0
Solve 𝑥1 =
2
If 𝑓(𝑥0 ) ∙ 𝑓(𝑏) < 0, then the root lies between 𝑥0 and b; repeat the
procedure by halving the interval again.
𝑥0 +𝑏
Solve 𝑥1 =
2
SOLUTION:
Initial approximation
Let 𝑎 = 0, 𝑏 = 1; this gives 𝑓 0 = −1, 𝑓 1 = 1; 𝑓 0 ∙ 𝑓 1 < 0
0+1
𝑥0 = = 0.5
2
𝑓 0.5 = −0.875
𝑓(0.5) ∙ 𝑓(1) < 0
Presented by: Engr. Romulo C. Cruz Jr.
EXAMPLE PROBLEM 1
First approximation
0.5+1
𝑥1 = = 0.75
2
𝑓 0.75 = −0.203
𝑓 0.75 ∙ 𝑓 1 < 0
Second approximation
0.75+1
𝑥2 = = 0.875
2
𝑓 0.875 = 0.326
𝑓(0.75 ∙ 𝑓 0.875 < 0
Third approximation
0.75+0.875
𝑥3 = = 0.813
2
𝑓 0.813 = 0.046
𝑓 0.75 ∙ 𝑓 0.813 < 0
Fourth approximation
0.75+0.813
𝑥4 = = 0.782
2
𝑓 0.782 = −0.081
𝑓 0.782 ∙ 𝑓 0.813 < 0
Fifth approximation
0.782+0.813
𝑥5 = = 0.798
2
𝑓 0.798 = −0.016
𝑓 0.798 ∙ 𝑓 0.813 < 0
Sixth approximation
0.798+0.813
𝑥6 = = 0.806
2
𝑓 0.806 = 0.017
𝑓 0.798 ∙ 𝑓 0.806 < 0
Seventh approximation
0.798+0.806
𝑥7 = = 0.802
2
𝑓 0.802 = 2.58x10−4
𝑓 0.798 ∙ 𝑓 0.802 < 0
Eighth approximation
0.798+0.802
𝑥8 = = 0.800
2
𝑓 0.800 = −8x10−3
𝑓 0.800 ∙ 𝑓 0.802 < 0
Ninth approximation
0.800+0.802
𝑥9 = = 0.801
2
𝑓 0.801 = −3.88x10−3
𝑓 0.801 ∙ 𝑓 0.802 < 0
Tenth approximation
0.801+0.802
𝑥10 = = 0.802
2
−𝑓(𝑎) 𝑓 𝑏 −𝑓(𝑎)
=
𝑥0 −𝑎 𝑏−𝑎
𝑎𝑓 𝑏 − 𝑏𝑓(𝑎)
𝑥0 =
𝑓 𝑏 −𝑓 𝑎
This is to be repeated for lines A0B, A1B,… until the root is found
SOLUTION:
Initial approximation
Let 𝑎 = 0, 𝑏 = 1; this gives 𝑓 𝑎 = 𝑓 0 = −1, 𝑓 𝑏 = 𝑓(1) = 1; 𝑓 0 ∙ 𝑓 1 < 0
𝑎𝑓 𝑏 − 𝑏𝑓(𝑎) 0−(1)(−1)
𝑥0 = = = 0.5
𝑓 𝑏 −𝑓 𝑎 1−(−1)
First approximation:
0.5 1 −1(−0.875)
𝑥1 = = 0.733
1− −0.875
Second approximation:
0.733 1 − 1(−0.265)
𝑥2 = = 0.789
1− −0.265
Third approximation:
0.789 1 −1(−0.053)
𝑥3 = = 0.800
1− −0.053
Fourth approximation:
0.8 1 −1(−0.008)
𝑥4 = = 0.802
1− −0.008
Fifth approximation:
0.802 1 −1(−2.58x10−4 )
𝑥5 = = 0.802
1− −2.58x10−4