Module 1 - Introduction To Numerical Techniques
Module 1 - Introduction To Numerical Techniques
MA 311
MODULE 1: INTRODUCTION
TO NUMERICAL TECHNIQUES
Musango Lungu, D Eng
• Because εa is not less than the required value of εs , we would continue the
computation by adding another term, x2 ∕2!, and repeating the error
calculation.
• The process is continued until εa < εs .
• Thus, after six terms are included, the approximate error falls below
εs = 0.05% and the computation is terminated.
• Thus, after six terms are included, the approximate error falls below
εs = 0.05% and the computation is terminated.
INTRODUCTION TO NUMERICAL
TECHNIQUES
Truncation Errors and the Taylor Series
• Truncation errors are those that result from using an approximation
in place of an exact mathematical procedure.
• Taylor series provides a means to predict a function value at one point
in terms of the function value and its derivatives at another point.
• In particular, the theorem states that any smooth function can be
approximated as a polynomial.
• The first term in the series is:
f xi 1 f xi (7)
• This relationship is called the zero-order approximation and indicates
that the value of f at the new point is the same as its value at the old
point.
INTRODUCTION TO NUMERICAL
TECHNIQUES
• The first-order approximation is developed by adding another term to
yield:
f xi 1 f xi f xi xi 1 xi (8)
2! (9)
INTRODUCTION TO NUMERICAL
TECHNIQUES
• In a similar manner, additional terms can be included to develop
the complete Taylor. f xi
f xi 1 f xi f xi xi 1 x i 1
2
x x
2!
f xi f n xi
(10)
xi 1 x ... xi 1 x R n
3 n
3! n!
• A remainder term is included to account for all terms from n+1 to infinity:
n 1
f x x x n1
Rn i 1 i
n (11)
1!
• where the subscript n connotes that this is the remainder for the nth-
order approximation
x x x xi 1
• is a value of that lies somewhere between and .
INTRODUCTION TO NUMERICAL
TECHNIQUES
• It is often convenient to simplify the Taylor series by defining a step size
h xi 1 xi :
f xi 2 f xi 3 f n xi n (12)
f xi 1 f xi f xi h h h ... h Rn
2! 3! n!
where the nomenclature O h n1 means that the truncation error is of the
order of h n 1 .
Problems
(1) The following infinite series can be used to approximate e x :
2 3 n
x x x
e x 1 x ...
2 3! n!
(i) Prove that this Maclaurin series expansion is a special case of the Taylor
series expansion with xi =0 and h = x .
INTRODUCTION TO NUMERICAL
TECHNIQUES f x e
(ii) Use the Taylor series to estimate x
at xi+1 = 1 and for xi=0.2.
Employ the zero-, first-, second-, and third-order versions and compute the
absolute relative error for each case.
END OF MODULE 1