Related Concepts: 3.02 State-Space Modeling of Transfer Functions (Canonic Forms) | 3.04 State-Space Modeling of Block Diagrams & Signal Flow Graphs | 3.06 State Transition Matrix: Properties & Solution Methods


3.03 State-Space Modeling of Electrical Circuits

Core Idea

Unlike mathematical systems where state variables are abstract phase variables, physical electrical circuits possess a natural, physically intuitive set of state variables: capacitor voltages () and inductor currents (). These variables represent the physical energy storage {the capacity of capacitors to store electrical charge in electric fields, and inductors to store magnetic flux in magnetic fields} and directly determine the “history” or “memory” of the network.


1. The Physical Philosophy of State Selection

When translating an electrical circuit into a state-space model, we do not use phase variables {derivatives of a single output}. Instead, we assign state variables to the energy-storing elements of the circuit.

Physically, the state of a system must represent the minimum amount of information at time needed to predict the future states for all (given the input). In RLC networks, the physical energy is stored in:

  • Capacitors: Energy stored is . The voltage across a capacitor cannot change instantaneously {due to the conservation of electric charge}. Thus, capacitor voltage is selected as a state variable.
  • Inductors: Energy stored is . The current through an inductor cannot change instantaneously {due to the conservation of magnetic flux linkage}. Thus, inductor current is selected as a state variable.

1.1 State Selection Dictionary

For any physical RLC circuit with capacitors and inductors, the total order of the state-space model is . We define the state vector using the following variables:

Physical ElementState Variable DefinitionGoverning Physical EquationDerivative Relation
Capacitor ()Voltage across the capacitor:
Inductor ()Current flowing through the inductor:

2. The 4-Step Circuit Modeling Algorithm

To systematically formulate the state equation and output equation for any passive electrical network, apply this rigid 4-step workflow:

Step 1: State and Input Assignment

Identify all inductors and capacitors. Assign state variables: to capacitor voltages and inductor currents. Label all other branch voltages and branch currents in terms of these states and the inputs .

Step 2: Write Fundamental Network Equations

Apply Kirchhoff’s Voltage Law (KVL) to the loops containing inductors to find inductor voltages, and Kirchhoff’s Current Law (KCL) to the nodes containing capacitors to find capacitor currents.

  • Ensure that you do not write dependent equations {e.g., redundant loops or nodes that do not contain energy storage components}.

Step 3: Isolate the Derivatives

Algebraically manipulate your equations so that the capacitor currents () and inductor voltages () are expressed only in terms of state variables (capacitor voltages and inductor currents) and external input sources.

  • Once isolated, substitute the derivative relations:

Step 4: Assemble the Matrix Equations

Collect the isolated first-order differential equations and write them in vector-matrix format. Express the measurable output terminal variable as a linear combination of states and inputs to form the output matrix.


3. High-Yield Worked Examples (The Exam Classics)


3.1 Example 1: The Second-Order Series RLC Network [PYQ 2022, 2020]

Question: Derive the complete state-space model for the series RLC network shown below. Find the state and output matrices if the output is:

  1. The loop current .
  2. The capacitor voltage .
                  Inductor current i_L(t) --->
               +------------[  R  ]------------[  L  ]------------+
               |                                                  |
              (+)                                                [C] v_C(t)
             v_s(t)                                               |
              |                                                   |
               +--------------------------------------------------+

