Skip to main content

State space model of a two-stage RC circuit

Short answer

Take states x1 = v_C1, x2 = v_C2 (output Vo). The model is x_dot = [-(1/(R1C1)+1/(R2C1)) 1/(R2C1); 1/(R2C2) -1/(R2C2)] x + [1/(R1C1); 0] V_i, y = [0 1] x.

Find state space model of given circuit. Consider Vo as output. [Figure: input Vi; series R1 to node V2; capacitor C1 from V2 to ground; series R2 from V2 to the output node; capacitor C2 from output node to ground; Vo across C2; mesh currents i1(t) and i2(t)]

Take the capacitor voltages as state variables:

x1=v2 (voltage across C1),x2=vo (voltage across C2)x_1 = v_2 \ (\text{voltage across } C_1), \qquad x_2 = v_o \ (\text{voltage across } C_2)
 Vi   R1     v2    R2     Vo
 o--/\/\/--+--/\/\/--+----o
   i1 ->   |  i2 ->  |
          === C1    === C2
           |         |
 o---------+---------+----o

Circuit equations

Mesh currents: i1=Vi−v2R1i_1 = \dfrac{V_i - v_2}{R_1} through R1R_1, i2=v2−voR2i_2 = \dfrac{v_2 - v_o}{R_2} through R2R_2.

KCL at node v2v_2 (current in C1C_1 is i1−i2i_1 - i_2):

C1dv2dt=Vi−v2R1−v2−voR2C_1\frac{dv_2}{dt} = \frac{V_i - v_2}{R_1} - \frac{v_2 - v_o}{R_2}

KCL at the output node (current in C2C_2 is i2i_2):

C2dvodt=v2−voR2C_2\frac{dv_o}{dt} = \frac{v_2 - v_o}{R_2}

State equations

x˙1=−(1R1C1+1R2C1)x1+1R2C1x2+1R1C1Vix˙2=1R2C2x1−1R2C2x2\begin{aligned} \dot{x}_1 &= -\left(\frac{1}{R_1C_1} + \frac{1}{R_2C_1}\right)x_1 + \frac{1}{R_2C_1}x_2 + \frac{1}{R_1C_1}V_i \\ \dot{x}_2 &= \frac{1}{R_2C_2}x_1 - \frac{1}{R_2C_2}x_2 \end{aligned}

Matrix form

[x˙1x˙2]=[−(1R1C1+1R2C1)1R2C11R2C2−1R2C2][x1x2]+[1R1C10]Vi\begin{bmatrix} \dot{x}_1 \\ \dot{x}_2 \end{bmatrix} = \begin{bmatrix} -\left(\dfrac{1}{R_1C_1} + \dfrac{1}{R_2C_1}\right) & \dfrac{1}{R_2C_1} \\ \dfrac{1}{R_2C_2} & -\dfrac{1}{R_2C_2} \end{bmatrix}\begin{bmatrix} x_1 \\ x_2 \end{bmatrix} + \begin{bmatrix} \dfrac{1}{R_1C_1} \\ 0 \end{bmatrix}V_i Vo=y=[01][x1x2]V_o = y = \begin{bmatrix} 0 & 1 \end{bmatrix}\begin{bmatrix} x_1 \\ x_2 \end{bmatrix}

This gives Vo(s)Vi(s)=1R1C1R2C2s2+(R1C1+R2C2+R1C2)s+1\dfrac{V_o(s)}{V_i(s)} = \dfrac{1}{R_1C_1R_2C_2s^2 + (R_1C_1 + R_2C_2 + R_1C_2)s + 1}, the known result for a two-stage RC ladder.

✓ Answer checked by Claude Opus 5.5 (high effort)

All Control Systems chapter 8 questions →