Part I: Circuit Fundamentals | Chapter 2

RC, RL & RLC Circuits

Transient analysis: time constants, step responses, and oscillatory behaviour in reactive networks.

Reactive Elements: Capacitors & Inductors

Unlike resistors, capacitors and inductors store energy and introduce memory into circuits โ€” their behaviour depends on the history of voltage or current, making the governing equations differential rather than algebraic.

Capacitor

Current is proportional to the rate of change of voltage:

\[ i = C \frac{dv}{dt} \]

Stores energy in the electric field: \( E = \tfrac{1}{2}CV^2 \). Cannot change voltage instantaneously.

Inductor

Voltage is proportional to the rate of change of current:

\[ v = L \frac{di}{dt} \]

Stores energy in the magnetic field: \( E = \tfrac{1}{2}LI^2 \). Cannot change current instantaneously.

First-Order Circuits: RC and RL

RC+โˆ’VsV_C (t)\tau = RC\)

A series RC circuit driven by a step voltage \( V_s \) (switch closed at \( t=0 \)) obeys:

\[ RC \frac{dv_C}{dt} + v_C = V_s \implies v_C(t) = V_s\!\left(1 - e^{-t/\tau}\right),\quad \tau = RC \]

The time constant \( \tau = RC \) determines how quickly the capacitor charges. After one time constant the voltage reaches 63.2 % of its final value; after \( 5\tau \) it is within 1 % of \( V_s \).

Analogously, for a series RL circuit the time constant is:

\[ \tau = \frac{L}{R}, \qquad i_L(t) = \frac{V_s}{R}\!\left(1 - e^{-t/\tau}\right) \]

Natural and Forced Responses

Any first-order response splits into a natural (homogeneous) response that decays exponentially and a forced (particular) response that matches the driving source at steady state:

\[ x(t) = x_{\text{forced}} + \bigl(x(0) - x_{\text{forced}}\bigr)\,e^{-t/\tau} \]

Second-Order Circuits: RLC

A series RLC circuit driven by a voltage step satisfies the second-order ODE:

\[ L\frac{d^2i}{dt^2} + R\frac{di}{dt} + \frac{i}{C} = \frac{dV_s}{dt} \]

The characteristic equation \( s^2 + 2\alpha s + \omega_0^2 = 0 \) has parameters:

Resonant frequency
\[ \omega_0 = \frac{1}{\sqrt{LC}} \]
Damping coefficient
\[ \alpha = \frac{R}{2L} \]
Damping ratio
\[ \zeta = \frac{\alpha}{\omega_0} = \frac{R}{2}\sqrt{\frac{C}{L}} \]

Three Damping Regimes

Underdamped (\(\zeta < 1\))

Oscillates and decays. Damped frequency \(\omega_d = \sqrt{\omega_0^2 - \alpha^2}\). Fast settling but with overshoot.

Critically damped (\(\zeta = 1\))

Fastest possible settling without oscillation. \( R_c = 2\sqrt{L/C} \). Ideal for many control applications.

Overdamped (\(\zeta > 1\))

Two real negative poles; exponential decay without oscillation, but slower than critically damped.

Quality Factor Q

The quality factor measures how underdamped the resonator is โ€” the ratio of energy stored to energy dissipated per cycle:

\[ Q = \frac{\omega_0 L}{R} = \frac{1}{R}\sqrt{\frac{L}{C}} = \frac{1}{2\zeta} \]

High-Q circuits (small R) ring for many cycles; low-Q circuits are heavily damped. Q also equals the ratio of resonant frequency to bandwidth: \( Q = \omega_0 / \Delta\omega \).

Python: RC & RLC Transient Simulation

Simulate RC charging and discharging, then compute and plot the exact RLC step response for all three damping regimes using analytical solutions derived from the characteristic equation.

RC Charging/Discharging & RLC Damping Regimes

Python
rc_rl_rlc.py122 lines

Click Run to execute the Python code

Code will be executed with Python 3 on the server