Lecture 11

E12 Linear Physical Systems Analysis

Author

Prof. Emad Masroor

Published

February 24, 2026

The State Variable Approach

We often need to track more than one variable and its change.

\[ \begin{aligned} R_2 C_2 \dot{v}_{c_2} + v_{c_2} &= v_{c_1} \\ R_1 C_1 \dot{v}_{c_1} + \left( 1 - \frac{R_1}{R_2}\right) v_{c_1} &= v_{\text{in}} + \frac{R_1}{R_2} v_{c_2} \end{aligned} \]

\[ \begin{aligned} R_2 C_2 \boxed{\dot{v}_{c_2}} + \boxed{v_{c_2}} &= \boxed{v_{c_1}} \\ R_1 C_1 \boxed{\dot{v}_{c_1}} + \left( 1 - \frac{R_1}{R_2}\right) \boxed{v_{c_1}} &= v_{\text{in}} + \frac{R_1}{R_2} \boxed{v_{c_2}} \end{aligned} \]

  • Identify the variables whose change we are interested in (a.k.a state variables)
  • Assemble into a vector: \[\begin{bmatrix} v_{c_1}(t) \\ v_{c_2}(t) \end{bmatrix}\]
  • This vector is known as the state of the system at any given time \(t\)

Equivalent Notations for a system’s equations

  1. Two individual equations \[ \begin{aligned} \dot{x}_1 &= f_1(x_1,x_2,t) \\ \dot{x}_2 &= f_2(x_1,x_2,t) \end{aligned} \]

  2. One “vector equation” \[ \begin{bmatrix} \dot{x}_1 \\ \dot{x}_2 \end{bmatrix} = \begin{bmatrix} f_1(x_1,x_2,t) \\ f_2(x_1,x_2,t) \end{bmatrix} \]

  3. One “vector equation” with explicit derivative \[ \frac{d}{dt} \begin{bmatrix} x_1 \\ x_2 \end{bmatrix} = \begin{bmatrix} f_1(x_1,x_2,t) \\ f_2(x_1,x_2,t) \end{bmatrix} \]

  4. Vector symbols \[ \frac{d\boldsymbol{x}}{dt} = \begin{bmatrix} f_1(\boldsymbol{x},t) \\ f_2(\boldsymbol{x},t) \end{bmatrix}, \boldsymbol{x} = \begin{bmatrix} x_1 \\ x_2 \end{bmatrix} \]

  5. Separating out the time-dependence \[ \begin{aligned} \dot{x}_1 &= g_1(x_1,x_2) + g_3(t) \\ \dot{x}_2 &= g_2(x_1,x_2) + \underbrace{g_4(t)}_{\text{known}} \end{aligned} \]

  6. Using ‘vector functions’

Example 1: State-variable form

Express the following system of equations

\[ \begin{aligned} \dot{x}_1 + 2 x_1 x_2 - \cos 2t &= 0 \\ \dot{x}_2 + 3 x_2 - 2x_1 &= 0 \end{aligned} \]

in the form of state-variable equations:

\[ \begin{aligned} \dot{x}_1 &= g_1(x_1,x_2) + g_3(t) \\ \dot{x}_2 &= g_2(x_1,x_2) + g_4(t) \end{aligned} \]

Explicitly specifying what \(g_1\), \(g_2\), \(g_3\) and \(g_4\) are.

Example 2: State-variable form

Express the following system of equations

\[ \begin{aligned} \dot{z}_1 + 3 z_1 - 7 z_2 &= 0 \\ \dot{z}_2 + 2 z_2 + 5 z_1 &= 0 \end{aligned} \]

in the form of state-variable equations:

\[ \frac{d}{dt} \begin{bmatrix} z_1 \\ z_2 \end{bmatrix} = \begin{bmatrix} f_1(z_1,z_2,t) \\ f_2(z_1,z_2,t) \end{bmatrix} \]

Explicitly specifying what \(f_1\), \(f_2\) are.

A closer look at the functions

