Professional Documents
Culture Documents
Midterm 02 2
Midterm 02 2
Kuryel
23.12.2023
Midterm_02
1. Solve the following ordinary differential equation by Laplace transform. Find the
value of the response after 1.2 units of time.
0; t 0
dy
5y f (t ) 10; 0 t 7
dt 0
t 7
y(0) 0
1
MATH 207 B. Kuryel
d2y dy
2
2 2y et , y(0) 0 ve y (0) 1.
dt dt
1
s2 y(s) sy(0) y (0) 2 sy(s) y(0) 2y(s)
s 1
1
s2 y(s) 1 2sy(s) 2y(s)
s 1
1 s2 s2
(s2 2s 2)y(s) 1 y(s)
s 1 s 1 (s 1)(s2 2s 2)
s2 A Bs C 1 1 8
y(s) A ,B ,C
(s 1)(s 2s 2) s 1 s 2s 2
2 2 5 5 5
1 1 1 s 8 1
y(s)
5 s 1 5 s 2s 2 5 s 2s 2
2 2
1 1 1 s 8 1
y(s)
5 s 1 5 (s 2s 1) 1 5 (s 2s 1) 1
2 2
1 1 1 s 8 1
y(s)
5 s 1 5 (s 1) 1 5 (s 1)2 1
2
1 1 1 s 11 8 1
y(s)
5 s 1 5 (s 1)2 1 5 (s 1)2 1
1 1 1 s 1 7 1
y(s)
5 s 1 5 (s 1)2 1 5 (s 1)2 1
1 t 1 t 7
y(t ) e e cos t et sin t
5 5 5
t 2
y (t ) 0 e y(t )d 3; y(0) 0
1 3
sy(s) y(0) y(s)
s2 s
1 3 s2 2s 1 3
y(s) s y(s)
s 2 s
s2 s
3s 6 A B C
y(s) A 6, B 6, C 3
s(s 1)2 s s 1 (s 1)2
y(t ) 6 6et 3tet
2
MATH 207 B. Kuryel
4. Solve the following first-order initial value problem by the “Explicit Euler” and
“Improved Euler (Heun)” methods and compare the %relative errors of the two
methods for two steps:
dy t 1
, y(0) 1, 0 t 1, h 0.5
dt y 1
Result =
0 1 1 1 0 0
0.5 1.25 1.2917 1.2913 3.1974 0.029337
1 1.5833 1.6462 1.6458 3.7927 0.028479
5. Solve the following boundary value problem numerically by approximating the first and
second derivatives by central differences:
y 4y 4y cos(x)
y(0) 1
y(2) 3
Augmented Matrix
3
MATH 207 B. Kuryel
Solution =
x y
___ ______
0 1
0.4 19.991
0.8 15.075
1.2 9.2306
1.6 5.3315
2 3
6. Bonus
2 1
x1 et and x2 e2t are linearly independent.
1 0
2et e2t t
W e 0 . So, they are linearly independent.
1 0
—///—