E12 Linear Physical Systems Analysis
April 14, 2026
Comprehensive Final Assigment in class on Thursday to synthesize everything we have learned
No HW will be assigned on week 14
Tuesday:
Thursday:
In Lecture 12 we saw that the governing differential equations for linear physical systems can be written in the following form:
\[\dot{\boldsymbol{x}} = \boldsymbol{A} \boldsymbol{x} + \boldsymbol{B} \boldsymbol{u}\]
\[{\boldsymbol{y}} = \boldsymbol{C} \boldsymbol{x} + \boldsymbol{D} \boldsymbol{u}\]
\[\dot{\boldsymbol{x}} = \boldsymbol{A} \boldsymbol{x} + \boldsymbol{B} \boldsymbol{u} \tag{1}\]
\[{\boldsymbol{y}} = \boldsymbol{C} \boldsymbol{x} + \boldsymbol{D} \boldsymbol{u} \tag{2}\]
Equation 1 is a differential equation for the state variables.
Equation 2 is an algebraic equation for the output variables.
\[\dot{\boldsymbol{x}} = \boldsymbol{A} \boldsymbol{x} + \boldsymbol{B} \boldsymbol{u}\]
ode45 or solve_ivp.\[{\boldsymbol{y}} = \boldsymbol{C} \boldsymbol{x} + \boldsymbol{D} \boldsymbol{u}\]

There are multiple options for how to write down the equations of a system. Let’s look at two.
\[ \begin{aligned} \dot{\boldsymbol{x}} &= \boldsymbol{A} \boldsymbol{x} + \boldsymbol{B} \boldsymbol{u} \\ {\boldsymbol{y}} &= \boldsymbol{C} \boldsymbol{x} + \boldsymbol{D} \boldsymbol{u} \end{aligned} \]
Note:

\[ \frac{d}{dt} \begin{bmatrix} x_1 \\ \dot{x}_1 \\ x_2 \\ \dot{x}_2 \end{bmatrix} = \begin{bmatrix} 0 & 1 & 0 & 0 \\ -(k_1+k_2)/m_1 & 0 & k_2/m_1 & 0 \\ 0 & 0 & 0 & 1 \\ k_2/m_2 & 0 & -k_2/m_2 & 0 \end{bmatrix} \begin{bmatrix} x_1 \\ \dot{x}_1 \\ x_2 \\ \dot{x}_2 \end{bmatrix} + {\color{red}{\begin{bmatrix} 0 \\ f_1/m_1 \\ 0 \\ f_2/m_2 \end{bmatrix}}} \]
We can re-write the equations of this system in the form \[\dot{\boldsymbol{x}} = \boldsymbol{A} \boldsymbol{x} + \boldsymbol{B} \boldsymbol{u}\]
where \(\boldsymbol{u}\) is a vector of inputs. Here, \(\boldsymbol{u} = \begin{bmatrix} f_1 \\ f_2 \end{bmatrix}\)
to find \(\boldsymbol{B}\) we construct a matrix of size \(n \times m\)
\[ \underbrace{{\color{magenta}{\begin{bmatrix} 0 & 0 \\ 1/m_1 & 0 \\ 0 & 0 \\ 0 & 1/m_2 \end{bmatrix}}}}_{\boldsymbol{\displaystyle B}} \begin{bmatrix} f_1 \\ f_2 \end{bmatrix} = {\color{red}{\begin{bmatrix} 0 \\ f_1/m_1 \\ 0 \\ f_2/m_2 \end{bmatrix}}} \]
We are interested in three specific outputs:



E12 • Spring 2026 • Lecture 23 • April 14, 2026