Step-by-Step Solution:

  1. Assign State Variables: The circuit has one capacitor () and one inductor (). The system order is . Let our states be: The input is the voltage source:

  2. Apply KVL and KCL:

    • Loop KVL: Summing voltages around the series loop:
    • Node KCL: The capacitor current is exactly equal to the inductor loop current:
  3. Isolate Derivatives:

    • For the inductor:
    • For the capacitor:
  4. Assemble Matrices: Combining these equations into matrix form : \begin{bmatrix} \\dot{x}_1(t) \\\\ \\dot{x}_2(t) \\end{bmatrix} = \\begin{bmatrix} 0 & \\frac{1}{C} \\\\ -\\frac{1}{L} & -\\frac{R}{L} \\end{bmatrix} \\begin{bmatrix} x_1(t) \\\\ x_2(t) \\end{bmatrix} + \\begin{bmatrix} 0 \\\\ \\frac{1}{L} \\end{bmatrix} u(t)

    • Case 1: Output is Loop Current (): y(t) = \\begin{bmatrix} 0 & 1 \\end{bmatrix} \\begin{bmatrix} x_1(t) \\\\ x_2(t) \\end{bmatrix} + \\begin{bmatrix} 0 \\end{bmatrix} u(t) \\mathbf{C} = \\begin{bmatrix} 0 & 1 \\end{bmatrix}, \\quad \\mathbf{D} = \\begin{bmatrix} 0 \\end{bmatrix}
    • Case 2: Output is Capacitor Voltage (): y(t) = \\begin{bmatrix} 1 & 0 \\end{bmatrix} \\begin{bmatrix} x_1(t) \\\\ x_2(t) \\end{bmatrix} + \\begin{bmatrix} 0 \\end{bmatrix} u(t) \\mathbf{C} = \\begin{bmatrix} 1 & 0 \\end{bmatrix}, \\quad \\mathbf{D} = \\begin{bmatrix} 0 \\end{bmatrix}

3.2 Example 2: The Two-Stage Cascaded RC Network [PYQ 2025, 2019, 2015]

Question: Obtain the state-space model of the passive cascaded RC circuit shown below. The input is and the output is the voltage across the second capacitor .

                     R1                              R2
          o-------[  R1  ]-------+---------------[  R2  ]-------+-------o
          |                      |                             |
         (+)                    [C1] v_C1(t)                  [C2] v_C2(t) (y)
        v_i(t)                   |                             |
          |                      |                             |
          o----------------------+-----------------------------+-------o

Step-by-Step Solution:

  1. Assign State Variables: The circuit has two capacitors ( and ) and zero inductors. The system order is . Let our states be: The input is the voltage source: The output is:

  2. Apply KCL at Nodes:

    • KCL at Node 1 (Capacitor ): Sum of currents entering equals sum of currents leaving:
    • KCL at Node 2 (Capacitor ):
  3. Isolate Derivatives:

    • For the first capacitor, substitute :
    • For the second capacitor, substitute :
  4. Assemble Matrices: Write in vector-matrix format: \begin{bmatrix} \\dot{x}_1(t) \\\\ \\dot{x}_2(t) \\end{bmatrix} = \\begin{bmatrix} -\\left(\\frac{1}{R_1 C_1} + \\frac{1}{R_2 C_1}\\right) & \\frac{1}{R_2 C_1} \\\\ \\frac{1}{R_2 C_2} & -\\frac{1}{R_2 C_2} \\end{bmatrix} \\begin{bmatrix} x_1(t) \\\\ x_2(t) \\end{bmatrix} + \\begin{bmatrix} \\frac{1}{R_1 C_1} \\\\ 0 \\end{bmatrix} u(t) y(t) = \\begin{bmatrix} 0 & 1 \\end{bmatrix} \\begin{bmatrix} x_1(t) \\\\ x_2(t) \\end{bmatrix} + \\begin{bmatrix} 0 \\end{bmatrix} u(t)

    Thus, the state-space matrices are: \\mathbf{A} = \\begin{bmatrix} -\\frac{R_1 + R_2}{R_1 R_2 C_1} & \\frac{1}{R_2 C_1} \\\\ \\frac{1}{R_2 C_2} & -\\frac{1}{R_2 C_2} \\end{bmatrix}, \\quad \\mathbf{B} = \\begin{bmatrix} \\frac{1}{R_1 C_1} \\\\ 0 \\end{bmatrix}, \\quad \\mathbf{C} = \\begin{bmatrix} 0 & 1 \\end{bmatrix}, \\quad \\mathbf{D} = \\begin{bmatrix} 0 \\end{bmatrix}


3.3 Example 3: Three-Storage Multi-Loop Network [PYQ 2024 Question 3b - Verbatim 13 Marks]

Question: Represent the following electrical circuit by a state model. The output is the voltage across resistor .

                     L1 (i_L1)                         L2 (i_L2)
          o-------[  L1  ]-------+------------------[  L2  ]-------+-------o
          |                      |                                 |
         (+)                    [C] v_C(t)                        [R2] y(t)
        V(t)                     |                                 |
          |                      |                                 |
          o------[  R1  ]--------+---------------------------------+-------o

Note: This KUET 2024 circuit is an exceptional multi-loop network because resistor is placed in the bottom return wire, which couples both left-hand and right-hand loop currents.