\[ \begin{aligned} \dot{x}_1 &= \color{red}{g_1(x_1,x_2)} + \color{blue}{g_3(t)} \\ \dot{x}_2 &= \color{red}{g_2(x_1,x_2)} + \color{blue}{g_4(t)} \\ \end{aligned} \tag{1}\]

  • The time-dependence often includes the input, or forcing function. It is typically a known function of time.
  • If the dependence on state variables is linear, we have a linear physical system.
    • In this case, \(g_1\) and \(g_2\) can be assembled as a matrix-vector multiplication. \[ \begin{aligned} \begin{bmatrix} g_1(x_1,x_2) \\ g_2(x_1,x_2) \end{bmatrix} &= \begin{bmatrix} a & b \\ c & d \end{bmatrix} \cdot \begin{bmatrix} x_1 \\ x_2 \end{bmatrix} \\ &= \begin{bmatrix} a x_1 + b x_2 \\ c x_1 + d x_2 \end{bmatrix} \end{aligned} \]

Interpreting a system’s equations

\[ \begin{aligned} {\color{red}{R_2 C_2}} \color{blue}{\dot{v}_{c_2}} + \color{green}{v_{c_2}} &= \color{green}{v_{c_1}} \\ {\color{red}{R_1 C_1}} \color{blue}{\dot{v}_{c_1}} + {\color{red}{\left( 1 - \frac{R_1}{R_2}\right)}}\color{green}{v_{c_1}} &= \color{brown}{v_{\text{in}}} + \color{red}{\frac{R_1}{R_2}} \color{green}{v_{c_2}} \end{aligned} \]

  • Constant parameters
  • State variables
  • Derivatives of state variables
  • Input, forcing function, i.e. known functions of time

In Linear Physical Systems, the rate of change of the state variables depends linearly on the state variables.

Interpreting a system’s equations

\[ \begin{aligned} {\color{red}{R_2 C_2}} \color{blue}{\dot{v}_{c_2}} + \color{green}{v_{c_2}} &= \color{green}{v_{c_1}} \\ {\color{red}{R_1 C_1}} \color{blue}{\dot{v}_{c_1}} + {\color{red}{\left( 1 - \frac{R_1}{R_2}\right)}}\color{green}{v_{c_1}} &= \color{brown}{v_{\text{in}}} + \color{red}{\frac{R_1}{R_2}} \color{green}{v_{c_2}} \end{aligned} \]

Write these equations in state-variable form.

\[ \begin{aligned} \dot{x}_1 &= g_1(x_1,x_2) + g_3(t) \\ \dot{x}_2 &= g_2(x_1,x_2) + g_4(t) \end{aligned} \]

Explicitly specifying what \(x_1\), \(x_2\), \(g_1\), \(g_2\), \(g_3\) and \(g_4\) are.

State-variable form of a 2nd-order equation

A second order differential equation has the form \[\ddot{x} = f(x,\dot{x},t). \tag{2}\]

  • Typically, the state variables are \(y_1 = x\) and \(y_2 = \dot{x}\)
  • The state-variable form of Equation 2 is \[ \frac{d}{dt} \begin{bmatrix} y_1 \\ y_2 \end{bmatrix} = \begin{bmatrix} y_2 \\ f(y_1,y_2,t) \end{bmatrix} \]
  • If Equation 2 is linear in \(x\) and \(\dot{x}\): \[ \frac{d}{dt} \begin{bmatrix} y_1 \\ y_2 \end{bmatrix} = \begin{bmatrix} p & q \\ r & s \end{bmatrix} \cdot \begin{bmatrix} y_1 \\ y_2 \end{bmatrix} + \begin{bmatrix} 0 \\ g(t) \end{bmatrix} \] where \(g(t)\) contains the time-dependence of \(f\).

State-variable form of a 3rd-order equation

