RC Circuit Equations in the s-Domain
Nerd Cafe
1. What is the s-domain?
The s-domain is the domain after applying the Laplace Transform. It’s widely used in circuit analysis because it converts differential equations to algebraic equations, which are easier to handle.
The Laplace variable s is defined as:
2. RC Circuit Basics in Time Domain
Components:
R
= Resistance (Ohms)C
= Capacitance (Farads)
Time-domain differential equation:
For a series RC circuit with input Vin and output across the capacitor Vout:
Using:
We get:
3. Laplace Transform of RC Circuit
Apply Laplace Transform:
So:
If initial capacitor voltage 𝑉𝐶(0) = 0 :
Transfer Function:
4. Solving RC Circuit in s-domain
Given any input Vin(s), the output is:
Use inverse Laplace to get 𝑉𝑜𝑢𝑡( 𝑡 ).
5. Python Implementation (Symbolic & Numeric)
We’ll use SymPy for symbolic analysis and SciPy/Matplotlib for numerical/graphical output.
Output
6. Example : Step Response of RC Circuit
Input:
Output:
Inverse Laplace:
Use partial fractions:
Python Code for Step Response (Numeric)
Output
Keywords
RC circuit
, s-domain
, Laplace transform
, transfer function
, step response
, sinusoidal input
, time domain
, frequency domain
, capacitor voltage
, resistor current
, symbolic math
, SymPy
, SciPy
, Python simulation
, inverse Laplace
, first-order circuit
, circuit analysis
, transient response
, electrical engineering
, control systems
, nerd cafe
Last updated