Step-by-Step Solution:

  1. Assign State Variables: The circuit has three energy-storing elements: capacitor , inductor , and inductor . The system order is . Let our states be: x_2(t) = i_{L_1}(t) \quad \text{{current through inductor } L_1 \text{ (left-to-right)}} x_3(t) = i_{L_2}(t) \quad \text{{current through inductor } L_2 \text{ (left-to-right)}} The input is: The output is the voltage across the load resistor . Since the current through is exactly :

  2. Write KVL/KCL and Isolate Derivatives:

    • Capacitor State Equation (): Apply KCL at the top central node (above capacitor ). The current entering from the left is . The currents leaving are the capacitor current and the right inductor current . Since :

    • Left Inductor State Equation (): Write KVL around the left-hand loop containing , , , and . Warning: Note that is in the bottom path, which carries only the left-hand loop current : Since :

    • Right Inductor State Equation (): Write KVL around the right-hand loop containing , , and : Since :

  3. Matrix Assembly: Gather the equations to formulate the state and output matrices:

    The final matrices are:


3.4 Example 4: Series RLC with Parallel Admittance (Numerical Practice)

Question: Derive the numerical state matrices for the electrical circuit shown below. Given component values: , , .

               Rs = 2 ohms
          o----[  Rs  ]------+-----------------------+----o
          |                  |                       |
         (+)                [C] C = 0.5 F           [L] L = 1 H
        v_i(t)               |                       |
          |                  |                       |
          o------------------+-----------------------+----o

Step-by-Step Solution:

  1. Assign State Variables:

    • State variables:
    • Input:
  2. Write KCL and KVL:

    • KCL at top right node: The current entering through resistor equals the sum of capacitor and inductor currents:
    • KVL for Inductor branch: The inductor is in parallel with the capacitor, so the voltage across it is exactly :
  3. Isolate Derivatives:

    • For capacitor:
    • For inductor:
  4. Evaluate Numerically: Substitute , , :

    In matrix form:


4. Common Mistakes That Cost Marks

The Inductor Current Polarities in KVL

Always write the inductor voltage as in the direction of the defined current loop. If you write loop KVL equations and flip the polarity of , you will generate negative signs in your matrix, indicating a system with unstable poles. Stable physical circuits containing only passive resistors, inductors, and capacitors must have state eigenvalues with negative real parts!

Dependent State Redundancy

Only write states for independent energy-storing elements. If a circuit has a loop of only capacitors, or a cut-set of only inductors, the states are dependent {since the voltages or currents are constrained by KVL/KCL and cannot change independently}. In such cases, the total system order is reduced, and writing standard independent matrices will result in singular, non-invertible state equations.


5. PYQ Bank — Verbatim Questions & Answer Plans

5.1 PYQ 2024 Question 3b [13 Marks]

Question: Represent the following electrical circuit by a state model: [CIRCUIT: Voltage source V(t) in series with R1 on bottom wire, inductor L1 on top-left, capacitor C in middle shunt, inductor L2 on top-right, and output resistor R2 on right-hand shunt - source: KUET 2024 Q3b]

  • Answer Plan: Define the three energy storage states , , and . Follow the exact algebraic formulation steps detailed in Section 3.3 to derive the isolated derivatives and present the correct system matrices to secure all 13 marks.

5.2 PYQ 2022 Question 4b [15 Marks - Verbatim]

Question: Find the Z & Y parameters of two port network shown in Fig. 4(b) (which can be derived using the state modeling conversions we cover in Note 3.06).

  • Answer Plan: This problem bridges network theory and state space, solved by calculating s-domain equivalent matrices as outlined in Note 3.06.

6. Self-Check Before Moving On

  • Can you explain why capacitor voltage () and inductor current () are selected as natural state variables? [1.1]
  • Do you know how to write independent KVL and KCL equations and completely isolate first-order derivatives ()? [2.0]
  • Can you solve a multi-loop circuit containing three energy storage elements and compile them into state matrices? [3.3]
  • Have you mastered the polarity convention for inductors and capacitors in KVL/KCL loops? [4.0]

Source: (k.Deergha Rao) signals and systems.pdf (Chapter 3 & 4), Rabiul sir -2309008.pdf, Azmat Sir-2309008.pdf (KUET Class Notes & Lecture Slides).