A third order differential equation has the form \[\dddot{x} = f(x,\dot{x},\ddot{x},t). \tag{3}\]

  • Typical state variables: \(y_1 = x\), \(y_2 = \dot{x}\) and \(y_3 = \ddot{x}\)
  • The state-variable form of Equation 3 is \[ \frac{d}{dt} \begin{bmatrix} y_1 \\ y_2 \\ y_3 \end{bmatrix} = \begin{bmatrix} y_2 \\ y_3 \\ f(y_1,y_2,y_3,t) \end{bmatrix} \]
  • If Equation 3 is linear in \(x\), \(\dot{x}\) and \(\ddot{x}\): \[ \frac{d}{dt} \begin{bmatrix} y_1 \\ y_2 \\ y_3 \end{bmatrix} = \begin{bmatrix} a_{11} & a_{12} & a_{13} \\ a_{21} & a_{22} & a_{23} \\ a_{31} & a_{32} & a_{33} \end{bmatrix} \cdot \begin{bmatrix} y_1 \\ y_2 \\ y_3 \end{bmatrix} + \begin{bmatrix} 0 \\ 0 \\ g(t) \end{bmatrix} \] where \(g(t)\) contains the time-dependence of \(f\).

The order of a state-variable system

The order of a system is generally equal to how many state variables it has.

  • Second-order system: \(\ddot{x} = f(x,\dot{x},t)\) \[ \frac{d}{dt} \begin{bmatrix} y_1 \\ y_2 \end{bmatrix} = \begin{bmatrix} y_2 \\ f(y_1,y_2,t) \end{bmatrix} \]
  • Third-order system: \(\dddot{x} = f(x,\dot{x},\ddot{x},t)\) \[ \frac{d}{dt} \begin{bmatrix} y_1 \\ y_2 \\ y_3 \end{bmatrix} = \begin{bmatrix} y_2 \\ y_3 \\ f(y_1,y_2,y_3,t) \end{bmatrix} \]

Example: A second-order equation in state-variable form

\[m \ddot{x} + k x = 0\]

What to expect in state-variable equations

Given a state-variable system of equations \[ \frac{d}{dt} \begin{bmatrix} y_1 \\ y_2 \end{bmatrix} = \color{red}{ \begin{bmatrix} .. \\ .. \end{bmatrix}} \]

  • The right-hand side:
    • depends on (some or all of) the state variables \(y_1\), \(y_2\)
    • and possibly depends on some explicit (known) function of time
    • does not contain any derivatives of the state variables
    • in E12, will usually be linear in the state variables
  • The left-hand side:
    • Should contain first-derivatives of all of the state variables.

Energy-storing elements and the order of a system

Recall circuits from HW 2

A circuit with two energy-storing elements

A circuit with one energy-storing elements

Typically: The order of a system = the number of state variables = the number of energy-storing elements

Energy-storing elements of a circuit

  • Resistors dissipate energy
  • Capacitors store energy in the form of separated charges
  • Inductors store energy in the form of a magnetic field
Element Resistor Capacitor Inductor
Symbol \(R\) \(C\) \(L\)
Stored Energy \(0\) \(\frac{1}{2} C v^2\) \(\frac{1}{2} L i^2\)
Dissipated Power \(v i = i^2 R = \frac{v^2}{R}\) \(0\) \(0\)
Form of Energy Heat Separated opposite charges Magnetic Field due to current

Energy-storing elements of a mechanical system

  • Dampers/dashpots/frictionful surfaces dissipate energy
  • Masses store kinetic energy when moving
  • Springs store (elastic) potential energy when stretched or compressed
Element Damper Spring Mass
Symbol \(b\) \(k\) \(m\)
Stored Energy \(0\) \(\frac{1}{2} k x^2\) \(\frac{1}{2} m v^2\)
Dissipated Power \(b v \times v = b v^2\) \(0\) \(0\)
Form of Energy Heat Potential Energy Kinetic Energy

Place equations in state-variable form

It is known that the governing equations for this system are: \[ \begin{aligned} 5 \ddot{x}_1 + 12 \dot{x}_1 + 5 x_1 - 8 \dot{x}_2 - 4 x_2 &= 0 \\ 3 \ddot{x}_2 + 8 \dot{x}_2 + 4 x_2 - 8 \dot{x}_1 - 4 x_1 &= f(t) \end{aligned} \]