Numerical Methods
Numerical Methods
Numerical Methods for Engineers Techniques by which mathematical problems are formulated
so that they can be solved with arithmetic operations {+,-
,*,/} that can then be performed by a computer.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Roots of equations: concerns with finding the value of a variable that satisfies
a single nonlinear equation – especial valuable in engineering design where it is
Mathematical Modeling and often impossible to explicitly solve design equations of parameters.
Curve fitting: to fit curves to data points. Two types: regression and
interpolation. Experimental results are often of the first type.
5 6
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
1
The Engineering
Problem Solving
Process
7 8
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Root
We are given f(x), a function of x, and we
want to find α such that
Roots of Equations f(α) = 0
9 10
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
2
Usually
Bracketing Methods • f(a)f(b) > 0 implies zero or even
number of roots
Theorem: If a function f(x) is
– [figure (a) and (c)]
continuous in the interval
[a, b] and f(a)f(b) < 0, then
the equation f(x) = 0 has at • f(a)f(b) < 0 implies odd number
least one real root in the of roots
interval (a, b).
– [figure (b) and (d)]
13 14
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
if f(xl)f(xr) = 0
xr is the root
15 16
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
17
18
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
3
EXAMPLE: Consider f(x) = x3 + 3x – 5,
where [a = 1, b = 2] and DOA = 0.001
19
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
The Regula–Falsi Method is a numerical method for estimating EXAMPLE: Consider f(x) = x3 + 3x – 5, where [ a = 1, b = 2 ]
the roots of a polynomial f(x). A value x replaces the midpoint in and DOA = 0.001.
the Bisection Method and serves as the new approximation of a root
of f(x). The objective is to make convergence faster. Assume
that f(x) is continuous.
21 22
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.