Everything before this chapter happened instantly. Flip a switch on a resistive
network and the new currents are simply there — Ohm's law has no clock in it. Add one
capacitor or one inductor and the circuit acquires memory: it now takes time to get where it's
going, and the whole exam question becomes how it gets there. This chapter gives you one
formula that covers every such circuit in ME 123, plus the two-line reasoning that produces its
three unknowns. Budget about 45 minutes: 15 on the derivation, 10 on the widget, 20 on the practice
problems.
The three eras of a switched circuit
Every first-order problem in this course is really three separate problems stapled together,
and the single most common way to lose marks is to solve the wrong one. Read the problem, decide
which era each question is asking about, and the work becomes mechanical.
ERA 1 · t < 0
Old steady state
The switch has been where it is "for a long time." Nothing is changing, so caps are open
circuits and inductors are shorts. Pure DC analysis — no calculus. This era exists only to
hand you the initial condition.
ERA 2 · t > 0
Transient
The switch has moved. The stored energy is wrong for the new circuit, so it decays
exponentially toward what the new circuit wants. This is the only era with an
e in it.
ERA 3 · t → ∞
New steady state
Five time constants later the exponential is dead. Caps open, inductors short — again,
but now in the post-switch topology. Pure DC analysis a second time. This era hands you the
final value.
The map. Era 1 and Era 3 are DC problems; only Era 2 needs the exponential.
Why nothing jumps (and what that buys you)
The bridge between Era 1 and Era 2 is a continuity argument, and it comes straight out of the
element laws. For a capacitor,
iC(t)=CdtdvC(t)
Capacitor element law — current is proportional to the rate of change of voltage.
Now suppose vC jumped — changed by a finite amount Δv in zero time. Then
dvC/dt=Δv/0→∞, and the capacitor would have to draw infinite current. Real
circuits contain no infinite-current sources, so the jump never happens. The same argument on
vL=LdiL/dt says an inductor current that jumped would demand an infinite voltage spike.
Hence the two most useful sentences in this chapter:
The continuity rules
vC(0+)=vC(0−)iL(0+)=iL(0−)
Capacitor voltage and inductor current are continuous across the switching
instant. Nothing else is. Capacitor current, inductor voltage, resistor voltages,
node voltages, source currents — all of these are free to jump discontinuously at t=0, and in a
good exam problem at least one of them will.
That asymmetry is what makes the rules useful. You are given a circuit that changes at t=0 and
you need one number to pin down the solution; continuity says exactly which number you are allowed
to carry across the boundary. Everything else you recompute in the new topology.
A handy restatement for the instant just after the switch: at t=0+, a capacitor behaves like
an ideal voltage source of value vC(0−), and an inductor behaves like an
ideal current source of value iL(0−). Substitute those in and you can solve for
every other quantity at t=0+ with plain resistive analysis.
Quick check · continuity
A capacitor has sat at vC=15 V for a long time. At t=0 a switch opens,
disconnecting the source entirely so that the capacitor's new final value will be 0 V. What is
vC(0+)?
Era 1 and Era 3: DC steady state (slides 4.2–4.3)
"Steady state" means every voltage and current has stopped changing: all the d/dt terms are
zero. Feed that into the two element laws and the components collapse:
Element
Element law
With d/dt=0
Replace with
Capacitor
iC=CdvC/dt
iC=0
Open circuit (carries no current; holds whatever voltage the circuit puts there)
Inductor
vL=LdiL/dt
vL=0
Short circuit (drops no voltage; carries whatever current the circuit puts through it)
The substitution that turns Era 1 and Era 3 into ordinary resistive problems.
The classic slip
"Open circuit" makes people write vC=0 and "short circuit" makes people write iL=0.
Both are backwards. An open branch has zero current and generally a large voltage;
a short has zero voltage and generally a large current. Write the zero on the
right quantity.
Worked example 1 — pure DC steady stateEra 1 / Era 3 drill
A 24 V source feeds R1=4Ω into node A. From node A, one branch is L=2 H in
series with R2=8Ω down to ground; a second branch is C=50μF from node A to
ground. The circuit has been like this for a long time. Find vC, iL, and the stored energies.
The physical circuit for Worked example 1 — a 24 V source through R1 into node A,
which splits into an L–R2 series branch and a C branch, both returning to ground.
1
Steady state ⇒ replace C with an open circuit and L with a short.
Nothing is changing, so iC=CdvC/dt=0 and vL=LdiL/dt=0.
2
With the capacitor branch open, the only path left is 24V→R1→R2→ ground:
iL=4+824=2A
3
The capacitor sits across node A to ground, and node A is the top of R2 (the inductor
drops nothing):
vC=vA=iLR2=2×8=16V
Cross-check the other way: vA=24−iLR1=24−2(4)=16 V. ✓
iL=2 A, vC=16 V, EC=6.4 mJ, EL=4 J. Notice iC=0 and
vL=0 — the zeros land on current for the cap and voltage for the inductor.
Era 2: deriving the transient from scratch
Here is the circuit the whole chapter turns on. A DC source, a resistor, a capacitor, and a
switch that closes at t=0 with the capacitor uncharged.
Series RC. Switch closes at t=0; capacitor starts uncharged, v(0)=0.
Write KVL around the loop for t>0, using the capacitor's own element law for the current:
Vs=i(t)R+v(t),i(t)=Cdtdv⟹RCdtdv+v=Vs
One first-order linear ODE. Every problem in slides 4.1–4.3 reduces to this shape.
Now the method the course uses: guess a form, substitute, and let the algebra tell you the
constants. Guess
v(t)=k1+k2est
A constant plus a decaying exponential — three unknowns, k1, k2, and s.
1
Differentiate the guess.dtdv=k2sest.
2
Substitute into the ODE.
RC(k2sest)+(k1+k2est)=Vs
3
Group the constant terms and the est terms separately.
constant(k1−Vs)+time-varyingk2est(RCs+1)=0
This is the load-bearing step. The equation must hold at every instant t,
and est is not a constant — so the constant part and the est part can't cancel each
other. Each group must vanish on its own.
4
Constant group ⇒ k1.k1−Vs=0⇒k1=Vs.
k1 is whatever's left when the exponential dies, i.e. k1=v(∞) — the
new steady-state value. That is exactly the Era 3 number.
5
Exponential group ⇒ s. Since k2=0 and est=0, we need
RCs+1=0:
s=−RC1=−τ1,τ≡RC
s comes only from R, C, and the circuit's shape — never from the
source value or the initial condition. Note s is negative, which is what makes the transient
decay rather than blow up.
6
Initial condition ⇒ k2. Apply v(0)=0 to the now-partly-solved guess
v(t)=Vs+k2e−t/τ:
v(0)=Vs+k2e0=Vs+k2=0⇒k2=−Vs
k2 is always applied last, after k1 and s are known. Applying the
initial condition before you have k1 is the single most common algebra error here.
7
Assemble.
v(t)=Vs−Vse−t/τ=Vs(1−e−t/τ),t≥0
and the current follows from the element law:
i(t)=Cdtdv=C⋅τVse−t/τ=RVse−t/τ
Sanity check: at t=0+ the uncharged capacitor looks like a short, so the
current should be Vs/R — and it is. At t→∞ the capacitor is fully charged and the
current is zero. Both limits check out. ✓
The general result — memorize this one
Nothing in steps 3–6 used the fact that the source was a voltage source, or that the element was
a capacitor. Repeat the derivation on any single-energy-storage circuit and you get the same shape,
which is why one formula covers the whole chapter:
x(t)=x(∞)+[x(0+)−x(∞)]e−t/τ
x is vC or iL. Read it as: final value, plus the leftover error, decaying away.
Matching to the derivation, k1=x(∞) and k2=x(0+)−x(∞).
You need
Where it comes from
Formula
x(0+)
Era 1 — DC analysis before the switch, then continuity
vC(0+)=vC(0−); iL(0+)=iL(0−)
x(∞)
Era 3 — DC analysis after the switch (caps open, inductors short)
whatever the new resistive network gives
τ
The Thévenin resistance seen from the storage element's own terminals, in the post-switch circuit, with independent sources deactivated
τ=RThC or τ=L/RTh
Finding τ properly
τ=RC is shorthand for "τ=RThC." Pull the capacitor (or inductor) out,
kill the independent sources — voltage sources become shorts, current sources become opens — and
find the equivalent resistance looking back into the two terminals you just vacated. In a plain
series loop that is just R; in anything with a divider it is not, and using the wrong resistor is
the most common way to get a right-shaped answer with a wrong exponent. Units check: Ω⋅F=s, and H/Ω=s.
Quick check · which R sets τ
A 2μF capacitor sits from node A to ground. A 20 V source in series with 5kΩ
feeds node A, and a 20kΩ resistor runs from node A to ground. What is τ?
What τ actually looks like
The time constant is the only number that sets the shape of the curve. Slide 4.1 gives
the two landmarks worth memorizing: after one τ a decaying quantity has fallen to
e−1=36.8% of its starting value (equivalently, a rising one has covered 63.2% of its
journey), and after 5τ only e−5=0.7% remains — close enough to call it settled.
Both curves share one τ. The tangent at t=0 hits the asymptote exactly at t=τ — a fast way to read τ off a scope trace.
A useful inversion: if you know two points on the curve you can solve for τ (or for whatever
else is unknown) by taking logs. Given v(t)=V0e−t/τ,
τ=ln(V0/v(t))t,and in particular the half-life is t1/2=τln2≈0.693τ
Worked example 2 — solving for an unknown R (Exercise 8, P4.11)log inversion
A 10μF capacitor is connected at t=0 to a voltmeter, which behaves as a resistor R
to ground. The meter reads 50 V at t=0 and 25 V at t=30 s. Find R.
The capacitor discharges through R — the voltmeter's own input resistance
— once the switch closes: a pure decay from 50 V toward 0.
1
No source in the post-switch circuit, so v(∞)=0 and the general formula collapses
to pure decay: v(t)=50e−t/τ.
2
The reading halved, so we are exactly at the half-life:
25=50e−30/τ⇒e−30/τ=0.5⇒τ30=ln2=0.693τ=0.69330=43.3s
3
R=Cτ=10×10−643.3=4.33×106Ω=4.33MΩ
Sanity check: a voltmeter should have a huge input resistance so it
barely disturbs the circuit it measures. Megohms is exactly right; had we gotten kilohms,
the arithmetic would be suspect.
R=4.33MΩ (equivalently τ=43.3 s).
Play with τ
Drag the sliders. Watch two things: the shape of the curve never changes — it is always
the same exponential — but the τ marker slides along the time axis, dragging the whole curve
with it. Note also that changing R in the RL circuit moves τ the opposite way from
changing R in the RC circuit, because τ=RC but τ=L/R.
τ Explorer — first-order response
τ =20.0 ms
5τ (settled) =100 ms
final value =10.0 V
t =0.0 ms
value now =0.00 V
% complete =0.0 %
The RL case
Swap the capacitor for an inductor and every step of the derivation repeats with the roles of
voltage and current exchanged. The continuous quantity is now iL, the time constant is
τ=L/RTh, and the general formula is unchanged.
Before t=0: inductor is a short, so iL(0−)=Vs/R1 and node A sits at 0 V.
After the switch opens, iL can only circulate through R2, so τ=L/R2 and iL→0.
The RL duality, in one line each
RC:vC is continuous · cap = open in steady state · τ=RThC ·
at t=0+ the cap acts as a voltage source vC(0−).
RL:iL is continuous · inductor = short in steady state · τ=L/RTh ·
at t=0+ the inductor acts as a current source iL(0−).
The RL circuit above also shows off the "everything else can jump" half of the continuity rule.
Before the switch opens, the inductor is a short, so node A sits at 0 V. The instant the switch
opens, iL must still be Vs/R1 — but that current now has to flow up through R2
from ground, which forces vA=−iLR2 immediately. If R2≫R1 that is a very large
negative spike out of nowhere. This is exactly why a relay coil needs a flyback diode.
Quick check · the t = 0⁺ substitution
An inductor has been carrying 3 A in steady state. At t=0 the circuit around it changes.
For the purpose of computing every other voltage and current at the instant t=0+, the
inductor is best replaced by:
Worked example 3 — a current-source charge (Exercise 8, P4.9)Norton form
A 1 mA DC current source, a 10kΩ resistor, and a 1μF capacitor are all in
parallel. A switch closes at t=0; the capacitor starts uncharged. Find v(t).
Norton form: current source in parallel with R and C. Closing the switch is
equivalent to suddenly applying the Thévenin-equivalent 10 V source through 10kΩ.
1
x(0+): given uncharged, v(0−)=0, so by continuity v(0+)=0.
2
x(∞): in steady state the capacitor is open, so all 1 mA flows
through the 10kΩ:
v(∞)=IsR=(1×10−3)(10×103)=10V
This is just the Norton-to-Thévenin conversion: the source pair is equivalent
to a 10 V source behind 10kΩ, which is the circuit we already derived.
3
τ: deactivate the current source (open circuit), leaving only the
10kΩ across the capacitor:
τ=RThC=(104)(10−6)=10ms⇒1/τ=100s−1
4
Assemble:v(t)=10+(0−10)e−100t=10(1−e−100t)V,t≥0
Cross-check by the k1/k2/s route: KCL gives
10−3=v/104+10−6dv/dt, i.e. 10−2dv/dt+v=10. Substituting
v=k1+k2est gives k1=10 and 10−2s+1=0⇒s=−100; then
v(0)=0⇒k2=−10. Same answer. ✓
v(t)=10(1−e−100t) V. It reaches 63.2% (6.32 V) at
t=10 ms and is settled by t=50 ms.
The recipe
Step
Do this
Watch out for
1
Redraw the circuit for t<0. Caps open, inductors short. Solve for vC(0−) / iL(0−).
"Has been closed a long time" is the phrase that licenses this. If the problem doesn't say it, don't assume it.
2
Carry onlyvC or iL across t=0 by continuity.
Don't carry currents through capacitors or voltages across inductors — those jump.
3
Redraw the circuit for t>0 in its new configuration.
Branches that got disconnected are gone entirely; don't leave them in.
4
In the new circuit, solve the DC steady state for vC(∞) / iL(∞).
If the source got disconnected, the final value is 0 — but only if there's no other source.
5
Find RTh at the storage element's terminals in the new circuit; get τ.
Deactivate independent sources first. Use τ=RThC or L/RTh.
6
Write x(t)=x(∞)+[x(0+)−x(∞)]e−t/τ, valid for t≥0.
State the range of validity. The expression is wrong for t<0.
7
Get any other quantity fromx(t) by the element law or Ohm's law.
iC=CdvC/dt, vL=LdiL/dt. Differentiating brings down a factor of −1/τ — keep the minus sign.
8
Check the two endpoints: does your expression give x(0+) at t=0 and x(∞) as t→∞?
Ten seconds, catches most sign and constant errors.
Practice
Three problems, all original, all cross-solved two independent ways before shipping. Work them
before you open the solutions.
Problem 1 — RC discharge after a switch throwRC · ~8 min
A 24 V source in series with R1=4kΩ has been connected to a
C=5μF capacitor for a long time (switch at position A). At t=0 the switch throws to
position B, disconnecting the source and connecting the capacitor across R2=6kΩ.
Before t=0 the switch sits at A, charging C through R1; at t=0 it throws to
B, disconnecting the source and letting C discharge through R2.
(a) Find vC(t) for t≥0. (b) At what time does vC fall to 6 V?
(c) How much energy does R2 dissipate in total?
(a) Initial condition (Era 1). With the switch at A the circuit has settled,
so the capacitor is an open circuit. No current flows, so no voltage drops across R1, and the
full source appears across the capacitor: vC(0−)=24 V. By continuity vC(0+)=24 V.
Final value and τ (Era 3). After the throw, the only elements left in the
loop are C and R2 — no source — so vC(∞)=0, and
τ=R2C=(6×103)(5×10−6)=0.03 s =30 ms. Note R1 plays no part
after t=0; it isn't in the circuit any more.
Route 1 — general formula.vC(t)=0+(24−0)e−t/0.03=24e−33.33tV
Route 2 — k1/k2/s from the ODE. KVL around the R2C loop for
t>0: vC+R2i=0 with i=CdvC/dt taken in the passive direction, giving
R2CdtdvC+vC=0, i.e. 0.03v˙+v=0. Substituting
v=k1+k2est: the constant group gives k1=0 (there is no forcing term), the
exponential group gives 0.03s+1=0⇒s=−33.33s−1, and
v(0)=24⇒k2=24. So vC(t)=24e−33.33t V. Both routes agree. ✓
(b)6=24e−t/0.03⇒e−t/0.03=0.25⇒t=0.03ln4=0.03(1.386)=41.6 ms. Cross-check: 6 V is a quarter of 24 V, i.e. two
halvings, so t=2t1/2=2(0.03)(0.693)=41.6 ms. ✓
(c) Energy conservation: with no source connected, everything stored in the
capacitor ends up in R2:
E=21CvC(0)2=21(5×10−6)(24)2=1.44mJ
Cross-check by integrating the power:
∫0∞R2vC2dt=6000576∫0∞e−2t/0.03dt=0.096(20.03)=1.44mJ ✓
Problem 2 — RL decay and the voltage spikeRL · ~10 min
A 12 V source in series with R1=2Ω feeds node A. From node A, an inductor
L=0.4 H runs to ground, and in parallel with it a resistor R2=6Ω also runs from
node A to ground. The switch has been closed for a long time. At t=0 the switch opens,
removing the source and R1 entirely.
Before t=0: L is a short, so iL(0−)=12/2=6 A and node A sits at 0 V.
After the switch opens, iL can only circulate through R2, so τ=L/R2 and iL→0.
(a) Find iL(0+). (b) Find iL(t) for t≥0, with iL defined positive flowing
from node A down through L. (c) Find the node-A voltage vA(0+) and comment on it.
(d) How much energy was stored in L at t=0?
(a) Era 1. Long-settled DC: the inductor is a short circuit, so node A is
tied to ground, vA(0−)=0. With 0 V across R2, no current goes that way, so the
source current all goes through L:
iL(0−)=R112=212=6A
By continuity, iL(0+)=6 A.
(b) Route 1 — general formula. After the switch opens, L and R2 form a
closed loop with no source, so iL(∞)=0, and
τ=L/R2=0.4/6=0.0667 s, i.e. 1/τ=15s−1:
iL(t)=0+(6−0)e−15t=6e−15tA
Route 2 — k1/k2/s from the ODE. KVL around the L–R2 loop:
Ldtdi+R2i=0, i.e. 0.4i˙+6i=0. Substituting i=k1+k2est:
the constant group gives 6k1=0⇒k1=0; the exponential group gives
0.4s+6=0⇒s=−15s−1; and i(0)=6⇒k2=6. So
iL(t)=6e−15t A. Both routes agree. ✓
(c) At t=0+ the inductor still forces 6 A downward out of node A. That
current can only be resupplied through R2, flowing up from ground into node A. KCL
at node A: iL+vA/R2=0, so
vA(0+)=−iL(0+)R2=−(6)(6)=−36V
Cross-check via the element law: vL=LdiL/dt=0.4(6)(−15)e−15t=−36e−15t V,
which at t=0 is −36 V — and vLisvA here since the inductor's bottom end is
grounded. ✓
Comment: node A jumped from 0 V to −36 V instantaneously, a swing three times the source
voltage. Inductor current is continuous; nothing forbids the voltage from jumping, and
with a larger R2 the spike would be larger still. This is the mechanism behind ignition
coils and behind why switching an inductive load without a flyback diode destroys transistors.
(d)E=21LiL(0)2=21(0.4)(6)2=7.2 J. Cross-check by
integrating the power in R2:
∫0∞i2R2dt=36(6)∫0∞e−30tdt=216/30=7.2 J. ✓
(a) 6 A · (b) iL(t)=6e−15t A, t≥0
· (c) vA(0+)=−36 V (a legal jump) · (d) 7.2 J
Problem 3 — charging with a divider (τ is not what it looks like)RC · ~10 min
A 20 V source in series with R1=5kΩ feeds node A. A resistor
R2=20kΩ runs from node A to ground, and a capacitor C=2μF also runs
from node A to ground. The capacitor is initially uncharged; the switch closes at t=0.
R1 and R2 form a divider once C is open (Era 3); before that, τ needs
R1∥R2 — the point of this problem.
(a) Find vC(t) for t≥0. (b) Find the capacitor current iC(t).
(c) How long until vC reaches 90% of its final value?
(a) Route 1 — the three ingredients.
x(0+): uncharged, so vC(0+)=vC(0−)=0.
x(∞): capacitor open, so R1 and R2 form a plain voltage divider:
vC(∞)=20⋅R1+R2R2=20⋅2520=16V
τ: deactivate the 20 V source (short it). Looking back from the capacitor's terminals,
R1 and R2 are now in parallel:
RTh=5+20(5)(20)=4kΩ,τ=RThC=(4×103)(2×10−6)=8ms,1/τ=125s−1This is the trap: neither 5kΩ alone nor 20kΩ alone is
the right resistance.
vC(t)=16+(0−16)e−125t=16(1−e−125t)V
Route 2 — k1/k2/s straight from KCL. At node A (with v≡vC):
5000v−20+20000v+2×10−6dtdv=0
Multiply through by 20000: 4(v−20)+v+0.04v˙=0, i.e.
0.04v˙+5v=80. Substitute v=k1+k2est:
(b)iC=CdtdvC=(2×10−6)(16)(125)e−125t=4×10−3e−125t A =4e−125t mA.
Cross-check at t=0+ independently: an uncharged capacitor is a momentary short, so node A
is pinned to 0 V. Then R2 carries no current, and everything the source pushes through
R1 goes into the capacitor: iC(0+)=20/5000=4 mA. ✓ And at t→∞ the formula
gives 0, as it must for a fully charged capacitor. ✓
(c)0.9=1−e−t/τ⇒e−t/τ=0.1⇒t=τln10=8ms×2.303=18.4 ms. (Compare: fully settled at
5τ=40 ms.)
(a) vC(t)=16(1−e−125t) V ·
(b) iC(t)=4e−125t mA · (c) t=18.4 ms
Error checklist before you hand in
① Is the exponent negative? A positive s means you dropped a sign — first-order passive
circuits never grow. ② Did you use RTh at the element's terminals, not just the nearest
resistor? ③ Did you use the post-switch circuit for τ and x(∞), and the
pre-switch circuit only for x(0−)? ④ Does t=0 in your expression reproduce x(0+)?
⑤ Did you state "for t≥0"? ⑥ If you differentiated to get iC or vL, did the factor
−1/τ come along?
↑↓navigate↵openescclose
Keyboard shortcuts
Ctrl KJump to search
Ctrl JAsk about this chapter
EscClose the open panel
Ask about this chapter
Answers may be wrong · verify against the chapter.