What is the goal in the design of good numerical schemes? Solving problems EXACTLY is sometimes not possible and/or not even sensible (e.g. a chaotic system). What you want to do is to produce a numerical approximation which will have the property that the more you push it, the ``better'' the answer gets...i.e. the closer it gets (in some norm) to the solution.
The most important qualities of good numerical schemes are:
We will discuss these throughout the year in different contexts. Same with stability, but it is appropriate to mention this detail at this point:
Stability:
let
= initial error, then, after
steps:
|
Most problems dealing with continuous variables (derivatives, integrals, etc) cannot be solved, even in principle, in a finite number of steps.
recast problem so that approximate problem
(i.e. solved in a finite number of steps) is ``close enough'' or
within error tolerance
In most cases we design a method of solution which is ``convergent'' to the solution. In order to assess
whether a method is convergent we need to estimate its error
and/or we need to define a sensible quantity which estimates
its rate of convergence. Convergence may also depend on how
system is prepared.
Moreover, if a method is to be useful it should solve the problem efficiently, i.e. in the least amount of time and it must be reasonable with respect to computer resources.
Example Solving a very large
can be
solved by
General Strategy
Replace problem with an approximate one with one with closely related solutions.
For example, replace integrals with finite sums,
replace derivatives with finite differences,
replace matrices
matrices with simpler forms
Complicated functions with sequences of polynomials
Differential equations with difference algebraic equations
Nonlinear problems with linearized approximations
High-order differential equations with low order difference equations
Infinite-dimensional spaces with finite-dimensional spaces.
All this while preserving the solution in some sense. What should be preserved? It depends on the problem, as we shall learn.
Sources of Approximations in Scientific Computation
Before Computing:
Modeling (PDE & reality)
Empirical Measurement (Lab data): finite precision, small sample
size, random noise, etc.
Approximate prep of model.
At the computing stage
Error Analysis
THE AIM IN NUMERICAL ANALYSIS COMPUTE EXACTLY. BUT TO BE EXACT ABOUT THE ERROR SOURCES TO MAKE THEIR SIZE AS SMALL AS POSSIBLE.
ALTHOUGH WHILE DOING IT WITH REASONABLE EXPENSE.
Example input data errors and approximate computation:
Remark: Choice of
representation
has no effect on Truncation Error and Rounding Error