









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!










k (^) 2 = f^ (^ xi + p 1 h , yi + q 11 k 1 h )
a 1 = 0
p 1 =
2
1 q 11 =
y (^) i + 1 = yi + k 2 h
k (^) 2 = f xi + h yi + k 1 h 2
3
2
4
3 p 1 =
k (^) 2 = f xi + h yi + k 1 h 4
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 =− × θ − × θ =
θ (^) −
h = (^240) seconds.
12 4 8 =− 2. 2067 × 10 θ − 81 × 10
θ (^) −
dt
d
12 4 8 , θ =− 2. 2067 × 10 θ − 81 × 10 − f t
i i k k ^ h
Step 1: (^) i 0 , t 0 , ( 0 ) 1200 K
( )
( )
12 4 8
1 0
−
f
k f t θ o (^ )
( ( ) )
( )
12 4 8
2 0 0 1
−
f
f
k f t h θ kh
( ) ( )
( )
K
k k h
1 0 1 2
θ =θ + +
Solution Cont
1 3
θ t θ
θ
θ( 480 )= 647. 57 K
0
400
800
1200
0 100 200 300 400 500
Time, t(sec)
Temperature,
θ(K)
Exact h=
h=
h=
Effects of step size on Heun’s Method
0
200
400
600
800
0 100 200 300 400 500 Step size, h
Temperature,
θ(480)
Step size,
h
θ(480)
Euler Heun Midpoint Ralston
480
240
120
60
30
−987.
−393.
Comparison of Euler and Runge-Kutta 2
nd
Order Methods
θ( 480 ) = 647. 57 K
Comparison of Euler and Runge-Kutta 2
nd
Order Methods
500
600
700
800
900
1000
1100
1200
0 100 200 300 400 500 600
Time, t (sec)
Temperature,
Analytical
Ralston
Midpoint
Euler
Heun
θ(K)