KKKM3473 System Dynamics & Control Engineering: Assoc. Prof. Dr. Sallehuddin M. Haris
KKKM3473 System Dynamics & Control Engineering: Assoc. Prof. Dr. Sallehuddin M. Haris
Assoc. Prof. Dr. Sallehuddin M. Haris KKKM3473 System Dynamics & Control Engineering May 20, 2021 2 / 20
Solution to ODEs
Step 1
Find the solution xh (t) to the homogeneous equation
Assoc. Prof. Dr. Sallehuddin M. Haris KKKM3473 System Dynamics & Control Engineering May 20, 2021 3 / 20
Solution to ODEs
Substitute (2) into (1)
d2 d
2
Ceλt + a1 Ceλt + a0 Ceλt = 0
dt dt
λ Ce + a1 λCeλt + a0 Ceλt = 0
2 λt
h i
Ceλt λ2 + a1 λ + a0 = 0 (3)
λ2 + a1 λ + a0 = 0 (4)
where λ1 and λ2 are the roots of (4) and C1 and C2 are constants.
Assoc. Prof. Dr. Sallehuddin M. Haris KKKM3473 System Dynamics & Control Engineering May 20, 2021 4 / 20
Solution to ODEs
Step 2
Find the particular integral
The method of undetermined coefficients is often used.
Some particular integrals using this method are as follows:
Assoc. Prof. Dr. Sallehuddin M. Haris KKKM3473 System Dynamics & Control Engineering May 20, 2021 5 / 20
Solution to ODEs
Step 3
Obtain the complete solution adding the particular integral to the
homogeneous solution.
Assoc. Prof. Dr. Sallehuddin M. Haris KKKM3473 System Dynamics & Control Engineering May 20, 2021 6 / 20
Example
Given
Assoc. Prof. Dr. Sallehuddin M. Haris KKKM3473 System Dynamics & Control Engineering May 20, 2021 7 / 20
Example
First, find the solution to the homogeneous equation
Then,
h i
Ceλt λ2 + 5λ + 6 = 0
λ2 + 5λ + 6 = 0
(λ + 2) (λ + 3) = 0
λ1 = −2, λ2 = −3
Hence,
xh (t) = C1 e−2t + C2 e−3t
Assoc. Prof. Dr. Sallehuddin M. Haris KKKM3473 System Dynamics & Control Engineering May 20, 2021 8 / 20
Example
Then, find the particular integral.
xp (t) = K (8)
Then,
d
ẋp (t) = K = 0, (9)
dt
d
ẍp (t) = 0 = 0 (10)
dt
Assoc. Prof. Dr. Sallehuddin M. Haris KKKM3473 System Dynamics & Control Engineering May 20, 2021 9 / 20
Example
Assoc. Prof. Dr. Sallehuddin M. Haris KKKM3473 System Dynamics & Control Engineering May 20, 2021 10 / 20
Example
d
x |t=0 = −2C1 e−2(0) − 3C2 e−3(0) + 0 = 0
dt
−2C1 − 3C2 = 0 (12)
Assoc. Prof. Dr. Sallehuddin M. Haris KKKM3473 System Dynamics & Control Engineering May 20, 2021 11 / 20
Example
Assoc. Prof. Dr. Sallehuddin M. Haris KKKM3473 System Dynamics & Control Engineering May 20, 2021 12 / 20
The Laplace Transform
n o
L f (n) = sn F (s) − sn−1 f (0) − sn−2 f 0 (0) − . . . sf n−2 (0) − f n−1 (0)
Assoc. Prof. Dr. Sallehuddin M. Haris KKKM3473 System Dynamics & Control Engineering May 20, 2021 13 / 20
The Laplace Transform - Example
Given
Assoc. Prof. Dr. Sallehuddin M. Haris KKKM3473 System Dynamics & Control Engineering May 20, 2021 14 / 20
The Laplace Transform - Example
Taking Laplace transforms on both sides gives
Assoc. Prof. Dr. Sallehuddin M. Haris KKKM3473 System Dynamics & Control Engineering May 20, 2021 15 / 20
The Laplace Transform - Example
1 = A (s + 2) (s + 3) + Bs (s + 3) + Cs (s + 2) (13)
Assoc. Prof. Dr. Sallehuddin M. Haris KKKM3473 System Dynamics & Control Engineering May 20, 2021 16 / 20
The Laplace Transform - Example
From (13), let s = 0, then
6A = 1
1
A=
6
From (13), let s = −2, then
−2B = 1
1
B=−
2
From (13), let s = −3, then
3C = 1
1
C=
3
Assoc. Prof. Dr. Sallehuddin M. Haris KKKM3473 System Dynamics & Control Engineering May 20, 2021 17 / 20
The Laplace Transform - Example
Hence,
A B C
X (s) = + +
s s+2 s+3
1 1 1
= − +
6s 2 (s + 2) 3 (s + 3)
Assoc. Prof. Dr. Sallehuddin M. Haris KKKM3473 System Dynamics & Control Engineering May 20, 2021 18 / 20
Transfer Functions
Assoc. Prof. Dr. Sallehuddin M. Haris KKKM3473 System Dynamics & Control Engineering May 20, 2021 19 / 20
Transfer Functions - Example
X (s) 1
G (s) = = 2
U (s) s + 5s + 6
Assoc. Prof. Dr. Sallehuddin M. Haris KKKM3473 System Dynamics & Control Engineering May 20, 2021 20 / 20