TExcelTAD
Home › Circuit Theory & Network Analysis › The Laplace Transform for Circuits

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 ss, 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 f(t)f(t), t≥0t \ge 0, is

F(s)=L{f(t)}=∫0−∞f(t) e−st dtF(s) = \mathcal{L}\{f(t)\} = \int_{0^-}^{\infty} f(t)\, e^{-st}\, dt

with ss a complex frequency in s−1\text{s}^{-1}. Two properties make it a circuit tool:

L{dfdt}=sF(s)−f(0−),L{∫0−tf dτ}=F(s)s\mathcal{L}\left\{ \frac{df}{dt} \right\} = sF(s) - f(0^-), \qquad \mathcal{L}\left\{ \int_{0^-}^{t} f\, d\tau \right\} = \frac{F(s)}{s}

Differentiation becomes multiplication by ss, and the initial value appears automatically. The lower limit 0−0^- means "just before the switch": exactly the value the continuity rules give us.

A short table covers almost every circuit transient:

f(t)f(t), t≥0t \ge 0 F(s)F(s)
δ(t)\delta(t) (impulse) 11
11 (unit step) 1/s1/s
tt 1/s21/s^2
e−ate^{-at} 1/(s+a)1/(s + a)
cos⁡ωt\cos \omega t s/(s2+ω2)s/(s^2 + \omega^2)
sin⁡ωt\sin \omega t ω/(s2+ω2)\omega/(s^2 + \omega^2)
e−atcos⁡ωte^{-at}\cos \omega t (s+a)/((s+a)2+ω2)(s + a)/((s + a)^2 + \omega^2)
e−atsin⁡ωte^{-at}\sin \omega t ω/((s+a)2+ω2)\omega/((s + a)^2 + \omega^2)

Element models in the s domain

Transform each element law with the derivative rule, current I(s)I(s) entering the + terminal:

resistor:V(s)=R I(s)inductor:v=Ldidt  ⇒  V(s)=sL I(s)−L i(0−)capacitor:i=Cdvdt  ⇒  I(s)=sC V(s)−C v(0−)  ⇔  V(s)=I(s)sC+v(0−)s\begin{aligned} \text{resistor:}\quad & V(s) = R\, I(s) \\ \text{inductor:}\quad & v = L\frac{di}{dt} \;\Rightarrow\; V(s) = sL\, I(s) - L\, i(0^-) \\ \text{capacitor:}\quad & i = C\frac{dv}{dt} \;\Rightarrow\; I(s) = sC\, V(s) - C\, v(0^-) \;\Leftrightarrow\; V(s) = \frac{I(s)}{sC} + \frac{v(0^-)}{s} \end{aligned}

So an inductor is an impedance ZL=sLZ_L = sL in series with a voltage source L i(0−)L\,i(0^-), and a capacitor is an impedance ZC=1/(sC)Z_C = 1/(sC) in series with a voltage source v(0−)/sv(0^-)/s, a step of the initial voltage. The polarities follow from the signs:

time domain s domain (series form) R R L i(0) sL + - L i(0) C v(0) 1/(sC) + - v(0)/s current I(s) enters on the left in every row

Each series model has a parallel (Norton) twin, found by source transformation: the inductor as sLsL in parallel with a current source i(0−)/si(0^-)/s, the capacitor as 1/(sC)1/(sC) in parallel with a current source C v(0−)C\,v(0^-). Use the series form for mesh analysis and the parallel form for nodal analysis. With zero initial conditions the sources vanish and ZL=sLZ_L = sL, ZC=1/(sC)Z_C = 1/(sC): setting s=jωs = j\omega gives back the phasor impedances of Impedance and Admittance. The Laplace domain is the phasor domain extended to transients.

The procedure

  1. Find vC(0−)v_C(0^-) and iL(0−)i_L(0^-) from the circuit before the switching event.
  2. Redraw the circuit for t>0t > 0 in the s domain: sources transformed (V0→V0/sV_0 \to V_0/s for a step), elements as impedances with their initial-condition sources.
  3. Solve with KVL, KCL, nodal or mesh analysis, treating impedances like resistances.
  4. 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: C=1 μFC = 1\ \mu\text{F} holds vC(0−)=−2 Vv_C(0^-) = -2\ \text{V}. At t=0t = 0 it is switched, through R=1 kΩR = 1\ \text{k}\Omega, onto a 10 V10\ \text{V} source.

Find: i(t)i(t) and vC(t)v_C(t) for t>0t > 0.

Solve: KVL round the loop in the s domain, with the capacitor as 1/(sC)1/(sC) in series with −2/s-2/s:

10s=R I(s)+I(s)sC+−2s⇒I(s)=12/sR+1/(sC)=12/Rs+1/(RC)=12 mAs+1000\frac{10}{s} = R\, I(s) + \frac{I(s)}{sC} + \frac{-2}{s} \quad\Rightarrow\quad I(s) = \frac{12/s}{R + 1/(sC)} = \frac{12/R}{s + 1/(RC)} = \frac{12\ \text{mA}}{s + 1000}

With RC=1 msRC = 1\ \text{ms}, the table gives i(t)=12 mA e−1000ti(t) = 12\ \text{mA}\, e^{-1000 t}. The capacitor voltage:

VC(s)=I(s)sC−2s=12 000s(s+1000)−2s=12s−12s+1000−2s=10s−12s+1000V_C(s) = \frac{I(s)}{sC} - \frac{2}{s} = \frac{12\,000}{s(s + 1000)} - \frac{2}{s} = \frac{12}{s} - \frac{12}{s + 1000} - \frac{2}{s} = \frac{10}{s} - \frac{12}{s + 1000}

