MBD Final Exam 2019 Model Answer PDF

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

Q4) [12 marks] Consider the initial value problem:

5𝑦𝑦̇ + 3𝑦𝑦 − 𝑦𝑦 sin(5𝑡𝑡) = cos(𝑡𝑡) , 𝑦𝑦(0) = 0


Approximate the value of 𝑦𝑦(ℎ), 𝑦𝑦(2ℎ) and 𝑦𝑦(3ℎ) where ℎ = 0.1 s using
a) Forward Euler,
𝑦𝑦𝑘𝑘+1 = 𝑦𝑦𝑘𝑘 + ℎ𝑓𝑓(𝑦𝑦𝑘𝑘 , 𝑡𝑡𝑘𝑘 )
1
𝑦𝑦1 = 𝑦𝑦0 + ℎ � �cos(𝑡𝑡0 ) + 𝑦𝑦0 (sin(5𝑡𝑡0 ) − 3)��
5
1
𝑦𝑦1 = 0.1 + 0.1 � �cos(0) + 0(sin(0) − 3)�� = 0.02
5
1
𝑦𝑦2 = 0.02 + 0.1 � �cos(0.1) + 0.02(sin(0.5) − 3)�� = 0.0389
5
1
𝑦𝑦3 = 0.0389 + 0.1 � �cos(0.2) + 0.0389(sin(1) − 3)�� = 0.0568
5
b) Backward Euler.
𝑦𝑦𝑘𝑘+1 = 𝑦𝑦𝑘𝑘 + ℎ𝑓𝑓(𝑦𝑦𝑘𝑘+1 , 𝑡𝑡𝑘𝑘+1 )
1
𝑦𝑦𝑘𝑘+1 = 𝑦𝑦𝑘𝑘 + ℎ � �cos(𝑡𝑡𝑘𝑘+1 ) + 𝑦𝑦𝑘𝑘+1 (sin(5𝑡𝑡𝑘𝑘+1 ) − 3)��
5
0.1
𝑦𝑦𝑘𝑘 + cos(𝑡𝑡𝑘𝑘+1 )
𝑦𝑦𝑘𝑘+1 = 5
0.1
(sin(5𝑡𝑡𝑘𝑘+1 ) − 3)
1−
5
0.1
0+ cos(0.1)
𝑦𝑦1 = 5 = 0.0189
0.1
1− (sin(0.5) − 3)
5
0.1
0.0189 + cos(0.2)
𝑦𝑦2 = 5 = 0.0369
0.1
1− (sin(1) − 3)
5
0.1
0.0369 + cos(0.3)
𝑦𝑦3 = 5 = 0.0539
0.1
1− (sin(1.5) − 3)
5
Q5) [10 marks] (a) Write the differential equation corresponding to the Simulink model
shown in Fig. 4 and Fig. 5.

Fig. 5
Fig. 4
𝑦𝑦⃛ = 2 − 3 sin 𝑦𝑦
𝑦𝑦̈ = −5𝑦𝑦̇ − 100𝑦𝑦

Page 4 of 5
(b) Draw the Simulink corresponding to the ordinary differential equation:
i. 2𝑦𝑦̈ + 4𝑦𝑦̇ + 600𝑦𝑦 = 10

ii. 𝑦𝑦⃛ = 5𝑦𝑦 + 6

Dr. Ahmed Asker




Page 5 of 5

You might also like