Lecture 2
Lecture 2
P-3
3. Mathematical Modeling of Dynamic Systems
3.2. Differential Equations
â Hence, for the linear system, the response to several inputs can be calcu-
lated by treating one input at a time and adding the results.
P-4
3. Mathematical Modeling of Dynamic Systems
3.2. Differential Equations
â For a LTI system, the physical variables such as voltage, current, force,
velocity are related via a linear operator.
P-5
3. Mathematical Modeling of Dynamic Systems
3.2. Differential Equations
â Similarly for mechanical systems, we have the following relations for the
physical variables. Translational:
Damper F = bv v=
b Z
dv 1
Mass F =m v= F dτ
dt m
R 1 dF
Spring F = k v dτ v=
kτ dt
Rotational
Damper τ = bω ω=
bZ
dω 1
Mass τ =J ω= τ dτ
dt J
R 1 dτ
Spring τ = k ωdτ ω=
k dt
P-6
3. Mathematical Modeling of Dynamic Systems
3.2. Differential Equations
X Kirchhoff’s voltage law(KVL) states that, the algebraic sum of the voltage
in a closed loop is equal to zero.
X
v =0 (2)
P-7
3. Mathematical Modeling of Dynamic Systems
3.3. Differential Equations: Example 1
Example 1: For the following parallel RLC circuit, find the mathematical
model in DE.
P-8
3. Mathematical Modeling of Dynamic Systems
3.3. Differential Equations: Example 1
Example 1: For the following parallel RLC circuit, find the mathematical
model in DE.
dvL (t) 1 t
Z
vL
+C + vL (τ )dτ = r (t) (7)
R dt L 0
P-10
3. Mathematical Modeling of Dynamic Systems
3.3. Differential Equations
Exercise 1: For the following series RLC circuit, find the mathematical
model in DE and find its solution in time domain.
P-11
3. Mathematical Modeling of Dynamic Systems
3.3. Differential Equations: Example 2
P-12
3. Mathematical Modeling of Dynamic Systems
3.3. Differential Equations: Example 2
Solution: By applying Newtons second law of motion for the free body
diagram:
X
F = Ma (9)
r (t) − b ẏ (t) − ky (t) = Ma (10)
P-13
3. Mathematical Modeling of Dynamic Systems
3.3. Differential Equations: Example 2
d 2 y (t) dy (t)
M +b + ky (t) = r (t) (11)
dt 2 dt
Example 3: Consider the rotational system shown in Fig. that consists of
a disk mounted on a shaft that is fixed at one end. Find the mathematical
model in DE.
P-14
3. Mathematical Modeling of Dynamic Systems
3.3. Differential Equations: Example 3
d 2 θ(t) dθ(t)
J +b + kθ(t) = τ (14)
dt 2 dt
P-15
3. Mathematical Modeling of Dynamic Systems
3.3. Differential Equations: Example 4
Example 4: For armature controlled DC motor, find the DE that relates the
input armature voltage va (t) and the output angular displacement θ(t).
τm = km φf ia = kτ ia (15)
dia (t)
va (t) = La + Ra ia (t) + vb (17)
dt
The torque equation for rotational motion is:
d 2 θ(t) dθ(t)
τm = J +b (18)
dt 2 dt
Rearranging Eq. (15), and substituting the above equation for τm
2
τm 1 d θ(t) dθ(t)
ia = = J +b (19)
kτ kτ dt 2 dt
P-17
3. Mathematical Modeling of Dynamic Systems
3.3. Differential Equations: Example 4
P-18
Assignment 1
1. Drive the differential equation given on Figure EM1, below shows an electromagnetic
relay whose armature is loaded with spring K, damper B, mass M and a force generator F.
2. Explain the difference between electromagnetic principle and electro mechanical principle
with examples and application
3. Mathematical Modeling of Dynamic Systems
3.4. Transfer function
The transfer function of a LTI, DE system is defined as the ratio of the Laplace
transform of the output (response function) to the Laplace transform of the input
(driving function) under the assumption that all initial conditions are zero.
â Consider the linear time-invariant system defined by the following differen-
tial equation: (n > m)
P-19
3. Mathematical Modeling of Dynamic Systems
3.4. Transfer function
P-20
3. Mathematical Modeling of Dynamic Systems
3.4. Transfer function
â From the above result, the following types of TF are available based on the
degree of numerator m and denominator n:
X Proper transfer function: (n > m)
X Bi-proper transfer function: (n = m)
X Improper transfer function: (n < m)
Example 1: For the parallel RLC circuit given in page 10, find the mathe-
matical model in TF [Input: Current source; output: inductor current].
P-22
3. Mathematical Modeling of Dynamic Systems
3.4. Transfer function: Example
Example 1: For the parallel RLC circuit given in page 10, find the mathe-
matical model in TF [Input: Current source; output: inductor current].
Solution: The DE model was derived as:
d 2 iL (t) 1 diL (t)
LC + + iL (t) = r (t) (26)
dt 2 R dt
Taking the LT of both sides in the above equation with zero IC:
1
LCs 2 IL (s) + sIL (s) + IL (s) = R(s) (27)
R
1
(LCs 2 + s + 1)IL (s) = R(s) (28)
R
IL (s) 1
= (29)
R(s) 1
LCs 2 + s +1
R
P-23
3. Mathematical Modeling of Dynamic Systems
3.4. Laplace Transform: Example
Example 2: For the mass-spring-damper system in page 12, find the math-
ematical model in TF. [Input: Force r (t), Output: displacement y (t)]
P-24
3. Mathematical Modeling of Dynamic Systems
3.4. Laplace Transform: Example
Example 2: For the mass-spring-damper system in page 12, find the math-
ematical model in TF. [Input: Force r (t), Output: displacement y (t)]
Solution: The DE for the above system is:
d 2 y (t) dy (t)
M +b + ky (t) = r (t) (30)
dt 2 dt
Taking Laplace transform of the above equation with zero IC:
Y (s) 1
= 2
(33)
R(s) Ms + bs + k
P-25
3. Mathematical Modeling of Dynamic Systems
3.4. Transfer function: Example
P-26
3. Mathematical Modeling of Dynamic Systems
3.4. Transfer function: Example
di1 (t)
vi (t) = L1 + R(i1 (t) − i2 (t)) (34)
dt
Similarly, applying KVL for loop2:
di2 (t)
0 = L2 + R(i2 (t) − i1 (t)) + vo (t); i2 (t) = iC (t) (35)
dt
P-27
3. Mathematical Modeling of Dynamic Systems
3.4. Transfer function: Example
d L2 C d 2 vo (t)
dvo (t) 1
vi (t) = L1 +C + vo (t) +
dt R dt 2 dt R
L2 C d 2 vo (t) dvo (t) 1 dvo (t)
R( 2
+C + vo (t) − C )
R dt dt R dt
L1 L2 C d 3 vo (t) d 2 vo (t) L1 dvo (t)
= + (L 1 + L2 )C + + vo (t)
R dt 3 dt 2 R dt
(37)
L1 L2 C 3 L 1
=⇒ Vi (s) = s Vo (s) + (L1 + L2 )Cs 2 Vo (s) + sVo (s) + Vo (s)
R R
P-28 (38)
3. Mathematical Modeling of Dynamic Systems
3.4. Transfer function: Example
L1 L2 C 3 L1
Vi (s) = ( s + (L1 + L2 )Cs 2 + s + 1)Vo (s) (39)
R R
Finally,the transfer function is
Vo (s) 1
∴ = (40)
Vi (s) L L
1 2 C L1
s 3 + (L1 + L2 )Cs 2 + s + 1
R R
P-29
3. Mathematical Modeling of Dynamic Systems
3.4. Transfer function: Example
Example 4: For armature controlled DC motor given in page 16, find the
TF that relates the input armature voltage Va (s) and the output angular
displacement Θ(s).
P-30
3. Mathematical Modeling of Dynamic Systems
3.4. Transfer function: Example
Example 4: For armature controlled DC motor given in page 16, find the
TF that relates the input armature voltage Va (s) and the output angular
displacement Θ(s).
Solution: Taking the LT of eeach equations with zero IC:
dθ
vb = kb ω = kb =⇒ Vb (s) = kb sΘ(s) (42)
dt
dia (t)
va (t) = La + Ra ia (t) + vb =⇒ Va (s) = La sIa (s) + Ra Ia (s) + Vb (s)
dt
(43)
d 2 θ(t) dθ(t)
τm = J 2
+b =⇒ τm (s) = Js 2 Θ(s) + bsΘ(s) (44)
dt dt
P-31
3. Mathematical Modeling of Dynamic Systems
3.4. Transfer function: Example
1
Js 2 Θ(s) + bsΘ(s)
Ia (s) = (45)
kτ
1 2
1 2
Va (s) =La s Js Θ(s) + bsΘ(s) + Ra Js Θ(s) + bsΘ(s)
kτ kτ
+ kb sΘ(s) (46)
1
La Js 3 + (La b + Ra J)s 2 + (Ra b + kτ kb )s Θ(s)
Va (s) = (47)
kτ
Θ(s) kτ
= (48)
Va (s) La Js 3 + (La b + Ra J)s 2 + (Ra b + kτ kb )s
P-32
3. Mathematical Modeling of Dynamic Systems
3.4. Transfer function: Example
P-33
3. Mathematical Modeling of Dynamic Systems
3.4. Transfer function: Example
i1 = i2 + i3 (52)
ei − e 0 d(e 0 − eo ) e 0 − eo
=C + (53)
R1 dt R2
P-34
3. Mathematical Modeling of Dynamic Systems
3.4. Transfer function: Example
Since e 0 = 0
ei deo eo
= −C − (54)
R1 dt R2
Taking the Laplace transform of this last equation, assuming the zero initial
condition, we have
Ei (s) 1
= −(Cs + )Eo (s) (55)
R1 R2
Which can be written as:
Eo (s) R2 1
=− (56)
Ei (s) R1 R2 Cs + 1
P-35
3. Mathematical Modeling of Dynamic Systems
3.4. Transfer function: Example
P-36