



































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




































Truncation errors and the Taylor series
Numerical Solutions for ODEs
Finite difference method
Optimization
Errors in Numerical Solutions
Truncation Errors
Round-Off Errors
Total Error
( ) (^0). 1 0. 15 0. 5 0. 25 1. 2
4 3 2
f x = − x − x − x − x +
The Remainder for the Taylor Series Expansion
Truncation Errors: Example
3 5 7 9
sin( )
3! 5! 7! 9!
x x x x
x = x − + − + +
sin 0.
0.5 0.4996742 0.
TR
E = − =
Round-Off Errors
Total Error
The Global Error is the total discrepancy
due to past as well as present steps
The Local Error refers to the error incurred
over a single step. It is calculated with a
Taylor series expansion.
The Global Error
The relative global error:
The Total Error: Example
The percent relative global error (Step 1);
The percent relative global error (Step 2);
17
The Total Error: Example
3 2
y = − 2 x + 12 x − 20 x +8.
( ) ( ) ( )
2 3 4 2 3 4
2 3 4 2! 3! 4!
i i i
local
x x x
x (^) d f x (^) d f x d f
dx dx dx
Exact estimates of the errors in Euler’s method
6 24 20
12 24
12
y x x
y x
d f
dx
= − + −
= − +
= −
Problem statement:
The Total Error: Example
2 2 2 3 3 4 4 6(0.5) 24(0.5) 20
(0.5) 1.
2
12(0.5) 24 (0.5) 0.
3 2
12 (0.5) 0.
4 3 2
l
l
l
E
E
E
− + −
= = −
− + = =
×
− = = −
× ×
2 3 4
local
total l l l
E = E + E + E = −
The percent relative local error (Step 2);
%TheLocalError= 100 28.
3
−
× =
Numerical Solutions for ODEs
Introduction to Ordinary
Differential Equations (ODE)