Escolar Documentos
Profissional Documentos
Cultura Documentos
Eulers Method
Ordinary Differential Equations
COMPLETE SOLUTION SET
1. To solve the ordinary differential equation
dy
3 + 5 y 2 = sin x, y (0) = 5
dx
by Eulers method, you need to rewrite the equation as
dy
(A)
= sin x 5 y 2 , y (0) = 5
dx
dy 1
(B)
= (sin x 5 y 2 ), y (0) = 5
dx 3
5 y3
dy 1
, y (0) = 5
(C)
= cos x
3
dx 3
(D)
dy 1
= sin x, y (0 ) = 5
dx 3
Solution
The correct answer is (B).
To solve ordinary differential equations by Eulers method, you need to rewrite the equation in
the following form
dy
= f (x, y ), y (0) = y0
dx
Thus,
dy
3 + 5 y 2 = sin x, y (0) = 5
dx
dy
3 = sin x 5 y 2 , y (0) = 5
dx
dy 1
= sin x 5 y 2 , y (0) = 5
dx 3
2. Given
dy
+ 5 y 2 = sin x, y (0.3) = 5
dx
and using a step size of h = 0.3 , the value of y (0.9 ) using Eulers method is most nearly
(A) 35.318
(B) 36.458
(C) 658.91
(D) 669.05
3
Solution
The correct answer is (A).
First rewrite the differential equation in the proper form.
dy 1
= sin x 5 y 2
dx 3
1
f (x, y ) = sin x 5 y 2
3
Eulers method is given by
y i +1 = y i + f ( xi , y i )h
where
h = 0.3
For i = 0 , x0 = 0.3 , y 0 = 5
y1 = y0 + f ( x0 , y0 )h
= 5 + f (0.3,5) 0.3
1
2
sin (0.3) 5(5) 0.3
3
= 5 + ( 12.470)
= 7.4704
y1 is the approximate value of y at
x = x1 = x0 + h = 0.3 + 0.3 = 0.6
For i = 1 , x1 = 0.6 , y1 = 7.4704
y2 = y1 + f (x1 , y1 )h
= 5+
1
2
sin (0.6) 5( 7.4704) 0.3
3
= 7.4704 27.847
= 35.318
y2 is the approximate value of y at
x = x2 = x1 + h = 0.6 + 0.3 = 0.9
y (0.9) 35.318
= 7.4704 +
3. Given
3
dy
+ y = e 0.1x , y (0.3) = 5
dx
dy
(0.9) using Eulers method is most
dx
(A) 0.37319
(B) 0.36288
(C) 0.35381
(D) 0.34341
Solution
The correct answer is (B).
First rewrite the differential equation in the proper form.
dy 1 0.1x
= e y
dx 3
1
f ( x, y ) = e 0.1x y
3
Eulers method is given by
y i +1 = y i + f ( xi , y i )h
where
h = 0.3
For i = 0 , x0 = 0.3 , y 0 = 5
y1 = y0 + f ( x0 , y0 )h
= 5 + f (0.3,5) 0.3
1
= 5 + e 0.10.3 5 0.3
3
= 5 + ( 0.12056 )
= 4.8794
y1 is the approximate value of y at
x = x1 = x0 + h = 0.3 + 0.3 = 0.6
For i = 1 , x1 = 0.6 , y1 = 4.8794
y2 = y1 + f ( x1 , y1 )h
y (0.9 ) 4.7647
Thus
dy 1 0.1x
= e y
dx 3
dy
(0.9) 1 e0.10.9 4.7647
3
dx
= 0.36288
= 0 + f (2,0) 5
= 0 + (200 ln (1 + 2) 2 ) 5
= 1088.6 m
t1 = t0 + h
= 2+5
=7
For i = 1 , t1 = 7 s , S1 = 1088.61 m
S 2 = S1 + f (t1 , S1 ) h
= 1088.6 + f (7,1088.6) 5
= 1088.6 + (200 ln (1 + 7 ) 7 ) 5
= 1088.6 + 2044.4
= 3133.1 m
S (12) S (2) S 2 S 0
= 3133.1 m
= 2+5
=7
For i = 1 , t1 = 7 s , S1 = C + 1088.61 m
S 2 = S1 + f (t1 , S1 ) h
= C + 1088.6 + f (7,1088.6) 5
= C + 1088.6 + (200 ln (1 + 7 ) 7 ) 5
= C + 1088.6 + 2044.4
= C + 3133.1 m
S (12) S ( 2) S 2 S 0
= C + 3133.1 C
= 3133.1 m
5. Eulers method can be derived by using the first two terms of the Taylor series of writing the
value of yi +1 , that is the value of y at xi +1 , in terms of yi and all the derivatives of y at xi . If
h = x i + 1 x i , the explicit expression for yi +1 if the first three terms of the Taylor series are
chosen for the ordinary differential equation
dy
2 + 3 y = e 5 x , y (0) = 7
dx
would be
1
(A) yi +1 = yi + e 5 xi 3 yi h
2
1
15
(B) yi+1 = yi + e 5 xi 3 yi h e 5 xi h 2
2
22
1
1 13
9
(C) yi+1 = yi + e 5 xi 3 yi h + e 5 xi + yi h 2
2
2 4
4
1
3
(D) yi+1 = yi + e 5 xi 3 yi h yi h 2
2
2
Solution
The correct answer is (C).
The differential equation
dy
2 + 3 y = e 5 x , y (0 ) = 7
dx
is rewritten as
dy 1 5 x
= e 3 y , y (0) = 7
dx 2
1
f ( x, y ) = e 5 x 3 y
2
3! dx
(xi +1 xi )2 + 1 d
xi , y i
(xi +1 xi )3 + ...
xi , y i
1
1
2
3
f ' ( xi , y i )( xi +1 xi ) + f ' ' ( xi , y i )( xi +1 xi ) + ...
2!
3!
If we look at the first three terms of the Taylor series
1
2
yi+1 = yi + f ( xi , yi )( xi+1 xi ) + f ' ( xi , yi )( xi+1 xi )
2!
1
= yi + f ( xi , yi )h + f ' ( xi , yi )h 2
2!
where
h = xi+1 xi
y i +1 = y i + f ( xi , y i )( xi +1 xi ) +
f ( x, y ) =
f f dy
+
x y dx
1
3 1
5e 5 x + e 5 x 3 y
2
2 2
13
9
= e 5 x + y
4
4
then the value of yi+1 is given by
=
yi+1 = yi +
1 5 xi
1 13
9
e 3 yi h + e 5 xi + yi h 2
2
2 4
4
H = Ae kt
(D + k ) = k a
= Ae kt + a
a = 72
(6) = 85
(9) = 78
(B ) = 98.6
where
we get
B = time of death
85 = Ae k6 + 72
78 = Ae k9 + 72
98.6 = Ae k B + 72
Use Equations (1) and (2) to find A and k.
85 = Ae k6 + 72
Ae k6 = 13
78 = Ae k9 + 72
Ae k9 = 6
Dividing Equation (4) by Equation (5) gives
Ae k 6 13
=
Ae k 9
6
3k
e = 2.1667
(1)
(2)
(3)
(4)
(5)
1
(ln(2.1667 ))
3
1
= 0.25773
hours
Knowing the value of k, from Equation (5)
A = 61.028 F
Substitute k and A into Equation (3) to find B.
98.6 = Ae kB + 72
k=