You are on page 1of 14

In terms of vector-matrix equations, we have

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.)

3–3 MATHEMATICAL MODELING OF ELECTRICAL SYSTEMS

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.

72 Chapter 3 / Mathematical Modeling of Mechanical Systems and Electrical Systems


Equations (3–24) and (3–25) give a mathematical model of the circuit.
A transfer-function model of the circuit can also be obtained as follows: Taking the
Laplace transforms of Equations (3–24) and (3–25), assuming zero initial conditions,
we obtain
1 1
LsI(s) + RI(s) + I(s) = Ei(s)
Cs
1 1
I(s) = Eo(s)
Cs
If ei is assumed to be the input and eo the output, then the transfer function of this system
is found to be
Eo(s) 1
= 2
(3–26)
Ei(s) LCs + RCs + 1
A state-space model of the system shown in Figure 3–7 may be obtained as follows: First,
note that the differential equation for the system can be obtained from Equation (3–26) as
$ R # 1 1
eo + eo + eo = e
L LC LC i
Then by defining state variables by
x1 = eo
#
x2 = e o
and the input and output variables by
u = ei
y = eo = x1
we obtain
# 0 1 0
x1 x1
B # R = C 1 R S B R + C 1 Su
x2 - - x2
LC L LC
and
x1
y = [1 0] B R
x2
These two equations give a mathematical model of the system in state space.

Transfer Functions of Cascaded Elements. Many feedback systems have com-


ponents that load each other. Consider the system shown in Figure 3–8. Assume that ei
is the input and eo is the output. The capacitances C1 and C2 are not charged initially.

R1 R2

ei C1 C2 eo

Figure 3–8 i1 i2
Electrical system.

Section 3–3 / Mathematical Modeling of Electrical Systems 73


It will be shown that the second stage of the circuit (R2 C2 portion) produces a loading
effect on the first stage (R1 C1 portion). The equations for this system are

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

of the denominator of Equation (3–33) are real.


The present analysis shows that, if two RC circuits are connected in cascade so
that the output from the first circuit is the input to the second, the overall transfer
function is not the product of 1兾AR1 C1 s + 1B and 1兾AR2 C2 s + 1B. The reason for this
is that, when we derive the transfer function for an isolated circuit, we implicitly as-
sume that the output is unloaded. In other words, the load impedance is assumed to
be infinite, which means that no power is being withdrawn at the output. When the sec-
ond circuit is connected to the output of the first, however, a certain amount of power
is withdrawn, and thus the assumption of no loading is violated. Therefore, if the trans-
fer function of this system is obtained under the assumption of no loading, then it is
not valid. The degree of the loading effect determines the amount of modification of
the transfer function.

74 Chapter 3 / Mathematical Modeling of Mechanical Systems and Electrical Systems


Complex Impedances. In deriving transfer functions for electrical circuits, we
frequently find it convenient to write the Laplace-transformed equations directly,
without writing the differential equations. Consider the system shown in Figure 3–9(a).
In this system, Z1 and Z2 represent complex impedances. The complex impedance
Z(s) of a two-terminal circuit is the ratio of E(s), the Laplace transform of the
voltage across the terminals, to I(s), the Laplace transform of the current through
the element, under the assumption that the initial conditions are zero, so that
Z(s)=E(s)/I(s). If the two-terminal element is a resistance R, capacitance C, or
inductance L, then the complex impedance is given by R, 1/Cs, or Ls, respectively. If
complex impedances are connected in series, the total impedance is the sum of the
individual complex impedances.
Remember that the impedance approach is valid only if the initial conditions
involved are all zeros. Since the transfer function requires zero initial conditions, the
impedance approach can be applied to obtain the transfer function of the electrical
circuit. This approach greatly simplifies the derivation of transfer functions of elec-
trical circuits.
Consider the circuit shown in Figure 3–9(b). Assume that the voltages ei and eo are
the input and output of the circuit, respectively. Then the transfer function of this
circuit is

Eo(s) Z2(s)
=
Ei(s) Z1(s) + Z2(s)

For the system shown in Figure 3–7,

1
Z1 = Ls + R, Z2 =
Cs

Hence the transfer function Eo(s)/Ei(s) can be found as follows:

1
Eo(s) Cs 1
= = 2
Ei(s) 1 LCs + RCs + 1
Ls + R +
Cs

which is, of course, identical to Equation (3–26).

Z1
i i i
Z1 Z2
ei Z2 eo
e1 e2
Figure 3–9 e
Electrical circuits. (a) (b)

Section 3–3 / Mathematical Modeling of Electrical Systems 75


