Section 3–2 / Mathematical Modeling of Mechanical Systems 71Equation (3–20) was obtained by eliminating from Equations (3–18) and (3–19). Equation
(3–21) was obtained by eliminating from Equations (3–18) and (3–19). From Equation (3–20)
we obtain the plant transfer function to beThe inverted-pendulum plant has one pole on the negative real axis and
another on the positive real axis Hence, the plant is open-loop unstable.
Define state variables x 1 , x 2 , x 3 ,andx 4 byNote that angle uindicates the rotation of the pendulum rod about point P, and xis the location
of the cart. If we consider uandxas the outputs of the system, then(Notice that both uandxare easily measurable quantities.) Then, from the definition of the state
variables and Equations (3–20) and (3–21), we obtainx# 4 =-m
Mgx 1 +1
M
ux# 3 =x 4x# 2 =M+m
Mlgx 1 -1
Mlux# 1 =x 2y=B
y 1
y 2R =B
u
xR = B
x 1
x 3R
x 4 =x#x 3 =xx 2 =ux 1 =uCs=A 1 M+m 1 MlB 1 gD.Cs=-A 1 M+m 1 MlB 1 gD=
1
Mlas+
AM+m
Mlgbas-
AM+m
MlgbQ (s)- U(s)
=
1
Mls^2 - (M+m)gu$ x$
0MPzumgm sin uxx cos u
uFigure 3–6
Inverted-pendulum
system.