Numerical Methods: Session 1: Principles of Numerical Mathematics
Numerical Methods: Session 1: Principles of Numerical Mathematics
F (x, d) = 0 (1)
in which we call x the unknown, d data and F is the relation
between x and d.
1 If F and d are known, finding x will be called the ”direct
problem”.
2 If F and x are known, finding d will be called the ”inverse
problem”.
3 If x and d are known, finding F will be called the
”identification problem”.
In this course we will study the direct problem.
Most problems are not so clearly ill posed. To quantify the well/ill
posedness of a problem we define:
Definition: Relative condition number
kδxk/kxk
K (d) = sup (3)
δd∈D kδdk/kdk
kδxk
Kabs (d) = sup (4)
δd∈D kδdk
kdk
K (D) ≈ kG 0 (d)k and Kabs ≈ kG 0 (d)k
kG (d)k
Then:
Fn (xn , dn ) = 0 n≥1
We would expect that xn → x. For that it is necessary that
n→∞
dn → d and that Fn approximates F when n → ∞.
Examples:
f (xn−1 )
1 Newton’s method: xn = xn−1 − f 0 (xn−1 ) is strongly consistent.
Rb
2 Composite midpoint rule: If x = a f (t)dt,
xn = H nk=1 f ( tk +t2k+1 ) n ≥ 1 with H = (b − a)/n and
P
tk = a + (k − 1)H. This method to calculate the integral is
consistent, but only strongly consistent if f is a piecewise
linear polynomial.
In general, numerical methods obtained from the
mathematical problem by truncation of limit operations (like
integrals, derivatives, series,...) are not strongly consistent.
∀η > 0, ∃Kn (η, dd ) : kδdn k < η ⇒ kδx −nk ≤ Kn (η, dn )kδdn k (6)
num
Kabs (dn ) = lim sup Kabs,n (dn ) (9)
n→∞ n≥k
num is the
Knum is the relative asymptotic condition number and Kabs
absolute asymptotic condition number of the numerical method
corresponding to the datum dn .
The numerical method is said to be well-conditioned if the
condition number K num is “small” for any admissible datum dn
and ill-conditioned otherwise.
Pedro González Rodrı́guez Numerical methods
Stability of numerical methods
kdn k
Kn (dn ) ≈ kGn0 (dn )k and Kabs ≈ kGn0 (dn )k
kGn (dn )k
Examples:
Sum and subtraction. The sum defined as
f : R2 → R
(a,b) a+b
f : R2 → R
(a,b) a−b
|x − xn |
E (xn ) = |x − xn | Erel (xn ) = (x 6= 0)
|x|
Definition: Error by component:
c |(x − xn )i,j |
Erel (xn ) = max (xi,j 6= 0)
i,j |xi,j |
Accuracy means that the errors are small with respect to a fixed
tolerance. It is usually quantified by the infinitesimal order of the
error en with respect to the discretization characteristic parameter
(for example the largest grid spacing).
Note: Machine precision does not limit, theoretically, the accuracy.
Reliability means that it is very likely that the global error is below
a certain tolerance.
Efficiency mean that the computational (effort) complexity needed
to control the error (number of operation and memory) is as small
as possible.