Numerical_Methods_MathPrelims_ErrorAnalysis
Numerical_Methods_MathPrelims_ErrorAnalysis
D EFINITION (L IMIT )
A function f defined on a set X of real numbers has a limit L at x0 , written
lim f (x) = L,
x→x0
if, given any real number > 0, there exists a real number δ > 0 such that
|f (x) − L| < , whenever x ∈ X and 0 < |x − x0 | < δ
D EFINITION (C ONTINUITY )
Let f be a function defined on set X of real numbers and x0 ∈ X. Then f is
continuous at x0 if lim f (x) = f (x0 ).
x→x0
The function f is continuous on the set X if it is continuous at each number in X.
D EFINITION (D IFFERENTIABILITY )
Let f be a function defined in an open interval containing x0 . The function f is
differentiable at x0 if
f (x) − f (x0 )
f 0 (x0 ) = lim
x→x0 x − x0
exist. The number f 0 (x0 ) is called the derivative of f at x0 .
f (b) − f (a)
f 0 (c) = .
b−a
A function f that is continuous on an interval [a, b] is also Riemann integrable on [a, b].
When g(x) = 1 the above theorem is the usual Mean Value theorem for Integrals, it
gives the average value of function f over the interval [a, b] as
Z b
1
f (c) = f (x)dx
b−a a
.
Note that the function f (x) can be approximated by a polynomial Pn (x) of nth
order.
The remainder term Rn (x) can be treated as the error when approximated by a
polynomial Pn (x) of nth order.
The remainder term is called the Truncation Error.
Dr. Mythili (MACS) August 4, 2020 8 / 15
T YPES OF E RRORS AND D EFINITIONS
T RUNCATION E RROR
The error involved in using a truncated, or finite, summation to approximate the sum of
an infinite series is called truncation error in the Taylor Polynomial
ROUNDOFF E RROR
The error that is produced when a calculator or computer is used to perform
realnumber calculations.
D EFINITION (A LGORITHM )
An algorithm is a procedure that describes, in an unambiguous manner, a finite
sequence of steps to be performed in a specified order.
D EFINITION
Suppose that E0 > 0 denotes an error introduced at some stage in the calculations
and En represents the magnitude of the error after n subsequent operations then
If En ≈ CnE0 , where C is independent of n, then the growth of error is said to
be linear
If En ≈ C n E0 , for some C > 1, then the growth of error is called exponential.
Linear growth of error is usuallly unavoidable and when C and E0 are small the results
are generally acceptable.
Exponential growth of error should be avoided, because the term C n becomes large
for even relatively small values of n.
Dr. Mythili (MACS) August 4, 2020 12 / 15
A LGORITHM AND C ONVERGENCE
| αn − α |≤ K | βn |,
D EFINITION
Suppose that limh→0 G(h) = 0 and limh→0 F (h) = L. If a positive constant K exists
with | F (h) − L |≤ K | G(h) |, for sufficiently small h, then we write
F (h) = L + O(G(h)).