Series RLC Circuit

What you'll learn

  • How electrical circuits map to the same ODE structures as mechanical systems
  • Underdamped oscillation in a different physical domain
  • The effect of resistance, inductance, and capacitance on transient response

A series RLC circuit driven by a step voltage source. The inductor and capacitor trade energy back and forth, producing oscillating current and voltage — the electrical analogue of the mass-spring-damper. The resistor dissipates energy, damping the oscillation over time.

Notice this is the same structure as the mass-spring-damper: inductance plays the role of mass, capacitance is the inverse of stiffness, and resistance is damping. Simulate to see the transient response.

Things to try

  • Increase R to 50 — the circuit becomes overdamped and the capacitor charges without ringing.
  • Set R = 0 for an ideal LC circuit — the oscillation never decays.
  • Try C = 1e-4 — smaller capacitance means faster oscillations (higher natural frequency).
  • Compare the electrical analogy: L ↔ mass, 1/C ↔ stiffness, R ↔ damping coefficient.