Ch02(1)
Ch02(1)
Models of Systems
(Ch 2)
1
What is a Model?
A model is a simplified representation or
abstraction of reality. Reality is generally too
complex to model exactly.
2
What is Mathematical Model?
A set of mathematical equations (e.g., differential
eqs.) that describes the input-output behavior of a
system.
What is a model used for?
• Simulation
• Prediction/Forecasting
• Prognostics/Diagnostics
• Design/Performance Evaluation
• Control System Design 3
Ways to Study a System
System
Analytical Solution
Simulation
4
A Real-Life Example:
A model of door closer
y(t)
k
f(t)
b
𝐹 = 𝑚𝑦ሷ
𝑚𝑦(𝑡)
ሷ = 𝑓(𝑡) − 𝑏𝑦(𝑡)
ሶ − 𝑘𝑦(𝑡)
𝑓(𝑡) = 𝑚𝑦(𝑡)ሷ + 𝑏𝑦(𝑡)ሶ + 𝑘𝑦(𝑡)
is this a linear differential equation?
Linear vs Nonlinear
Differential Equations
𝑎𝑦ሷ 𝑡 + 𝑏𝑦ሶ 𝑡 + 𝑐𝑦 𝑡 = 𝑑
Linear:
a, b, c, d are constants or functions of time
2𝑦ሷ 𝑡 + 3𝑦ሶ 𝑡 + 5𝑦 𝑡 = 1
𝑦ሷ 𝑡 + 𝑡𝑦ሶ 𝑡 + 5𝑦 𝑡 = 3𝑡
Nonlinear:
a, b, c, d are functions of “y” or there are some transcendental
functions (e.g. sin y, ey, log y) in the differential equation
𝑦𝑦ሷ 𝑡 + 3𝑦ሶ 𝑡 + 5𝑦 𝑡 = 1
𝑦ሷ 𝑡 + 𝑠𝑖𝑛 𝑦 𝑦ሶ 𝑡 + 5𝑦 𝑡 = 1
6
Linear Systems
A linear system satisfies the following properties:
– Superposition
𝑥1 S 𝑦1 𝑥2 S 𝑦2
𝑥1 + 𝑥2 𝑦1 + 𝑦2
S
– Homogeneity
𝑥1 S 𝑦1
𝛼𝑥1 S 𝛼𝑦1
7
Example
𝑦 = 𝑥2 is it a linear system?
8
Linearization
If the system is nonlinear, you can linearize it
using the first two terms of Taylor Series around
an operating point 𝑥 = 𝑥0
𝑥 − 𝑥0 𝑥 − 𝑥0 2
𝑦 𝑥 = 𝑦 𝑥0 + 𝑦ሶ 𝑥0 + 𝑦ሷ 𝑥0 +⋯
1! 2!
9
Example
Linearize 𝑦 = 𝑥 2 around the operation point of x0 =3
𝑥 − 𝑥0
𝑦 𝑥 = 𝑦 𝑥0 + 𝑦ሶ 𝑥0 + …
1!
10
Example
massless rod
11
Example
𝑇 = 𝐼 𝜃ሷ
T(t) ሷ
𝑇 𝑡 − 𝑀𝑔𝐿 𝑆𝑖𝑛 𝜃 𝑡 = 𝑚𝐿2 𝜃(𝑡)
𝜕 𝑆𝑖𝑛 𝜃
𝑆𝑖𝑛 𝜃 ≈ 𝑆𝑖𝑛 𝜃0 + |𝜃=𝜃0 (𝜃 − 𝜃0 )
𝜕𝜃
massless rod
𝑆𝑖𝑛 𝜃 ≈ 𝜃
ሷ
𝑇 𝑡 − 𝑀𝑔𝐿𝜃 𝑡 = 𝑚𝐿2 𝜃(𝑡)
12
More Examples on Linearization
Obtain EoM
q(t)
F(t)
Obtain EoM
fspring = ex -1
13
How to Solve Differential Equations?
Algebraic
Equations
Laplace
Differential Laplace
Transform
Equations: Equations:
Difficult to Easier to
solve solve
Inverse Laplace
Transform
Solutions
14
Laplace Transforms
∞
• 𝐹 𝑠 = 0− 𝑓 𝑡 𝑒 −𝑠𝑡 𝑑𝑡 = L 𝑓 𝑡
1 𝜎+𝑗∞
• 𝑓 𝑡 = 𝜎−𝑗∞
𝐹 𝑠 𝑒 +𝑠𝑡 𝑑𝑠
2𝜋𝑗
15
16
Example: Mass Spring Damper
System under External Force
𝑘𝑦
𝑓 𝑓
𝑏𝑦ሶ
𝑚𝑦(𝑡)
ሷ + 𝑏𝑦(𝑡)
ሶ + 𝑘𝑦(𝑡) = 𝑓(𝑡)
17
Example: Mass-Spring-Damper
• 𝑚𝑦(𝑡)
ሷ + 𝑏𝑦(𝑡)
ሶ + 𝑘𝑦(𝑡) = 𝑓(𝑡)
• L 𝑦(𝑡) = 𝑌(𝑠)
• L 𝑦ሶ (𝑡) = 𝑌(𝑠) − 𝑠𝑦 0−
• L 𝑦(𝑡)
ሷ = 𝑠 2 𝑌 𝑠 − 𝑠𝑦 0− − 𝑦(0
ሶ −)
• L 𝑓(𝑡) = 𝐹(𝑠)
• 𝑚 𝑠 2 𝑌 𝑠 − 𝑠𝑦 0− − 𝑦ሶ 0− + 𝑏 𝑠𝑌 𝑠 − 𝑦 0− + 𝑘𝑌 𝑠 = 𝐹 𝑠
• 𝑓 𝑡 =0 →F s =0 𝑦
• 𝑦 0− = y0 𝑘𝑦
𝑓
• 𝑦ሶ 0− = 0
𝑏𝑦ሶ
18
Example: Mass-Spring-Damper
𝑚𝑠 2 𝑌 𝑠 − 𝑚𝑠𝑦0 + 𝑏𝑠𝑌 𝑠 − 𝑏𝑦0 + 𝑘𝑌 𝑠 = 0
Solving for 𝑌 𝑠 ,
𝑚𝑠 + 𝑏 𝑦0
𝑌 𝑠 =
𝑚𝑠 2 + 𝑏𝑠 + 𝑘
𝑝 𝑠
𝑌 𝑠 =
𝑞 𝑠
𝑞 𝑠 : Characteristic Equation, roots of the polynomial are called “poles”
𝑝 𝑠 : roots of this polynomial called “zeros”
The complex plane plot of the poles and zeros graphically portrays the character
of the natural transient response of the system.
19
Example: Mass-Spring-Damper
𝑚𝑠 + 𝑏 𝑦0
𝑌 𝑠 =
𝑚𝑠 2 + 𝑏𝑠 + 𝑘
Let’s assume
y0 = 1 m, m = 1 kg, b = 3 Nm/s, k = 2 N/m
𝑠+3 O X X
𝑌 𝑠 =
(𝑠 + 1)(𝑠 + 2) -3 -2 -1
𝑠+3
𝑌 𝑠 = 𝑠+3 +2j X
𝑠2 + 4 𝑠 + 4 2 X +2j 𝑌 𝑠 =
𝑠2 − 6𝑠 + 13
XX O O
+3
-4 -3 -3
X -2j -2j X
Example: Mass-Spring-Damper
𝑚𝑠 + 𝑏 𝑦0
𝑌 𝑠 =
𝑚𝑠 2 + 𝑏𝑠 + 𝑘
Let’s assume
y0 = 1 m, m = 1 kg, b = 3 Nm/s, k = 2 N/m
𝑠+3 𝑠+3
𝑌 𝑠 = 2 =
(𝑠 + 3𝑠 + 2) (𝑠 + 1)(𝑠 + 2)
Laplace
Differential Laplace
Transform
Equations: Equations:
Difficult to Easier to
solve solve
21
Example: Mass-Spring-Damper
𝑠+3 𝐴 𝐵
• 𝑌 𝑠 = = +
(𝑠+1)(𝑠+2) 𝑠+1 𝑠+2
𝐴 𝑠+2 +𝐵(𝑠+1) 𝑠+3
=
(𝑠+1)(𝑠+2) (𝑠+1)(𝑠+2)
• 𝐴𝑠 + 2𝐴 + 𝐵𝑠 + 𝐵 = 𝑠 + 3
𝐴+𝐵 =1 𝐴=2
ൠ→
2𝐴 + 𝐵 = 3 𝐵 = −1
𝐴 𝐵 2 1
• 𝑌 𝑠 = + = −
𝑠+1 𝑠+2 𝑠+1 𝑠+2
22
Example: Mass-Spring-Damper
2 1
• 𝑌 𝑠 = −
𝑠+1 𝑠+2
1 1
• 𝑦 𝑡 =2 L−1 − L−1
𝑠+1 𝑠+2
1
• L 𝑒 −𝑎𝑡 → (using Table 2.3)
𝑠+𝑎
−1
1
L = 𝑒 −𝑡
𝑠+1
1
L−1 = 𝑒 −2𝑡
𝑠+2
• 𝑦 𝑡 = 2𝑒 −𝑡 − 𝑒 −2𝑡
23
Inverse Laplace: Method of
Partial Fractions
𝑝 𝑠
• 𝑌 𝑠 =
𝑞 𝑠
Rules:
1. The degree of 𝑝 𝑠 must be less than or equal to
that of 𝑞 𝑠 . Otherwise, divide 𝑝 𝑠 by 𝑞 𝑠 and
work with the remaining terms.
2. We must know the factors of 𝑞 𝑠 .
24
Possible Cases:
25
Case B) Repeated poles
…….. 𝐴 𝐵 𝐶
• 𝑌 𝑠 = = + +
𝑠+2 3 𝑠+2 𝑠+2 2 𝑠+2 3
…….. 𝐴𝑠+𝐵 𝐶𝑠+𝐷
• 𝑌 𝑠 = = + 2
(𝑠 2 +5𝑠+3)2 𝑠 2 +5𝑠+3 (𝑠 +5𝑠+3)2
26
Example
−2𝑠+4
• Y(s) = y(t) = ?
𝑠2 +1 𝑠−1 2
−2𝑠+4 𝐴𝑠+𝐵 𝐶 𝐷
• = + +
𝑠2 +1 𝑠−1 2 𝑠2 +1 𝑠−1 𝑠−1 2
• −2𝑠 + 4 = 𝐴𝑠 + 𝐵 𝑠 − 1 2 +
𝐶 𝑠 − 1 𝑠 2 + 1 + 𝐷(𝑠 2 + 1)
𝐴=2
𝐵=1 2𝑠+1 2 1
• ൢ→ 2 − +
𝐶 = −2 𝑠 +1 𝑠−1 𝑠−1 2
𝐷=1
27
Example Cont’d
2𝑠+1 2 1
• 𝑌 𝑠 = − +
𝑠 2 +1 𝑠−1 𝑠−1 2
𝑠 1 2 1
• 𝑌 𝑠 = 2 2 + 2 − +
𝑠 +1 𝑠 +1 𝑠−1 𝑠−1 2
𝑠 𝑠
→ → cos(𝜔𝑡), where 𝜔 = 1
𝑠 2 +1 𝑠 2 +𝜔2
1 𝜔
→ → sin(𝜔𝑡), where 𝜔 = 1
𝑠 2 +1 𝑠 2 +𝜔2
1 1 −𝑎𝑡
𝑠−1
→ 𝑠+𝑎
→ 𝑒 , where 𝑎 = −1
1 𝑛! 𝑛 −𝑎𝑡
𝑠−1 2 → 𝑠+𝑎 𝑛+1 → 𝑡 𝑒 , where n=1 & 𝑎 = −1
• 𝑦 𝑡 = 2cos(𝑡) + sin(𝑡) − 2𝑒 𝑡 + 𝑡𝑒 𝑡
28
Final Value Theorem
• In control systems, it is usually desired to
determine the steady state value or final value
of the response 𝑦 𝑡
𝑚𝑠 + 𝑏 𝑦0
𝑌 𝑠 =
𝑚𝑠 2 + 𝑏𝑠 + 𝑘
29
Final Value Theorem
• The final value theorem states that:
𝑠+3 𝑠+3
𝑌 𝑠 = 2 =
(𝑠 + 3𝑠 + 2) (𝑠 + 1)(𝑠 + 2)
𝑠+3
yss = lim 𝑠𝑌(𝑠) = lim 𝑠 =0
𝑠→0 𝑠→0 (𝑠+1)(𝑠+2)
Verify:
𝑠+3 2 1
𝑌 𝑠 = = −
(𝑠 + 1)(𝑠 + 2) 𝑠 + 1 𝑠 + 2
𝑦 𝑡 = 2𝑒 −𝑡 − 𝑒 −2𝑡
yss = 𝑦 𝑡 → ∞ = lim 𝑦(𝑡) = 0 31
𝑡→∞
General Analysis of
Second Order Systems
Example: Mass-spring-damper system
𝑚𝑠 + 𝑏 𝑦0
𝑌 𝑠 =
𝑚𝑠 2 + 𝑏𝑠 + 𝑘
Generalized Form:
𝑠 + 𝑏/𝑚 𝑦0
𝑌 𝑠 =
𝑘
𝑠 2 + (𝑏/𝑚)𝑠 + ( )
𝑚
𝑠 + 2𝜁𝜔𝑛 𝑦0
𝑌 𝑠 = 2
𝑠 + 2𝜁𝜔𝑛 𝑠 + 𝜔𝑛2 Characteristic Equation
1) 𝜁 > 1 OVERDAMPED X X
Roots are real and distinct
X
2) 0 < 𝜁 < 1 UNDERDAMPED
Roots are complex X
Fastest non-oscillatory
response
3) 𝜁 = 1 CRITICALLY DAMPED XX
Roots are real and equal
General Analysis of
Second Order Systems
1) 𝜻 > 1 OVERDAMPED
Example:
General Analysis of
Second Order Systems
1) 𝜻 > 1 OVERDAMPED
Example:
𝑠+3 Poles:
𝑌 𝑠 = 2
(𝑠 + 3𝑠 + 2) 𝑠2 + 3𝑠 + 2 = 0
𝑠1,2 = −1, −2
q(s) = 𝑠 2 + 2𝜁𝜔𝑛 𝑠 + 𝜔𝑛2
Zeros:
𝜔𝑛 = 2 𝑠+3= 0
2𝜁𝜔𝑛 = 3 𝑠 = −3
Characteristic Equation:
q(s) = 𝑠 2 + 2𝜁𝜔𝑛 𝑠 + 𝜔𝑛2
𝑠1,2 = −𝜁𝜔𝑛 ± 𝜔𝑛 𝜁 2 − 1
𝑠1,2 = −𝜁𝜔𝑛 ± 𝜔𝑛 𝑗2(1 − 𝜁 2 )
𝜔𝑑
Damped Natural
Frequency
𝑗𝜔𝑛 1 − 𝜁 2
𝜔𝑑 𝜁𝜔𝑛 𝜃
−𝜁𝜔𝑛
𝜔𝑑
−𝑗𝜔𝑛 1 − 𝜁 2
38
General Analysis of
Second Order Systems
2) 0 < 𝜻 < 1 UNDERDAMPED
Example:
𝑠+6 Poles:
𝑌 𝑠 = 2
(𝑠 + 6𝑠 + 25) 𝑠2 + 6𝑠 + 25 = 0
𝑠1,2 = −3 ±4𝑗
q(s) = 𝑠 2 + 2𝜁𝜔𝑛 𝑠 + 𝜔𝑛2
Zeros:
𝜔𝑛 = 25 = 5 Hz 𝑠+6= 0
2𝜁𝜔𝑛 = 6 𝑠 = −6
𝜁= 6/(2∗ 5) = 0.6 < 1, Underdamped
X +4j
O
-6 -3
X -4j
𝑠+6 𝑠+3 4 3
𝑌 𝑠 = 2 = +
𝑠+3 +42 𝑠+3 +42 4 𝑠+3 2+42
2
4
𝑦 𝑡 = 𝑒 −3𝑡 [cos 4𝑡 + sin(4𝑡)]
3
1
𝑠1,2 = −3 ±4𝑗
𝑠1,2 = −𝜁𝜔𝑛 ± 𝑗𝜔𝑑
4
𝑦 𝑡 = 𝑒 −𝜁𝜔𝑛 𝑡 [cos 𝜔𝑑 𝑡 + sin(𝜔𝑑 𝑡)]
3
General Analysis of
Second Order Systems
3) 𝜻 = 1 CRITICALLY DAMPED
𝜁 = b/(2 𝑘𝑚)
𝜁 = 1 (critically damped)
b=2 𝑘𝑚
General Analysis of
Second Order Systems
3) 𝜻 = 1 CRITICALLY DAMPED
𝑓(𝑡) = 𝑚𝑦(𝑡)
ሷ + 𝑏𝑦(𝑡)
ሶ + 𝑘𝑦(𝑡)
𝑌(𝑠) 1
=
𝐹(𝑠) 𝑚𝑠 2 + 𝑏𝑠 + 𝑘 Characteristic Equation
1
𝑠1,2 = ( )(−𝑏/𝑚 ± 𝑏 2 − 4𝑚𝑘)
2
For critically damped response (fastest non-oscillatory response)
𝑏 2 − 4𝑚𝑘 = 0 𝑏 = 2 𝑚𝑘
L output
𝑇 𝑠 =
L input
44
Mathematical Modeling of
Mechanical Systems
45
Basic Types of Mechanical Systems
• Translational
– Linear Motion
• Rotational
– Rotational Motion
46
Basic Elements of Translational
Mechanical Systems
Translational Spring
i)
Translational Mass
ii)
Translational Damper
iii)
Translational Spring
Model:
Force = Stiffness Coefficient x Displacement
F 𝐹 = 𝑘𝑦
Translational Spring
48
Reaction force of spring to
displacement
𝑦
𝑘𝑦
𝑘𝑦
Equilibrium 49
Translational Mass
Model:
Force = Mass x Acceleration
𝑦
𝐹 = 𝑚𝑦ሷ
50
Springs in Parallel and Series
𝐹 = 𝑘1 𝑥 + 𝑘2 𝑥 𝐹 = 𝑘1 𝑦 = 𝑘2 (𝑥 − 𝑦)
51
Translational Damper
Model:
Force = Damping Coefficient x Velocity
𝐹
𝐹 = 𝑏𝑦ሶ
52
Common Uses of Dashpots
Door Stoppers
Vehicle Suspension
Bridge Suspension
Reaction force of damper to motion
𝑏𝑦ሶ
𝑏𝑦ሶ
Equilibrium 54
Dampers in Parallel and Series
𝐹 𝐹
𝐹 = 𝑏1 (𝑦ሶ − 𝑥)
ሶ + 𝑏2 (𝑦ሶ − 𝑥)
ሶ 𝐹 = 𝑏1 (𝑧ሶ − 𝑥)
ሶ = 𝑏2 (𝑦ሶ − 𝑧)ሶ
55
Equation of Motion, Example
(OUTPUT)
(+)
M k1
k2
f(t)
(INPUT)
M k1
k2
f(t)
(INPUT)
57
Equation of Motion, Example
(OUTPUT)
(+)
(+) 𝐹 = 𝑚𝑦ሷ k2
f(t)
(INPUT)
𝑘1𝑦(𝑡)
𝑏𝑦ሶ 𝑡 a) Fix “M” (u = 0) and move “m” (y ≠ 0)
−𝑏𝑦ሶ 𝑡 − 𝑘1𝑦 𝑡 = 𝑚𝑦ሷ 𝑡
k2
(+) f(t)
𝐹 = 𝑀𝑢ሷ (INPUT)
𝑘1𝑦(𝑡)
a) Fix “M” (u = 0) and move “m” (y ≠ 0)
𝑏𝑦ሶ 𝑡
+𝑏𝑦ሶ 𝑡 + 𝑘1𝑦 𝑡 = 0
𝑘2𝑢(𝑡)
𝑘1𝑢(𝑡)
b) Fix “m” (y = 0) and move “M” (u ≠ 0)
𝑏𝑢ሶ 𝑡
f(t) −𝑏𝑢ሶ 𝑡 − 𝑘1𝑢 𝑡 − 𝑘2𝑢 𝑡 + 𝑓(𝑡) = 𝑀𝑢ሷ 𝑡
𝑼(𝒔) (𝒔𝟐 + 𝒔 + 𝟏)
=
𝑭(𝒔) (𝒔𝟒 + 𝟐𝒔𝟑 + 𝟑𝒔𝟐 + 𝒔 + 𝟏)
59
Equation of Motion, Example
Question:
60
Equation of Motion, Example
m1
m2
61
Equation of Motion, Example
EoM for “m1” 𝐹 = 𝑚1 𝑦ሷ 1
m1
b) Fix “m2” (y2 = 0) and move “m1” (y1 ≠ 0)
(+) +
m2
EoM for “m2” 𝐹 = 𝑚2 𝑦ሷ 2
63
Basic Elements of Rotational Mechanical Systems
Rotational Spring
q2 q1
T = k (q1 − q 2 )
Moment of Inertia q
T = Jq
T
Rotational Damper
b
q2 q1
T
T = b(q1 − q2 )
Equation of Motion, Example
Jlink
Tm(t)
Motor
Jlink
k Qshaft
Link Shaft (15 m)
A
b) Fix the motor shaft (Qshaft = 0) and rotate the link (Qlink ≠ 0)
k Qlink Motor
+
𝑇 = 𝐽𝑠ℎ𝑎𝑓𝑡 𝜃ሷ 𝑠ℎ𝑎𝑓𝑡
Jlink
k Qlink
Qlink
mg A
mg Cos(Qlink)L +
𝑇 = 𝐽𝐴 𝜃ሷ 𝑙𝑖𝑛𝑘
69
Basic Elements of Electrical Systems
• The time domain expression relating voltage and current for the
resistor is given by Ohm’s law
v R (t ) = iR (t )R
• The Laplace transform of the above equation is
VR ( s ) = I R ( s ) R
Basic Elements of Electrical Systems
• The time domain expression relating voltage and current for the
capacitor is given as:
1
vc (t ) = ic (t )dt
C
• The Laplace transform of the above equation is
1
Vc ( s ) = Ic (s)
Cs
Basic Elements of Electrical Systems
• The time domain expression relating voltage and current for the
inductor is given as:
diL (t )
v L (t ) = L
dt
• The Laplace transform of the above equation is
VL ( s ) = LsI L ( s )
V-I and I-V relations
Component Symbol V-I Relation I-V Relation
v R (t )
Resistor v R (t ) = iR (t )R iR (t ) =
R
1 dvc (t )
Capacitor vc (t ) = ic (t )dt ic (t ) = C
C dt
diL (t ) 1
Inductor v L (t ) = L iL (t ) = v L (t )dt
dt L
73
Example 1: RC Circuit
The two-port network shown in the following figure has vi(t) as the
input voltage and vo(t) as the output voltage. Find the transfer
function Vo(s)/Vi(s) of the network.
1
v i ( t ) = i( t ) R + i( t )dt
C
1
vo ( t ) = i( t )dt
C
74
Example 1: RC Circuit
1 1
v i ( t ) = i( t ) R + i( t )dt vo ( t ) = i( t )dt
C C
• Taking Laplace transform of both equations, considering the
initial conditions to be zero.
1 1
Vi ( s ) = I ( s ) R + I (s) Vo ( s ) = I (s)
Cs Cs
1
Vi ( s ) = I ( s )( R + ) CsVo ( s ) = I ( s )
Cs
75
Example 1: RC Circuit
1
Vi ( s ) = I ( s )( R + ) CsVo ( s ) = I ( s )
Cs
• Substitute I(s) in equation on left
1
Vi ( s ) = CsVo ( s )( R + )
Cs
Vo ( s ) 1
=
Vi ( s ) Cs ( R + 1 )
Cs
Vo ( s ) 1
=
Vi ( s ) RCs + 1 First Order System
𝑉𝑜 𝑠 1
T(s) = =
𝑉𝑖 𝑠 𝜏𝑠+1 𝜏 is time constant
76
Example 1: RC Circuit
• 𝑣𝑖 𝑡 = 𝐾 → 𝑉𝑖 𝑠 = 𝐾/𝑠 K
𝑉𝑜 𝑠 1 time
𝑇 𝑠 = = → First order system
𝑉𝑖 𝑠 𝜏𝑠 + 1
𝑉𝑜 𝑠 = 𝑉𝑖 𝑠 𝑇 𝑠
𝐾 1
𝑉𝑜 𝑠 =
𝑠 𝜏𝑠 + 1
77
Example 1: RC Circuit
𝐾 𝐴 𝐵
= +
𝑠(𝜏𝑠 + 1) 𝑠 𝜏𝑠 + 1
𝐾 = 𝐴𝜏𝑠 + 𝐴 + 𝐵𝑠
𝐴 = 𝐾 𝑎𝑛𝑑 𝐵 = −𝐾𝜏
𝐾 𝐾𝜏 𝐾 𝐾
𝑉𝑜 𝑠 = − = −
𝑠 𝜏𝑠 + 1 𝑠 𝑠 + 1/𝜏
𝑣𝑜 𝑡 = 𝐾 − 𝐾𝑒 −𝑡/𝜏
78
Example 1: RC Circuit
• 𝑣𝑜 𝑡 = 𝐾 − 𝐾𝑒 −𝑡/𝜏
𝑡
−
• 𝑣𝑜 𝑡 = 𝐾(1 − 𝑒 ) 𝜏
• 𝑡 → ∞ ⇒ 𝑣𝑜 𝑡 → 𝐾
79
Example 1: RC Circuit
• 𝑣𝑜 𝑡 = 𝐾 − 𝐾𝑒 −𝑡/𝜏
𝑡
−
• 𝑣𝑜 𝑡 = 𝐾(1 − 𝑒 ) 𝜏
• 𝑡 → ∞ ⇒ 𝑣𝑜 𝑡 → 𝐾
• 𝑡 = 𝜏 ⇒ 𝑣𝑜 𝑡 = 0.632𝐾
0.632
Let’s take K = 1 and compare
the response of the following
systems:
System 1:𝜏 = 0.1
System 2: 𝜏 = 0.01 𝜏 = 0.01
𝜏 = 0.1
80
Example 1: RC Circuit
• 𝑣𝑜 𝑡 = 𝐾 − 𝐾𝑒 −𝑡/𝜏
𝑑𝑣𝑜 𝑡 𝐾 −𝑡/𝜏
• = 𝑒
𝑑𝑡 𝜏
𝑑𝑣𝑜 𝑡 𝐾
• 𝑡=0 ⇒ =
𝑑𝑡 𝜏
• initial slope can be obtained
from the time response
at time 𝑡 = 0
System 1: 𝜏 = 0.1
Using the graph:
𝑑𝑣𝑜 𝑡 1
= = 10
𝑑𝑡 0.1
Example 1: RC Circuit
• First order system takes five time constants to
reach its final value.
𝑣𝑜 𝑡
𝜏 𝑣𝑜 𝑡
𝜏 2𝜏 3𝜏 4𝜏 5𝜏
Example 2
𝑉𝑜 𝑠
• Find the transfer function T(s) = for the
𝑉𝑖 𝑠
following two port network.
83
Transform Impedance (Resistor)
iR(t) IR(s)
+ +
Transformation
vR(t) ZR = R VR(s)
- -
Transform Impedance (Inductance)
iL(t) IL(s)
+ +
-
-
vc(t) ZC=1/Cs
Vc(s)
- -
84
Example 2
L
Z
1 1 1
= +
Z R Ls
RLs
Z=
1 + RLs
85
Example 2
RLs
Z=
1 + RLs
L
Z
1 1
Vi ( s ) = I ( s )Z + I (s) Vo ( s ) = I (s)
Cs Cs
𝑉𝑜 𝑠
T(s) = =?
𝑉𝑖 𝑠
86
Block Diagrams
87
Block Diagram
88
Elements of a Block Diagram
𝐶 𝑠 = 𝐺 𝑠 𝑅(𝑠)
89
Block Diagram
90
Block Diagram of a Unity Feedback
Closed-Loop System
𝑅(𝑠) 𝐶(𝑠) 𝐸(𝑠)
𝐺(𝑠) 𝐺(𝑠)
𝐵(𝑠)
𝐶 𝑠 = 𝐺 𝑠 𝑅(𝑠) 𝐶 𝑠
𝐶 𝑠 𝐺 𝑠 ≠
𝐺 𝑠 = 𝑅 𝑠
𝑅 𝑠
• 𝐶 𝑠 = 𝐺(𝑠)𝐸 𝑠
• 𝐸 𝑠 = 𝑅 𝑠 − 𝐶(𝑠)
• 𝐶 𝑠 =𝐺 𝑠 𝑅 𝑠 −𝐶 𝑠
𝐺 𝑠
• 𝐶 𝑠 = 𝑅 𝑠
1+𝐺 𝑠
𝑪 𝒔 𝑮 𝒔
•𝑻 𝒔 = =
𝑹 𝒔 𝟏+𝑮(𝒔)
91
Block Diagram of a Non-Unity
Feedback Closed-Loop System
• 𝐶 𝑠 = 𝐺(𝑠)𝐸 𝑠
• 𝐸 𝑠 = 𝑅 𝑠 − 𝐵(𝑠)
• 𝐵 𝑠 = 𝐻(𝑠)𝐶(𝑠)
• 𝐸 𝑠 = 𝑅 𝑠 − 𝐻(𝑠)𝐶(𝑠)
• 𝐶 𝑠 = 𝐺 𝑠 𝑅 𝑠 − 𝐻(𝑠)𝐶 𝑠
𝐺 𝑠
• 𝐶 𝑠 = 1+𝐺 𝑅 𝑠
𝑠 𝐻(𝑠)
𝐶 𝑠 𝐺 𝑠
• 𝑇 𝑠 = =
𝑅 𝑠 1+𝐺(𝑠)𝐻(𝑠)
92
More Complicated Block Diagrams?
Loop
Node Node Node
𝑅(𝑠) 𝐶(𝑠)
𝐺(𝑠) 𝑅(𝑠) 𝐶(𝑠)
𝐶 𝑠 = 𝐺 𝑠 𝑅(𝑠) 𝐶 𝑠 = 𝐺 𝑠 𝑅(𝑠)
𝐶 𝑠
𝐺 𝑠 =
𝑅 𝑠
95
Signal Flow Diagrams
96
Signal Flow Diagrams
97
Forward-path gain:
• Forward-path gain: The product of gains found by traversing a
path from the input node to the output node of the signal-
flow graph in the direction of signal flow.
𝑃1 = 𝐺1 𝑠 𝐺2 𝑠 𝐺3 𝑠 𝐺4 𝑠 𝐺5 𝑠 𝐺7 𝑠
𝑃2 = 𝐺1 𝑠 𝐺2 𝑠 𝐺3 𝑠 𝐺4 𝑠 𝐺6 𝑠 𝐺7 𝑠
98
Loop gain:
• Loop gain: The product of branch gains found by traversing a
path that starts at a node and ends at the same node,
following the direction of the signal flow, without passing
through any other node more than once.
• L1 = 𝐺2 𝑠 𝐻1 𝑠
• L2 = 𝐺4 𝑠 𝐻2 𝑠
• L3 = 𝐺4 𝑠 𝐺5 (𝑠)𝐻3 𝑠
• L4 = 𝐺4 𝑠 𝐺6 (𝑠)𝐻3 𝑠
99
Nontouching loops:
• Nontouching loops: Loops that do not have any nodes in
common.
• For instance, loop L1= 𝐺2 𝑠 𝐻1 𝑠 does not touch loops
L2= 𝐺4 𝑠 𝐻2 𝑠 , L3= 𝐺4 𝑠 𝐺5 (𝑠)𝐻3 𝑠 , and
L4= 𝐺4 𝑠 𝐺6 (𝑠)𝐻3 𝑠
100
Nontouching-loop gain:
• Nontouching-loop gain: The product of loop gains from
nontouching loops taken two, three, four, or more at a time.
• For instance, nontouching-loop gains taken two at a time (i.e.
two non-touching loops):
101
Nontouching-loop gain:
• Note that there are no nontouching-loop gains taken three at
a time (i.e. three nontouching loops) in this example, but it
could be in other examples.
102
Mason’s Rule
𝐶 𝑠
• The transfer function, , of a system represented by a signal-flow graph
𝑅 𝑠
is
𝐶 𝑠 𝑃𝑘 𝑠 Δ 𝑘 𝑠
• 𝑇 𝑠 = = σ𝑘
𝑅 𝑠 Δ(𝑠)
104
Example
𝑌 𝑠
• Using Mason’s rule, find 𝑇 𝑠 =
𝑅 𝑠
105
Example
107
How to Convert a Block Diagram to a
Signal Flow Diagram ?
Loop
-H3(s) 109
-H2(s)
• Forward path gains from 𝑅(𝑠) to 𝑌(𝑠): • Δ𝑘 (𝑠): cofactor of the path 𝑃𝑘
• 𝑃1 𝑠 = 𝐺1 𝑠 𝐺2 𝑠 𝐺3 𝑠 𝐺4 𝑠 • set gains of the loops touching to
𝑘 th forward path equal to zero in
• Loops: Δ 𝑠
• 𝐿1 (𝑠) = −𝐺2 𝑠 𝐺3 𝑠 𝐻2 𝑠 • All loops are touching to the path, so
set all loop gains to zero in Δ 𝑠
• 𝐿2 𝑠 = 𝐺3 𝑠 𝐺4 𝑠 𝐻1 𝑠 • Δ1 𝑠 = 1
• 𝐿3 𝑠 = −𝐺1 𝑠 𝐺2 𝑠 𝐺3 𝑠 𝐺4 𝑠 𝐻3 𝑠 𝑌 𝑠 𝑃1 Δ1
• Nontouching loop gains: none • 𝑇 𝑠 = 𝑅 𝑠
= Δ
• Δ 𝑠 : Determinant of the graph: • 𝑇 𝑠 = 1 2 3 4
𝐺 𝑠 𝐺 𝑠 𝐺 𝑠 𝐺 𝑠
1− 𝐿1 +𝐿2 +𝐿3
• Δ 𝑠 = 1 − σ(loop gains)
• Δ 𝑠 = 1 − 𝐿1 + 𝐿2 + 𝐿3
110