Sub topic 8
Why capacitor voltage cannot jump
This chapter assumes you know Ohm's law, Kirchhoff's laws, the relation i = C dv/dt, and the energy formula E = ½CV². It also assumes you can read a derivative as a rate of change.
The rule
A capacitor's voltage is continuous in time. If a circuit changes at time t = 0 (a switch closes, a source steps), the voltage just after the change equals the voltage just before it:
vC(0⁺) = vC(0⁻)
Here 0⁻ means "an instant before the change" and 0⁺ means "an instant after." Capacitor current is not bound by this rule. It can jump, and often does.
Two ways to see why
From the current relation. The relation i = C dv/dt says the current is proportional to the slope of the voltage. If the voltage jumped by a finite amount in zero time, the slope would be infinite. The current would then have to be infinite too. A real source and a real wire cannot deliver infinite current, so the voltage must change smoothly.
From energy. The stored energy is E = ½Cv². Changing the voltage instantly would change the energy instantly. Power is energy per unit time, so an instant change needs infinite power. No physical source can supply that.
The same argument shows why current can jump: current does not set the stored energy. A step in current only changes the slope of the voltage, and the voltage stays continuous.
Using the rule
Continuity gives you the initial condition for any circuit with a capacitor. Follow these steps:
- Find v_C just before the change. Use the DC steady-state circuit from before the switch moves (the capacitor acts as an open circuit there).
- Set v_C(0⁺) to that same value.
- Replace the capacitor with a voltage source of value v_C(0⁺) in the circuit as it is after the change.
- Solve the resulting resistor circuit for the other currents and voltages at 0⁺.
A capacitor that starts at 0 V behaves like a short circuit at 0⁺. A capacitor that starts at V₀ behaves like a source of V₀.
Worked example
A 5 V source, a 10 kΩ resistor, and a 100 µF capacitor are in series. The capacitor is uncharged, and a switch connects the source at t = 0.
- Before the switch: v_C(0⁻) = 0 V.
- By continuity: v_C(0⁺) = 0 V.
- The capacitor acts as a short at 0⁺, so the resistor carries all 5 V.
- The current jumps from 0 to i(0⁺) = 5 V / 10 kΩ = 0.5 mA.
The code below checks the continuity of voltage against the jump in current, using the charging formula vC(t) = Vs(1 − e^(−t/RC)) and i = (Vs − vC)/R.
import math
Vs = 5.0
R = 10e3
C = 100e-6
tau = R * C
def vc(t):
return Vs * (1 - math.exp(-t / tau)) if t >= 0 else 0.0
def i(t):
return (Vs - vc(t)) / R if t >= 0 else 0.0
eps = 1e-9
print(f"vC before: {vc(-eps):.6f} V, after: {vc(eps):.6f} V")
print(f"i before: {i(-eps) * 1e3:.4f} mA, after: {i(eps) * 1e3:.4f} mA")The voltage is the same on both sides of t = 0, while the current goes from 0 mA to about 0.5 mA.
Common errors
- Assuming the capacitor starts at 0 V. The initial voltage is whatever it was before the switch, not necessarily zero.
- Assuming the capacitor current is continuous too. Only the voltage is. The current can step instantly.
- Treating a capacitor as always open. The open-circuit model applies only after the circuit has settled to DC steady state. At 0⁺ an uncharged capacitor acts like a short.
- Applying continuity to ideal sources with no resistance. If an ideal voltage source is connected directly across an uncharged capacitor, the model breaks down, because the current would be infinite. Real circuits always have some resistance, which limits the current.
Exercise
A 20 µF capacitor is charged to 12 V in DC steady state through a 4 kΩ resistor from a 12 V source. At t = 0 the source is replaced by a short circuit, so the capacitor discharges through the resistor. What are v_C(0⁺) and the resistor current at 0⁺?
Show answer
By continuity, vC(0⁺) = vC(0⁻) = 12 V. The capacitor acts as a 12 V source across the 4 kΩ resistor, so the current is 12 V / 4 kΩ = 3 mA, flowing in the direction opposite to the charging current. The current changed from 0 to 3 mA, but the voltage did not move.