Lesson+1+Introduction+to+Numerical+Methods
Lesson+1+Introduction+to+Numerical+Methods
NUMERICAL METHODS
Presented by: DR. JOAN P. LAZARO
LEARNING OUTCOMES
Optimization
Determine x that gives optimum f(x).
MATHEMATICAL BACKGROUND
4. Curve Fitting
You will often have occasion to fit curves to data points. The
techniques developed for this purpose can be divided into two
general categories: regression and interpolation.
Regression is employed where there is a significant degree of
error associated with the data. Experimental results are often of
this kind.
Interpolation is used where the objective is to determine
intermediate values between relatively error-free data points.
Such is usually the case for tabulated information.
MATHEMATICAL BACKGROUND
Curve fitting
MATHEMATICAL BACKGROUND
5. Integration
(Eq. 1-6)
A SIMPLE MATHEMATICAL MODEL
It represents the reverse process. It is called finite divided
difference approximation of the derivative at time It yields to
the equation:
(Eq. 1-7)
(Eq. 1-8)
This is called a numerical or approximate equation.
A SIMPLE MATHEMATICAL MODEL
A SIMPLE MATHEMATICAL MODEL
Example:
Perform the same computation as in the previous example using Eq. 1-8
(approximate equation) to compute the velocity. Employ a step size of 2 s for
the calculation.
Solution:
At the start of the computation ( = 0), the velocity of the parachutist is zero.
Using this information and the parameter values from the previous example,
Eq. 1-8 can be used to compute velocity at = 2 s:
A SIMPLE MATHEMATICAL MODEL
The calculation is continued in a similar fashion to obtain additional
values:
The results are plotted in the next Figure along with the exact solution.
It can be seen that the numerical method captures the essential features of the
exact solution.
However, because we have employed straight-line segments to approximate a
continuously curving function, there is some discrepancy between the two results.
A SIMPLE MATHEMATICAL MODEL
One way to minimize such discrepancies is to use a smaller step
size.
For example, applying Eq. 1-8 at l-s intervals results in a smaller
error, as the straight-line segments track closer to the true solution.
Using hand calculations, the effort associated with
using smaller and smaller step sizes would make such
numerical solutions impractical.
However, with the aid of the computer, large numbers
of calculations can be performed easily. Thus, you can
accurately model the velocity of the falling parachutist
without having to solve the differential equation exactly.