Controllability Analysis of Pendulum-on-Cart Variants & Coordinate-Invariant Tests
Linearized Inverted Pendulum on a Cart: Setting-Up the State–Space Model
The original nonlinear dynamics (obtained via Newton–Euler) were first linearised about the upright equilibrium . The resulting second–order scalar equations are
\begin{aligned}
\ddot{x} &= -\frac{m g}{M}\,\theta + \frac{1}{M} F,\[4pt]
\ddot{\theta} &= \frac{M+m}{M L}\,g\,\theta - \frac{1}{M L} F.
\end{aligned}
Here
• – mass of the cart,
• – mass of the pendulum,
• – pendulum length,
• – gravitational acceleration,
• – horizontal force applied to cart (control input).
A state vector is chosen as Consequently allowing a first-order representation
Construction of the A and B Matrices
Collecting coefficients directly from the formulas of and yields
A =
\begin{bmatrix}
0 & 1 & 0 & 0\[4pt]
0 & 0 & -\dfrac{m g}{M} & 0\[6pt]
0 & 0 & 0 & 1\[4pt]
0 & 0 & \dfrac{(M+m)g}{M L} & 0
\end{bmatrix},
\qquad
B=
\begin{bmatrix}
0\[2pt]
\dfrac{1}{M}\[6pt]
0\[2pt]
-\dfrac{1}{M L}
\end{bmatrix}.
Controllability Matrix for the Force-Actuated Cart
Dimension Direct multiplication (shown step-by-step in lecture) gives
P=
\begin{bmatrix}
0 & \dfrac{1}{M} & 0 & \dfrac{m g}{M^{2}L}\[6pt]
\dfrac{1}{M} & 0 & \dfrac{m g}{M^{2}L} & 0\[8pt]
0 & -\dfrac{1}{M L} & 0 & -\dfrac{(M+m)g}{M^{2}L^{2}}\[10pt]
-\dfrac{1}{M L} & 0 & -\dfrac{(M+m)g}{M^{2}L^{2}} & 0
\end{bmatrix}.
Its determinant evaluates to
Because , every state of the linearised inverted pendulum is reachable; the system is controllable.
Physical Significance
A non–zero determinant formalises the well-known experience that an inverted broomstick can indeed be balanced by suitably moving the hand (i.e.
applying horizontal forces).
Large or drive towards zero, warning that very heavy carts or extremely long pendulums become hard (ultimately impossible) to control.
Torque-Actuated Pendulum on a Cart ("Actuated Arm")
A variant is next analysed in which the control input is not a horizontal force but a torque applied at the pendulum joint, while the cart itself is unactuated (free-sliding). Non-linear equations of motion (omitted in the lecture for brevity) reduce—after linearisation about the hanging equilibrium—to
with
A=
\begin{bmatrix}
0 & 1 & 0 & 0\[4pt]
-\dfrac{g(M+m)}{M L} & 0 & 0 & \dfrac{g m}{M}\[6pt]
0 & 0 & 0 & 1\[4pt]
0 & 0 & 0 & 0
\end{bmatrix},
\;\;
B=
\begin{bmatrix}
0\[4pt]
\dfrac{M+m}{M L}\[6pt]
0\[2pt]
-\dfrac{m}{M}
\end{bmatrix}.
Controllability Matrix and Rank Deficiency
Computation gives
P=
\bigl[\,B\;A B\;A^{2}B\;A^{3}B\,\bigr]=
\begin{bmatrix}
0 & \dfrac{M+m}{M L} & 0 & -\dfrac{g(M+m)^{2}}{M^{2}L^{2}}\[8pt]
\dfrac{M+m}{M L} & 0 & -\dfrac{g(M+m)^{2}}{M^{2}L^{2}} & 0\[8pt]
0 & -\dfrac{m}{M} & 0 & \dfrac{g m(M+m)}{M^{2}L}\[10pt]
-\dfrac{m}{M} & 0 & \dfrac{g m(M+m)}{M^{2}L} & 0
\end{bmatrix}.
Columns (or rows) appear in pairs proportional to one another, e.g.
so only two independent directions exist. Hence \operatorname{rank}P=2<4, → the system is NOT controllable.
Physical Interpretation of Uncontrollability
Attempting to relocate the cart’s centre of mass using only internal joint torques violates linear momentum conservation; without an external force there is no mechanism to impart net horizontal impulse. The mathematics faithfully reproduces this impossibility via rank deficiency.
Invariance of Controllability Under Coordinate Transformation
Consider any non-singular change of state variables . The transformed dynamics are
The new controllability matrix satisfies
so because is full rank. Therefore controllability is an invariant property; similarity transformations cannot create or destroy it.
Controllability Criterion in Diagonal (or Jordan) Form
If a similarity transformation places into diagonal form
the resulting controllability matrix is Vandermonde structure implies • If all eigenvalues are distinct and
• every coupling term then is nonsingular → the original system is controllable.
Repeated eigenvalues require Jordan blocks; the test generalises but diagonal suffices for the distinct-root case discussed.
Forthcoming Topic: Decomposing Mixed-Controllability Systems
If \operatorname{rank}P=q<n, exactly independent state directions are reachable. Through an appropriate coordinate partition the model can be written as
\begin{bmatrix}\dot{z}{c}\ \dot{z}{u}\end{bmatrix}=
\begin{bmatrix}A{cc} & A{cu}\ 0 & A{uu}\end{bmatrix} \begin{bmatrix}z{c}\ z{u}\end{bmatrix} +\begin{bmatrix}B{c}\0\end{bmatrix}u,
where $(z{c})$ are controllable and $(z{u})$ uncontrollable states. Practical control is still feasible if $A_{uu}$ is stable. Detailed construction of such transformations will be presented in the next lecture.