EXAMPLE 3–7 Consider again the system shown in Figure 3–8. Obtain the transfer function Eo(s)/Ei(s) by use
of the complex impedance approach. (Capacitors C1 and C2 are not charged initially.)
The circuit shown in Figure 3–8 can be redrawn as that shown in Figure 3–10(a), which can be
further modified to Figure 3–10(b).
In the system shown in Figure 3–10(b) the current I is divided into two currents I1 and I2 .
Noting that

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

which is the same as that given by Equation (3–33).

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)

76 Chapter 3 / Mathematical Modeling of Mechanical Systems and Electrical Systems


y1 y2

b
k
m1 m2 u

Figure 3–22
Mechanical system.

A–3–3. Obtain a state-space representation of the system shown in Figure 3–22.


Solution. The system equations are

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

Hence, the state equation is

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.

88 Chapter 3 / Mathematical Modeling of Mechanical Systems and Electrical Systems


xi
R2
k1 b1

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

Example Problems and Solutions 89


A comparison of the transfer functions shows that the systems shown in Figures 3–23(a) and (b)
are analogous.
A–3–5. Obtain the transfer functions Eo(s)/Ei(s) of the bridged T networks shown in Figures 3–24(a)
and (b).
Solution. The bridged T networks shown can both be represented by the network of
Figure 3–25(a), where we used complex impedances.This network may be modified to that shown
in Figure 3–25(b).
In Figure 3–25(b), note that
I1 = I2 + I3, I2 Z1 = AZ3 + Z4 BI3

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)

90 Chapter 3 / Mathematical Modeling of Mechanical Systems and Electrical Systems


Hence
Z3 + Z4 Z1
I2 = I, I3 = I
Z1 + Z3 + Z4 1 Z1 + Z3 + Z4 1
Then the voltages Ei(s) and Eo(s) can be obtained as
Ei(s) = Z1 I2 + Z2 I1
Z1 AZ3 + Z4 B
= c Z2 + d I1
Z1 + Z3 + Z4
Z2 AZ1 + Z3 + Z4 B + Z1 AZ3 + Z4 B
= I1
Z1 + Z3 + Z4

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)

For the bridged T network shown in Figure 3–24(a), substitute


1 1
Z1 = R, Z2 = , Z3 = R, Z4 =
C1 s C2 s
into Equation (3–38). Then we obtain the transfer function Eo(s)/Ei(s) to be

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

RC1 RC2 s2 + 2RC2 s + 1


=
RC1 RC2 s2 + A2RC2 + RC1 Bs + 1
Similarly, for the bridged T network shown in Figure 3–24(b), we substitute
1 1
Z1 = , Z2 = R1 , Z3 = , Z4 = R2
Cs Cs
into Equation (3–38). Then the transfer function Eo(s)/Ei(s) can be obtained as follows:

+ 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

Example Problems and Solutions 91


© 2010 Pearson Education, Inc., Upper Saddle River, NJ. All rights reserved. This publication is protected by Copyright and written permission should be
obtained from the publisher prior to any prohibited reproduction, storage in a retrieval system, or transmission in any form or by any means, electronic,
mechanical, photocopying, recording, or likewise. For information regarding permission(s), write to: Rights and Permissions Department,
Pearson Education, Inc., Upper Saddle River, NJ 07458.
© 2010 Pearson Education, Inc., Upper Saddle River, NJ. All rights reserved. This publication is protected by Copyright and written permission should be
obtained from the publisher prior to any prohibited reproduction, storage in a retrieval system, or transmission in any form or by any means, electronic,
mechanical, photocopying, recording, or likewise. For information regarding permission(s), write to: Rights and Permissions Department,
Pearson Education, Inc., Upper Saddle River, NJ 07458.
© 2010 Pearson Education, Inc., Upper Saddle River, NJ. All rights reserved. This publication is protected by Copyright and written permission should be
obtained from the publisher prior to any prohibited reproduction, storage in a retrieval system, or transmission in any form or by any means, electronic,
mechanical, photocopying, recording, or likewise. For information regarding permission(s), write to: Rights and Permissions Department,
Pearson Education, Inc., Upper Saddle River, NJ 07458.
© 2010 Pearson Education, Inc., Upper Saddle River, NJ. All rights reserved. This publication is protected by Copyright and written permission should be
obtained from the publisher prior to any prohibited reproduction, storage in a retrieval system, or transmission in any form or by any means, electronic,
mechanical, photocopying, recording, or likewise. For information regarding permission(s), write to: Rights and Permissions Department,
Pearson Education, Inc., Upper Saddle River, NJ 07458.

You might also like