so vC(t)=10−12 e−1000t Vv_C(t) = 10 - 12\,e^{-1000 t}\ \text{V}.

Check: vC(0+)=10−12=−2 Vv_C(0^+) = 10 - 12 = -2\ \text{V} (continuous), vC(∞)=10 Vv_C(\infty) = 10\ \text{V}, τ=1 ms\tau = 1\ \text{ms}. 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 12 mA=(10−(−2)) V/1 kΩ12\ \text{mA} = (10 - (-2))\ \text{V}/1\ \text{k}\Omega is right too.

In Python: SymPy does the table look-ups

python · try it yourself
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

3/250=0.0123/250 = 0.012: the 12 mA12\ \text{mA} found by hand. The last line uses the initial- and final-value theorems, f(0+)=lim⁡s→∞sF(s)f(0^+) = \lim_{s \to \infty} sF(s) and f(∞)=lim⁡s→0sF(s)f(\infty) = \lim_{s \to 0} sF(s) (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 −2 V-2\ \text{V}; the step source charges it towards 10 V10\ \text{V}.

05100246t (ms)V0 A5.0 mA10 mAI (A)V(c)I(R1)at t = 6.000 msV(in)10.0 VV(c)9.97 VI(V1)-29.7 uAI(R1)29.7 uAI(C1)29.7 uA

At t=0t = 0 the lab shows vc=−2 Vv_c = -2\ \text{V} and 12 mA12\ \text{mA} in R1R_1; at t=1 mst = 1\ \text{ms}, 10−12e−1=5.59 V10 - 12e^{-1} = 5.59\ \text{V}.

Guided lab: an initial condition you can set on the bench

Hand calculation. Charge a 1 μF1\ \mu\text{F} film capacitor to 2 V2\ \text{V} from a bench supply, then connect it, reversed (so vC(0−)=−2 Vv_C(0^-) = -2\ \text{V} in the loop's reference), in series with 1 kΩ1\ \text{k}\Omega across a 10 V10\ \text{V} supply. Expect vC(t)=10−12e−t/1 ms Vv_C(t) = 10 - 12e^{-t/1\ \text{ms}}\ \text{V} and an initial current of 12 mA12\ \text{mA}.

Simulation. The lab above, or the Python code with your measured RR and CC.

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 vCv_C at 1 ms1\ \text{ms} (5.6 V5.6\ \text{V} expected) and the time of the zero crossing, τln⁡1.2=0.18 ms\tau \ln 1.2 = 0.18\ \text{ms}. Expect ±10 %\pm 10\,\% 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 10 V10\ \text{V} with a 50 mA50\ \text{mA} limit; the 12 mA12\ \text{mA} 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 I(s)I(s) enters the + terminal.
  • Forgetting 1/s1/s on a DC source. A step of V0V_0 transforms to V0/sV_0/s, not V0V_0.
  • Applying the final-value theorem to a response that does not settle. For oscillating or growing responses lim⁡s→0sF(s)\lim_{s\to 0} sF(s) gives a meaningless number.
  • Treating ss as jωj\omega in a transient. That substitution is only for sinusoidal steady state.

Practice

  1. Write the s-domain model of a 50 mH50\ \text{mH} inductor carrying 0.3 A0.3\ \text{A} at t=0−t = 0^- (series and parallel forms).
  2. Find the Laplace transform of v(t)=5−5e−200tv(t) = 5 - 5e^{-200t} V.
  3. An inductor L=0.1 HL = 0.1\ \text{H} with i(0−)=0.2 Ai(0^-) = 0.2\ \text{A} discharges through 80 Ω80\ \Omega. Find I(s)I(s) and i(t)i(t).
Answer
  1. Series: 0.05 s0.05\,s in series with a voltage source Li(0−)=0.015 V⋅sL i(0^-) = 0.015\ \text{V} \cdot \text{s} (an impulse-strength term; + on the current-exit side). Parallel: 0.05 s0.05\,s in parallel with a current source 0.3/s0.3/s in the direction of the initial current.
  2. V(s)=5/s−5/(s+200)=1000/(s(s+200))V(s) = 5/s - 5/(s + 200) = 1000/(s(s + 200)).
  3. KVL: 0=(0.1s+80)I(s)−0.1⋅0.20 = (0.1s + 80) I(s) - 0.1 \cdot 0.2, so I(s)=0.02/(0.1s+80)=0.2/(s+800)I(s) = 0.02/(0.1s + 80) = 0.2/(s + 800) and i(t)=0.2 e−800t Ai(t) = 0.2\,e^{-800t}\ \text{A}: the 1.25 ms1.25\ \text{ms} decay of the RL lesson.

Test yourself

In the s domain, a capacitor with initial voltage v(0−)v(0^-) is an impedance 1/(sC)1/(sC) in series with…

  1. a voltage source v(0−)/sv(0^-)/s
  2. a voltage source C v(0−)C\,v(0^-)
  3. a current source v(0−)v(0^-)
  4. nothing

The Laplace transform of a 12 V12\ \text{V} step is…

  1. 1212
  2. 12/s12/s
  3. 12s12s
  4. 12/s212/s^2

With zero initial conditions, the s-domain impedance of an inductor is…

  1. L/sL/s
  2. sLsL
  3. 1/(sL)1/(sL)
  4. jωLj\omega L always

F(s)=10/(s(s+5))F(s) = 10/(s(s + 5)). By the final-value theorem, f(∞)f(\infty) is…

  1. 00
  2. 22
  3. 1010
  4. 5050