The Laplace Transform for Circuits
Each transient so far took a differential equation, a guess of the solution's form and two initial conditions fitted by hand. That works for one or two storage elements and gets tedious fast: a third capacitor, a switch with charged elements, or a source that is not a step, and the bookkeeping explodes. The Laplace transform turns the whole problem into algebra. Every element becomes an impedance in , initial conditions become ordinary sources, and the circuit is solved with the same nodal and mesh methods as a resistive one. This lesson builds the s-domain element models; s-Domain Circuit Analysis applies them to whole circuits.
The mathematics (definition, existence, the table, proofs) is in the Differential Equations course: The Laplace Transform, Inverse Laplace and Solving IVPs with Laplace. Here we use it as a circuit tool.
The two rules that matter
The one-sided transform of a signal , , is
with a complex frequency in . Two properties make it a circuit tool:
Differentiation becomes multiplication by , and the initial value appears automatically. The lower limit means "just before the switch": exactly the value the continuity rules give us.
A short table covers almost every circuit transient:
| , | |
|---|---|
| (impulse) | |
| (unit step) | |
Element models in the s domain
Transform each element law with the derivative rule, current entering the + terminal:
So an inductor is an impedance in series with a voltage source , and a capacitor is an impedance in series with a voltage source , a step of the initial voltage. The polarities follow from the signs:
Each series model has a parallel (Norton) twin, found by source transformation: the inductor as in parallel with a current source , the capacitor as in parallel with a current source . Use the series form for mesh analysis and the parallel form for nodal analysis. With zero initial conditions the sources vanish and , : setting gives back the phasor impedances of Impedance and Admittance. The Laplace domain is the phasor domain extended to transients.
The procedure
- Find and from the circuit before the switching event.
- Redraw the circuit for in the s domain: sources transformed ( for a step), elements as impedances with their initial-condition sources.
- Solve with KVL, KCL, nodal or mesh analysis, treating impedances like resistances.
- Expand the result in partial fractions and invert term by term with the table.
Worked example: a capacitor that starts charged the wrong way
Given: holds . At it is switched, through , onto a source.
Find: and for .
Solve: KVL round the loop in the s domain, with the capacitor as in series with :
With , the table gives . The capacitor voltage:
so .
Check: (continuous), , . The general first-order method gives the same in one line, as it should; the Laplace route earns its keep on the second-order and multi-element circuits of the next lessons. The initial current is right too.
In Python: SymPy does the table look-ups
import sympy as sp
s, t = sp.symbols("s t", positive=True)
# a few table entries, computed rather than remembered
a, w = sp.symbols("a omega", positive=True)
for f in [sp.Integer(1), t, sp.exp(-a*t), sp.sin(w*t), sp.exp(-a*t)*sp.cos(w*t)]:
F = sp.laplace_transform(f, t, s, noconds=True)
print(f"L{{{f}}} = {sp.simplify(F)}")
# the worked example in the s domain
R, C, V, v0 = 1000, sp.Rational(1, 10**6), 10, -2
I = (sp.Integer(V)/s - sp.Integer(v0)/s) / (R + 1/(s*C))
VC = I/(s*C) + sp.Integer(v0)/s
print("I(s) =", sp.simplify(I))
print("VC(s) =", sp.apart(sp.simplify(VC), s))
print("i(t) =", sp.inverse_laplace_transform(I, s, t))
print("vC(t) =", sp.inverse_laplace_transform(VC, s, t))
# initial- and final-value theorems as a check: f(0+) = lim s F(s), s -> oo; f(oo) = lim s F(s), s -> 0
print("vC(0+) =", sp.limit(s*VC, s, sp.oo), " vC(oo) =", sp.limit(s*VC, s, 0))L{1} = 1/s
L{t} = s**(-2)
L{exp(-a*t)} = 1/(a + s)
L{sin(omega*t)} = omega/(omega**2 + s**2)
L{exp(-a*t)*cos(omega*t)} = (a + s)/(omega**2 + (a + s)**2)
I(s) = 3/(250*(s + 1000))
VC(s) = -12/(s + 1000) + 10/s
i(t) = 3*exp(-1000*t)/250
vC(t) = 10 - 12*exp(-1000*t)
vC(0+) = -2 vC(oo) = 10
: the found by hand. The last line uses the initial- and final-value theorems, and (the latter only when the response settles), a quick check on any s-domain answer.
Interactive: the same transient in the netlist lab
The lab's transient solver accepts initial conditions with IC=. Here the capacitor starts at ; the step source charges it towards .
At the lab shows and in ; at , .
Guided lab: an initial condition you can set on the bench
Hand calculation. Charge a film capacitor to from a bench supply, then connect it, reversed (so in the loop's reference), in series with across a supply. Expect and an initial current of .
Simulation. The lab above, or the Python code with your measured and .
What you would measure. It is hard to switch by hand cleanly, so use a single-shot scope capture triggered on the step, with a toggle switch or a relay. Read at ( expected) and the time of the zero crossing, . Expect from the capacitor tolerance; switch bounce adds a few microseconds of noise at the start.
Hazards and safe setup. Use a film (non-polarised) capacitor: an electrolytic charged in reverse is damaged. Supplies at with a limit; the peak is well inside it.
Pitfalls
- Wrong polarity of the initial-condition source. Derive it from the transformed element law, never from memory; the figure's convention assumes enters the + terminal.
- Forgetting on a DC source. A step of transforms to , not .
- Applying the final-value theorem to a response that does not settle. For oscillating or growing responses gives a meaningless number.
- Treating as in a transient. That substitution is only for sinusoidal steady state.
Practice
- Write the s-domain model of a inductor carrying at (series and parallel forms).
- Find the Laplace transform of V.
- An inductor with discharges through . Find and .
Answer
- Series: in series with a voltage source (an impulse-strength term; + on the current-exit side). Parallel: in parallel with a current source in the direction of the initial current.
- .
- KVL: , so and : the decay of the RL lesson.
Test yourself
In the s domain, a capacitor with initial voltage is an impedance in series with…
- a voltage source
- a voltage source
- a current source
- nothing
The Laplace transform of a step is…
With zero initial conditions, the s-domain impedance of an inductor is…
- always
. By the final-value theorem, is…