C2 · Lesson 18 · Switches and initial conditions
What a circuit looks like the instant a switch moves
When a switch flips, most voltages and currents in a circuit jump. Two never do: the voltage on a capacitor and the current in an inductor. Those two facts let you redraw the circuit at the instant after the switch, find every other voltage and current, and then do the same for the far future. With the start and the end in hand, the transient in between (lessons 7 and 8) is almost automatic.
Play
- A switch (the step source) connects 10 V to two branches at once: a resistor and capacitor, and a resistor and inductor.
- Right after the step, which branch carries current? Which part has the full 10 V across it?
- Long afterward, which branch carries current, and where is the 10 V?
Predict
An uncharged capacitor sits in series with a 1 kΩ resistor. A 10 V source is switched across them. What current flows at the first instant?
10 mA. The capacitor's voltage can't jump, so just after the switch it's still 0 V: it behaves like a short circuit, and all 10 V lands on the resistor. The capacitance decides how long the current takes to die away, but the starting value only depends on the resistor. An inductor does the opposite: at the first instant it carries no current, so it behaves like an open circuit, with the full voltage across it.
Name it
Initial and final conditions
What can't jump, and why: a capacitor's voltage (a jump would need infinite current, ) and an inductor's current (a jump would need infinite voltage, ). Equivalently, neither one's stored energy can change instantly.
Just after the switch (), redraw the circuit:
- each capacitor becomes a voltage source equal to its voltage just before (); an uncharged one is a short circuit;
- each inductor becomes a current source equal to its current just before; one carrying no current is an open circuit.
Then solve that resistive circuit for everything else: resistor currents, inductor voltages, capacitor currents.
Long after (, with DC sources): capacitors are open circuits and inductors are short circuits. Solve again.
Initial rates of change follow from the circuit:
These are what you need to start a second-order solution (lesson 15), which has two constants to fix.
Before the switch matters too. If a capacitor was charged to 5 V before the switch, it starts at 5 V, not 0. Work out the state from the circuit as it was, which is usually a DC steady state.
Worked example
A switch connects 12 V through 1 kΩ to an empty 10 µF capacitor with 2 kΩ across it. Find the current just after closing, the final voltage and τ.
Show the solution
- Current just after closing. At the empty capacitor is a short, so
- Final voltage. Long after, the capacitor is open, so
- Time constant. The capacitor sees kΩ, so
Answer 12 mA flows just after closing, the capacitor ends at 8 V, and τ = 6.67 ms.
Worked example
An inductor carrying 50 mA has its supply switch opened, leaving only a 1 kΩ resistor across it. What voltage appears at the first instant?
Show the solution
- The current can't jump. The inductor's 50 mA is forced through the 1 kΩ.
- Voltage at the first instant.
- After that. It decays with τ = L/(1 kΩ).
Answer 50 V appears at the first instant, then decays with τ = L/(1 kΩ).
Worked example
A 10 µF capacitor starts at 3 V and is switched to 12 V through 2 kΩ. How long until it reaches 10 V?
Show the solution
- Time constant. It heads from 3 V toward 12 V with
- Write the curve.
- Set v = 10 V. That gives , so
- The recipe. It's always the same: initial value, final value, time constant.
- What the head start saves. Starting from 3 V rather than empty saves the first ln(12/9) = 0.29τ of the charge.
Answer it reaches 10 V after 30 ms.
Check
An uncharged capacitor is in parallel with 4 kΩ. That pair is switched onto a 10 V source through 1 kΩ. What current does the source deliver at the first instant?
Write units the way you normally would: 1.5 mA, 1500 µA and 0.0015 A are the same answer.
Check
Same circuit, 10 V, 1 kΩ and 4 kΩ. What voltage does the capacitor reach in the end?
Write units the way you normally would: 1.5 V, 1500 mV and 0.0015 kV are the same answer.
Check
A 10 mH inductor in series with 10 Ω, carrying no current, is switched onto 9 V. What is the inductor's voltage at the first instant?
Write units the way you normally would: 1.5 V, 1500 mV and 0.0015 kV are the same answer.
Check
A 10 µF capacitor charged to 5 V starts discharging through 1 kΩ. How fast is its voltage changing at the first instant, in V/ms?
Write units the way you normally would: 1.5 V/ms, 1500 mV/ms and 0.0015 kV/ms are the same answer.
Check
Match each part, just after a switch moves, to what it acts like.
- Aan open circuit
- Ba short circuit
- Ca 5 V voltage source
- Da 2 mA current source
Check
A 47 µF capacitor at 2 V is switched to 12 V through 2 kΩ.
(a)
What current flows just after switching?
Write units the way you normally would: 1.5 mA, 1500 µA and 0.0015 A are the same answer.
(b)
How long until it reaches 9 V?
Check
A capacitor starting at a is driven toward b through R.
Step 1
What's its voltage at t?
Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.
Step 2
What current flows?
Explain why
Why can't a capacitor's voltage change instantly when a switch flips?
A capacitor's voltage is proportional to the charge on its plates, , and changing that charge takes current flowing for some time. An instant jump in voltage would need a finite charge moved in zero time, which means an infinite current. Every real circuit has some resistance limiting the current, so the voltage changes continuously. The same reasoning applied to energy says can't change instantly.
Practice
Keep practicing
8 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.