Skip to main content

State equations of two-source circuit with 2 F

Short answer

Define states x1=i1 (2H inductor), x2=i2 (1H inductor), x3=vC (capacitor). The state equation is x' = [ -0.5 0 -0.5; 0 -2 1; 0.5 -0.5 0 ] x + [0.5 0; 0 -1; 0 0] [V1; V2], output y = [0 0 1]x.

Write the state equation for the circuit shown below. Also write output equation. [Figure: source V1 on the left in series with 1 Ω and 2 H inductor to node A; 2 F capacitor from node A to the bottom (common) line; node A through 1 H inductor and 2 Ω resistor to source V2 on the right; both sources return to the common bottom line]

Take the two inductor currents and the capacitor voltage as states (assumed directions shown):

  • x1=i1x_1 = i_1: current in the 2 H inductor, from V1V_1 towards node A
  • x2=i2x_2 = i_2: current in the 1 H inductor, from node A towards V2V_2
  • x3=vCx_3 = v_C: voltage on the 2 F capacitor (node A to common line)
    1 ohm  2 H     A    1 H  2 ohm
  +-/\/\/-UUUU----+---UUUU-/\/\/-+
  |    i1 ->      |    i2 ->     |
 (V1)            === 2F         (V2)
  |               |              |
  +---------------+--------------+

Left loop (KVL)

V1=1⋅i1+2di1dt+vC  ⇒  x˙1=−0.5x1−0.5x3+0.5V1V_1 = 1\cdot i_1 + 2\frac{di_1}{dt} + v_C \;\Rightarrow\; \dot{x}_1 = -0.5x_1 - 0.5x_3 + 0.5V_1

Right loop (KVL)

vC=1⋅di2dt+2i2+V2  ⇒  x˙2=−2x2+x3−V2v_C = 1\cdot\frac{di_2}{dt} + 2i_2 + V_2 \;\Rightarrow\; \dot{x}_2 = -2x_2 + x_3 - V_2

KCL at node A

2dvCdt=i1−i2  ⇒  x˙3=0.5x1−0.5x22\frac{dv_C}{dt} = i_1 - i_2 \;\Rightarrow\; \dot{x}_3 = 0.5x_1 - 0.5x_2

State equation

[x˙1x˙2x˙3]=[−0.50−0.50−210.5−0.50][x1x2x3]+[0.500−100][V1V2]\begin{bmatrix} \dot{x}_1 \\ \dot{x}_2 \\ \dot{x}_3 \end{bmatrix} = \begin{bmatrix} -0.5 & 0 & -0.5 \\ 0 & -2 & 1 \\ 0.5 & -0.5 & 0 \end{bmatrix}\begin{bmatrix} x_1 \\ x_2 \\ x_3 \end{bmatrix} + \begin{bmatrix} 0.5 & 0 \\ 0 & -1 \\ 0 & 0 \end{bmatrix}\begin{bmatrix} V_1 \\ V_2 \end{bmatrix}

Output equation

No output is marked in the figure, so the capacitor voltage (node A voltage) is taken as the output:

y=vC=[001][x1x2x3]+[00][V1V2]y = v_C = \begin{bmatrix} 0 & 0 & 1 \end{bmatrix}\begin{bmatrix} x_1 \\ x_2 \\ x_3 \end{bmatrix} + \begin{bmatrix} 0 & 0 \end{bmatrix}\begin{bmatrix} V_1 \\ V_2 \end{bmatrix}

If, for example, the voltage across the 2 Ω resistor is the output, then y=2x2y = 2x_2, i.e. C=[0    2    0]C = [0 \;\; 2 \;\; 0].

✓ Answer checked by Claude Opus 5.5 (high effort)

All Control Systems chapter 8 questions →