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
InductorL (H)a
CapacitorC (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:
Where:
and
Differentiate both sides:
Step 2: Convert to s-domain using Laplace Transform
Apply the Laplace Transform assuming zero initial conditions:
Final Equation in the s-domain:
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