Professional Documents
Culture Documents
0 1 0 0 0
#
x1 M + m x1 1
# g 0 0 0 -
x Ml x2 Ml
D # 2T = F VD T + F Vu (3–22)
x3 0 0 0 1 x3 0
#
x4 m x4 1
- g 0 0 0
M M
x1
y1 1 0 0 0 x
B R = B R D 2T (3–23)
y2 0 0 1 0 x3
x4
Equations (3–22) and (3–23) give a state-space representation of the inverted-pendulum system.
(Note that state-space representation of the system is not unique. There are infinitely many such
representations for this system.)
Basic laws governing electrical circuits are Kirchhoff’s current law and voltage law.
Kirchhoff’s current law (node law) states that the algebraic sum of all currents entering and
leaving a node is zero. (This law can also be stated as follows: The sum of currents enter-
ing a node is equal to the sum of currents leaving the same node.) Kirchhoff’s voltage law
(loop law) states that at any given instant the algebraic sum of the voltages around any loop
in an electrical circuit is zero. (This law can also be stated as follows: The sum of the volt-
age drops is equal to the sum of the voltage rises around a loop.) A mathematical model
of an electrical circuit can be obtained by applying one or both of Kirchhoff’s laws to it.
This section first deals with simple electrical circuits and then treats mathematical
modeling of operational amplifier systems.
LRC Circuit. Consider the electrical circuit shown in Figure 3–7. The circuit con-
sists of an inductance L (henry), a resistance R (ohm), and a capacitance C (farad).
Applying Kirchhoff’s voltage law to the system, we obtain the following equations:
di 1
L + Ri + i dt = ei (3–24)
dt C 3
1
i dt = eo (3–25)
C 3
L R
ei C eo
Figure 3–7 i
Electrical circuit.
R1 R2
ei C1 C2 eo
Figure 3–8 i1 i2
Electrical system.
1
Ai - i2 B dt + R1 i1 = ei (3–27)
C1 3 1
and
1 1
Ai2 - i1 B dt + R2 i2 + i dt = 0 (3–28)
C1 3 C2 3 2
1
i2 dt = eo (3–29)
C2 3
Taking the Laplace transforms of Equations (3–27) through (3–29), respectively, using
zero initial conditions, we obtain
1
CI1(s) - I2(s) D + R1 I1(s) = Ei(s) (3–30)
C1 s
1 1
CI2(s) - I1(s) D + R2 I2(s) + I2(s) = 0 (3–31)
C1 s C2 s
1
I2(s) = Eo(s) (3–32)
C2 s
Eliminating I1(s) from Equations (3–30) and (3–31) and writing Ei(s) in terms of I2(s),
we find the transfer function between Eo(s) and Ei(s) to be
Eo(s) 1
=
Ei(s) AR1 C1 s + 1B AR2 C2 s + 1B + R1 C2 s
1
=
R1 C1 R2 C2 s + AR1 C1 + R2 C2 + R1 C2 Bs + 1
2
(3–33)
The term R1 C2 s in the denominator of the transfer function represents the interaction
of two simple RC circuits. Since AR1 C1 + R2 C2 + R1 C2 B 7 4R1 C1 R2 C2 , the two roots
2
Eo(s) Z2(s)
=
Ei(s) Z1(s) + Z2(s)
1
Z1 = Ls + R, Z2 =
Cs
1
Eo(s) Cs 1
= = 2
Ei(s) 1 LCs + RCs + 1
Ls + R +
Cs
Z1
i i i
Z1 Z2
ei Z2 eo
e1 e2
Figure 3–9 e
Electrical circuits. (a) (b)
Z2 I1 = AZ3 + Z4 BI2 , I1 + I2 = I
we obtain
Z3 + Z4 Z2
I1 = I, I2 = I
Z2 + Z3 + Z4 Z2 + Z3 + Z4
Noting that
Z2 AZ3 + Z4 B
Ei(s) = Z1 I + Z2 I1 = c Z1 + dI
Z2 + Z3 + Z4
Z2 Z4
Eo(s) = Z4 I2 = I
Z2 + Z3 + Z4
we obtain
Eo(s) Z2 Z4
=
Ei(s) Z1 AZ2 + Z3 + Z4 B + Z2 AZ3 + Z4 B
Substituting Z1=R1 , Z2=1/AC1 sB, Z3=R2 , and Z4=1/AC2 sB into this last equation, we get
1 1
Eo(s) C1 s C2 s
=
Ei(s) 1 1 1 1
R1 a + R2 + b + a R2 + b
C1 s C2 s C1 s C2 s
1
=
R1 C1 R2 C2 s2 + AR1 C1 + R2 C2 + R1 C2 Bs + 1
I
Z1
I2
Z3
Z1 Z3 I1
Ei(s) Z2
Figure 3–10 Ei(s) Z2 Z4 Eo(s) Z4
(a) The circuit of Eo(s)
Figure 3–8 shown in
terms of impedances;
(b) equivalent circuit
diagram. (a) (b)
b
k
m1 m2 u
Figure 3–22
Mechanical system.
m1 y1 + by1 + kAy1 - y2 B = 0
$ #
m2 y2 + kAy2 - y1 B = u
$
The output variables for this system are y1 and y2 . Define state variables as
x1 = y1
#
x2 = y 1
x3 = y2
#
x4 = y 2
Then we obtain the following equations:
#
x 1 = x2
k b k
C-by1 - kAy1 - y2 B D = -
# 1 #
x2 = x1 - x2 + x3
m1 m1 m1 m1
#
x 3 = x4
k k
C-kAy2 - y1 B + u D =
# 1 1
x4 = x - x + u
m2 m2 1 m2 3 m2
0 1 0 0
# 0
x1 k b k x1
# - - 0 0
x2 m1 m1 m1 x2
D # T = F VD T + E 0 U u
x3 0 0 0 1 x3
# 1
x4 k k x4
0 - 0 m2
m2 m2
and the output equation is
x1
y1 1 0 0 0 x
B R = B R D 2T
y2 0 0 1 0 x3
x4
A–3–4. Obtain the transfer function Xo(s)/Xi(s) of the mechanical system shown in Figure 3–23(a). Also
obtain the transfer function Eo(s)/Ei(s) of the electrical system shown in Figure 3–23(b). Show that
these transfer functions of the two systems are of identical form and thus they are analogous systems.
C2
b2 R1
xo
ei eo
C1
k2 y
Figure 3–23
(a) Mechanical
system;
(b) analogous
electrical system. (a) (b)
Solution. In Figure 3–23(a) we assume that displacements xi , xo , and y are measured from their
respective steady-state positions. Then the equations of motion for the mechanical system shown
in Figure 3–23(a) are
b1 Axi - xo B + k1 Axi - xo B = b2 Axo - y B
# # # #
b2 Axo - y B = k2 y
# #
By taking the Laplace transforms of these two equations, assuming zero initial conditions, we have
b1 C sXi(s) - sXo(s)D + k1 CXi(s) - Xo(s) D = b2 CsXo(s) - sY(s)D
b2 CsXo(s) - sY(s)D = k2 Y(s)
If we eliminate Y(s) from the last two equations, then we obtain
b2 sXo(s)
b1 C sXi(s) - sXo(s) D + k1 CXi(s) - Xo(s) D = b2 sXo(s) - b2 s
b2 s + k2
or
b2 s
Ab1 s + k1 BXi(s) = a b1 s + k1 + b2 s - b2 s b Xo(s)
b2 s + k2
Hence the transfer function Xo(s)/Xi(s) can be obtained as
b1 b2
a
s + 1b a s + 1b
Xo(s) k1 k2
=
Xi(s) b1 b2 b2
a s + 1b a s + 1b + s
k1 k2 k1
For the electrical system shown in Figure 3–23(b), the transfer function Eo(s)/Ei(s) is found to be
1
R1 +
Eo(s) C1 s
=
Ei(s) 1 1
+ R1 +
A1兾R2 B + C2 s C1 s
AR1 C1 s + 1BAR2 C2 s + 1B
=
AR1 C1 s + 1BAR2 C2 s + 1B + R2 C1 s
C2 R2
R R
C C
ei C1 eo ei eo
R1
Figure 3–24
Bridged T networks. (a) (b)
I3
Z4
I1 I2
Z1 Z3
ei Z2 eo
I1
(a)
I1 I3
I2
Z4
Z1
Z3
Ei(s)
I3
Eo(s)
Figure 3–25 Z2
(a) Bridged T
network in terms of I1
complex impedances;
(b) equivalent
network. (b)
Eo(s) = Z3 I3 + Z2 I1
Z3 Z1
= I + Z2 I1
Z1 + Z3 + Z4 1
Z3 Z1 + Z2 AZ1 + Z3 + Z4 B
= I1
Z1 + Z3 + Z4
Hence, the transfer function Eo(s)/Ei(s) of the network shown in Figure 3–25(a) is obtained as
Eo(s) Z3 Z1 + Z2 AZ1 + Z3 + Z4 B
=
Z2 AZ1 + Z3 + Z4 B + Z1 Z3 + Z1 Z4
(3–38)
Ei(s)
aR + R + b
1 1
R2 +
Eo(s) C1 s C2 s
=
Ei(s)
aR + R + b + R2 + R
1 1 1
C1 s C2 s C2 s
+ R1 a + R2 b
1 1 1 1
+
Eo(s) Cs Cs Cs Cs
=
Ei(s)
R1 a + R2 b +
1 1 1 1 1
+ + R2
Cs Cs Cs Cs Cs
R1 CR2 Cs2 + 2R1 Cs + 1
=
R1 CR2 Cs2 + A2R1 C + R2 CBs + 1