SlidePub
Home
Categories
Login
Register
Home
Education
Numerical Methods in Math (Math Lesson Algebra)
Numerical Methods in Math (Math Lesson Algebra)
DANSIBONGA
10 views
17 slides
Sep 06, 2024
Slide
1
of 17
Previous
Next
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
About This Presentation
by Lale Yurttas, Texas A&M University
Size:
392.57 KB
Language:
en
Added:
Sep 06, 2024
Slides:
17 pages
Slide Content
Slide 1
by Lale Yurttas, Texas A
&M University
Chapter 5 1
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Chapter 5
Slide 2
by Lale Yurttas, Texas A
&M University
Part 2 2
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Roots of Equations
Part 2
•Why?
•But
a
acbb
xcbxax
2
4
0
2
2
?0sin
?0
2345
xxx
xfexdxcxbxax
Slide 3
by Lale Yurttas, Texas A
&M University
Part 2 3
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Nonlinear Equation
Solvers
Bracketing Graphical Open Methods
Bisection
False Position
(Regula-Falsi)
Newton Raphson
Secant
All Iterative
Slide 4
by Lale Yurttas, Texas A
&M University
Chapter 5 4
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Bracketing Methods
(Or, two point methods for finding roots)
Chapter 5
•Two initial guesses for the
root are required. These
guesses must “bracket” or be
on either side of the root.
== > Fig. 5.1
•If one root of a real and
continuous function, f(x)=0,
is bounded by values x=x
l, x
=x
u
then
f(x
l
) . f(x
u
) <0. (The function
changes sign on opposite sides of the
root)
Slide 5
by Lale Yurttas, Texas A
&M University
Chapter 5 5
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Figure 5.2
No answer (No root)
Nice case (one root)
Oops!! (two roots!!)
Three roots( Might
work for a while!!)
Slide 6
by Lale Yurttas, Texas A
&M University
Chapter 5 6
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Figure 5.3
Two roots( Might
work for a while!!)
Discontinuous
function. Need
special method
Slide 7
by Lale Yurttas, Texas A
&M University
Chapter 5 7
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Figure 5.4a
Figure 5.4b
Figure 5.4c
MANY-MANY roots. What do we
do?
f(x)=sin 10x+cos 3x
Slide 8
by Lale Yurttas, Texas A
&M University
Chapter 5 8
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
The Bisection Method
For the arbitrary equation of one variable, f(x)=0
1.Pick x
l and x
u such that they bound the root of
interest, check if f(x
l).f(x
u) <0.
2.Estimate the root by evaluating f[(x
l+x
u)/2].
3.Find the pair
•If f(x
l). f[(x
l+x
u)/2]<0, root lies in the lower interval,
then x
u=(x
l+x
u)/2 and go to step 2.
Slide 9
by Lale Yurttas, Texas A
&M University
Chapter 5 9
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
•If f(x
l). f[(x
l+x
u)/2]>0, root
lies in the upper interval, then
x
l
= [(x
l
+x
u
)/2, go to step 2.
•If f(x
l
). f[(x
l
+x
u
)/2]=0, then
root is (x
l+x
u)/2 and
terminate.
4.Compare
s
with
a
5.If
a<
s, stop. Otherwise
repeat the process.
%100
2
2
%100
2
2
ul
ul
u
ul
ul
l
xx
xx
x
or
xx
xx
x
Slide 10
by Lale Yurttas, Texas A
&M University
Chapter 5 10
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Figure 5.6
Slide 11
by Lale Yurttas, Texas A
&M University
Chapter 5 11
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Evaluation of Method
Pros
•Easy
•Always find root
•Number of iterations
required to attain an
absolute error can be
computed a priori.
Cons
•Slow
•Know a and b that
bound root
•Multiple roots
•No account is taken of
f(x
l
) and f(x
u
), if f(x
l
) is
closer to zero, it is likely
that root is closer to x
l
.
Slide 12
by Lale Yurttas, Texas A
&M University
Chapter 5 12
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
How Many Iterations will It Take?
•Length of the first IntervalL
o
=b-a
•After 1 iteration L
1=L
o/2
•After 2 iterations L
2=L
o/4
•After k iterations L
k
=L
o
/2
k
sa
k
a
x
L
%100
Slide 13
by Lale Yurttas, Texas A
&M University
Chapter 5 13
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
•If the absolute magnitude of the error is
and L
o=2, how many iterations will you
have to do to get the required accuracy in
the solution?
4
10
%100
x
s
153.141022
2
2
10
44
k
k
k
Slide 14
by Lale Yurttas, Texas A
&M University
Chapter 5 14
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
The False-Position Method
(Regula-Falsi)
•If a real root is
bounded by x
l and x
u of
f(x)=0, then we can
approximate the
solution by doing a
linear interpolation
between the points [x
l
,
f(x
l
)] and [x
u
, f(x
u
)] to
find the x
r value such
that l(x
r)=0, l(x) is the
linear approximation
of f(x).
== > Fig. 5.12
Slide 15
by Lale Yurttas, Texas A
&M University
Chapter 5 15
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Procedure
1.Find a pair of values of x, x
l and x
u such that
f
l
=f(x
l
) <0 and f
u
=f(x
u
) >0.
2.Estimate the value of the root from the
following formula (Refer to Box 5.1)
and evaluate f(x
r
).
lu
luul
r
ff
fxfx
x
Slide 16
by Lale Yurttas, Texas A
&M University
Chapter 5 16
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
3.Use the new point to replace one of the
original points, keeping the two points on
opposite sides of the x axis.
If f(x
r
)<0 then x
l
=x
r
== > f
l
=f(x
r
)
If f(x
r)>0 then x
u=x
r == > f
u=f(x
r)
If f(x
r)=0 then you have found the root and
need go no further!
Slide 17
by Lale Yurttas, Texas A
&M University
Chapter 5 17
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
4.See if the new x
l and x
u are close enough for
convergence to be declared. If they are not go back
to step 2.
•Why this method?
–Faster
–Always converges for a single root.
See Sec.5.3.1, Pitfalls of the False-Position Method
Note: Always check by substituting estimated root in the
original equation to determine whether f(x
r) ≈ 0.
Tags
Categories
Education
Download
Download Slideshow
Get the original presentation file
Quick Actions
Embed
Share
Save
Print
Full
Report
Statistics
Views
10
Slides
17
Age
453 days
Related Slideshows
11
TLE-9-Prepare-Salad-and-Dressing.pptxkkk
MaAngelicaCanceran
32 views
12
LESSON 1 ABOUT MEDIA AND INFORMATION.pptx
JojitGueta
25 views
60
GRADE-8-AQUACULTURE-WEEKQ1.pdfdfawgwyrsewru
MaAngelicaCanceran
41 views
26
Feelings PP Game FOR CHILDREN IN ELEMENTARY SCHOOL.pptx
KaistaGlow
40 views
54
Jeopardy_Figures_of_Speech_Template.pptx [Autosaved].pptx
acecamero20
25 views
7
Jeopardy_Figures_of_Speech.pptxvdsvdsvsdvsd
acecamero20
25 views
View More in This Category
Embed Slideshow
Dimensions
Width (px)
Height (px)
Start Page
Which slide to start from (1-17)
Options
Auto-play slides
Show controls
Embed Code
Copy Code
Share Slideshow
Share on Social Media
Share on Facebook
Share on Twitter
Share on LinkedIn
Share via Email
Or copy link
Copy
Report Content
Reason for reporting
*
Select a reason...
Inappropriate content
Copyright violation
Spam or misleading
Offensive or hateful
Privacy violation
Other
Slide number
Leave blank if it applies to the entire slideshow
Additional details
*
Help us understand the problem better