







Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Main points are: Euler Method, Graphical Interpretation, First Order Differential Equation, Ambient Temperature, Equation for Temperature, Approximate Temperature, Non-Linear Equation, Comparison of Exact Solutions
Typology: Slides
1 / 13
This page cannot be seen from the preview
Don't miss anything!








Φ
Step size, h
x
y
x 0 ,y (^0)
True value
y 1 , Predicted value
dx
dy = =
Slope Run
1 0
1 0 x x
y y
−
= y (^) 0 + f ( x 0 , y 0 ) h
Figure 1 Graphical interpretation of the first step of Euler’s method
How to write Ordinary Differential
Equation
Example
dx
dy (^) x
is rewritten as
= 1. 3 e −^ − 2 y , y ( ) 0 = 5 dx
dy (^) x
In this case
f ( x y ) e y
x
−
How does one write a first order differential equation in the form of
f ( x y ) dx
dy = ,
A ball at 1200K is allowed to cool down in air at an ambient temperature
of 300K. Assuming heat is lost only due to radiation, the differential
equation for the temperature of the ball is given by
dt
d
12 4 8 = − × − × =
− θ θ
θ
Find the temperature at t^ =^480 seconds using Euler’s method. Assume a step size of
For i =^1 ,^ t 1 =^240 , θ 1 =^106.^09
( )
( )
( )
K
f
f t h
12 4 8
2 1 1 1
−
θ θ θ
θ (^2) is the approximate temperature at (^) t = t 2 = t 1 + h = 240 + 240 = 480
θ ( 480 ) ≈θ 2 = 110. 32 K
The exact solution of the ordinary differential equation is given by the
solution of a non-linear equation as
1 3 − =− × −
The solution to this nonlinear equation at t=480 seconds is
480
240
120
60
30
−987.
Table 1. Temperature at 480 seconds as a function of step size, h
(exact)
0
500
1000
1500
0 100 200 300 400 500 Temperature, Tim e, t (sec)
Exact solution
h= h=
h=
θ(K)
Figure 4. Comparison of Euler’s method with exact solution for different step sizes
2 Et ∝ h
It can be seen that Euler’s method has large errors. This can be illustrated using
Taylor series.
( ) ( ) ( ) ... 3!
1 ,
3
3 2 1 ,
2
2
1 ,
i i x y
i i x y
i i x x dx
d y x x dx
d y x x dx
dy y y i i i i i i
( ) ( ) ''( , )( ) ...
3 1
2
As you can see the first two terms of the Taylor series
y (^) i + 1 = yi + f ( xi , yi ) h
The true error in the approximation is given by
( ) ( ) ... 3!
,
2!
, (^2 )
′′
′ = h
f x y h
f x y E
i i i i t
are the Euler’s method.