LC Circuit Equations in the s-Domain

Nerd Cafe

What is an LC Circuit?

An LC circuit (also known as a resonant or tank circuit) is a simple electrical circuit consisting of:

  • an Inductor L (H)

  • a Capacitor C (F)

It's used in:

  • Oscillators

  • Filters

  • Tuned circuits (like radios)

Step 1: Time-Domain Equations of LC Circuit

Let’s start from the KVL (Kirchhoff's Voltage Law) for the series LC circuit:

vL(t)+vC(t)=0v_{L}(t)+v_{C}(t)=0

Where:

VL(t)=Ldi(t)dtV_{L}(t)=L\frac{d i(t)}{dt}

and

VC(t)=1Ci(t)dtV_{C}(t)=\frac{1}{C}\int_{}^{}i(t)dt

Differentiate both sides:

Ld2idt2+1Ci(t)=0L\frac{d^{2} i}{dt^{2}}+\frac{1}{C}i(t)=0

Step 2: Convert to s-domain using Laplace Transform

Apply the Laplace Transform assuming zero initial conditions:

L{Ld2idt2+1Ci(t)}=Ls2I(s)+1CI(s)=I(s)(Ls2+1C)=0L\left\{ L\frac{d^{2} i}{dt^{2}}+\frac{1}{C}i(t) \right\}=Ls^{2}I(s)+\frac{1}{C}I(s)=I(s)\left( Ls^{2}+\frac{1}{C} \right)=0

Final Equation in the s-domain:

Ls2+1C=0s2=1LCs=±jω0    where    ω0=1LCLs^{2}+\frac{1}{C}=0\Rightarrow s^{2}=-\frac{1}{LC}\Rightarrow s=\pm j\omega_{0}\;\;where\;\;\omega_{0}=\frac{1}{\sqrt{LC}}

Step 3: Python Implementation

Let’s use sympy to model this in Python.

Installation:

Python Code:

Output:

Step 4: Example with Real Values

Let's say:

  • L=10 mH=10×10−3

  • C=100 nF=100×10−9C

Python Code:

Output

Keywords

LC circuit, s-domain, Laplace transform, inductor, capacitor, resonant frequency, transfer function, electrical engineering, differential equations, impedance, resonance, oscillation, symbolic math, Python, SymPy, frequency response, current waveform, undamped oscillation, time-domain analysis, circuit analysis, nerd cafe

Last updated