Sub topic 8
Why Capacitor Voltage Cannot Jump
This chapter assumes you know i = C dv/dt, Ohm's law, Kirchhoff's laws, and E = ½CV². It explains why a capacitor's voltage cannot change instantly, how to use that fact to find circuit values at the instant after a switch changes, and where the rule breaks down in idealized circuits.
The rule
A capacitor's voltage is continuous in time. If a switch operates at t = 0, the voltage just after the switch (written 0⁺) equals the voltage just before it (0⁻):
vC(0⁺) = vC(0⁻)
Nothing else in a typical circuit has this property. A capacitor's current can jump. So can a resistor's voltage and current. The capacitor voltage is the quantity that carries the circuit's "memory" across a switching event.
Reason 1: the current-voltage relation
Start from i = C dv/dt. Suppose the voltage jumped by ΔV in a time Δt:
i ≈ C · ΔV / Δt
As Δt shrinks toward zero, the required current grows without limit. A real source and a real wire cannot supply infinite current. So in any circuit with finite currents, the voltage change over any short interval is small, and the voltage curve has no vertical steps.
The program below shows how quickly the required current grows. It uses a 100 µF capacitor and a 5 V step.
C = 100e-6 # capacitance in farads (100 uF)
dv = 5.0 # voltage step in volts
for dt in (1e-3, 1e-6, 1e-9):
i = C * dv / dt # average current needed, in amperes
print(f"step over {dt:.0e} s -> average current {i:,.1f} A")The output is 0.5 A, 500 A, and 500,000 A. A 5 V step in one nanosecond would need half a million amperes.
Reason 2: energy and power
The energy argument gives the same answer. The stored energy is E = ½CV². If V changed instantly, E would change instantly. The power is the rate of energy change, p = dE/dt, so a jump in energy requires infinite power. No finite source can deliver that.
Both arguments say the same thing: a finite current and finite power force the capacitor voltage to change gradually.
What can jump and what cannot
| Quantity | Can it jump at a switching instant? | Reason |
|---|---|---|
| Capacitor voltage | No | Would need infinite current and power |
| Capacitor charge (Q = CV) | No | Follows from the voltage |
| Capacitor current | Yes | i = C dv/dt depends on the slope, which can change suddenly |
| Resistor voltage and current | Yes | v = iR follows whatever the rest of the circuit does |
| Source voltage (ideal) | Yes | It is imposed from outside |
Capacitor current is the key point. The voltage curve can have a sudden change of slope, called a kink. A kink in v is a jump in dv/dt, and so a jump in i.
Using the rule: the 0⁻ and 0⁺ method
To find circuit values just after a switch operates, treat the capacitor as a voltage source whose value is held over from before the switch. The procedure is:
- Find v_C(0⁻). Often the circuit has been in DC steady state for a long time, so the capacitor is an open circuit and you find its voltage with resistors alone.
- Set vC(0⁺) = vC(0⁻).
- Replace the capacitor with an ideal voltage source of that value.
- Solve the resulting resistive circuit for every other current and voltage at 0⁺.
Worked example
A 100 µF capacitor sits charged to 6 V, with nothing connected to it. At t = 0 a switch connects it through a 2 kΩ resistor to a 12 V source.
- Before the switch: no current flows, so i(0⁻) = 0.
- After the switch: v_C(0⁺) = 6 V, held over from before.
- The resistor now has the difference across it: v_R(0⁺) = 12 − 6 = 6 V.
- The current is i(0⁺) = 6 V / 2 kΩ = 3 mA.
The current jumped from 0 to 3 mA, and the resistor voltage jumped from 0 to 6 V, but the capacitor voltage did not move. The code below repeats the calculation.
Vs = 12.0 # source voltage in volts
R = 2e3 # series resistance in ohms
v0 = 6.0 # capacitor voltage before the switch, in volts
i_before = 0.0 # no source connected, so no current
v_cap_after = v0 # continuity: the capacitor voltage does not jump
v_res_after = Vs - v_cap_after
i_after = v_res_after / R
print(f"i(0-) = {i_before * 1e3:.1f} mA")
print(f"vC(0+) = {v_cap_after:.1f} V")
print(f"vR(0+) = {v_res_after:.1f} V")
print(f"i(0+) = {i_after * 1e3:.1f} mA")The output shows 0.0 mA before and 3.0 mA after, with the capacitor held at 6 V.
A common special case is a capacitor that starts uncharged. Then v_C(0⁺) = 0 V and the capacitor acts like a short circuit at that instant, so the full source voltage appears across the resistor. This is why a switched-on supply with large uncharged capacitors produces an inrush current.
Charge is what is conserved
Voltage continuity is a statement about charge. The charge on a capacitor's plates cannot appear or vanish instantly because charge moves only as current. That makes charge the more fundamental quantity when more than one capacitor is involved.
Take a node where only capacitors meet, with no resistive path in or out. The total charge stored on the capacitor plates connected to that node cannot change when a switch operates. This is the rule to use in problems where the voltage continuity rule seems to fail.
The edge case: idealized loops of capacitors
The continuity argument assumed finite current. That assumption fails if a circuit forces an ideal voltage change with no resistance at all. The standard example is two ideal capacitors with different voltages connected directly to each other by an ideal switch and ideal wire.
Say C₁ = 10 µF is charged to 10 V and C₂ = 40 µF is at 0 V. The switch closes at t = 0, connecting the positive plates together and the negative plates together. Voltage continuity cannot hold for both capacitors: each has a different voltage, and now they must share one.
What gives is the current. In an ideal model the current is an impulse, a spike of infinite height and zero duration, carrying a finite amount of charge. Charge is conserved:
- Total charge: Q = C₁V₁ + C₂V₂ = 100 µC
- Final voltage: V = Q / (C₁ + C₂) = 100 µC / 50 µF = 2 V
C1, V1 = 10e-6, 10.0 # first capacitor: farads, volts
C2, V2 = 40e-6, 0.0 # second capacitor: farads, volts
Q = C1 * V1 + C2 * V2 # total charge is conserved
V_final = Q / (C1 + C2) # shared voltage after the switch
E_before = 0.5 * C1 * V1**2 + 0.5 * C2 * V2**2
E_after = 0.5 * (C1 + C2) * V_final**2
print(f"Final voltage: {V_final:.2f} V")
print(f"Energy before: {E_before * 1e3:.3f} mJ")
print(f"Energy after: {E_after * 1e3:.3f} mJ")
print(f"Energy lost: {(E_before - E_after) * 1e3:.3f} mJ")The program prints 2.00 V, 0.500 mJ before, 0.100 mJ after, and 0.400 mJ lost.
The 0.4 mJ cannot stay in the capacitors. In a real circuit it goes into heat in the wire and switch resistance, into a spark at the switch contacts, and into radiated electromagnetic energy. The loss is the same whatever the resistance is. Adding a resistor only spreads the transfer over time. It does not change the final voltage or the lost energy.
Where real components fit
Every real capacitor has equivalent series resistance (ESR) and every real wire has some resistance and inductance. These limit the peak current, so the voltage change takes a short but finite time, often nanoseconds to microseconds. For analysis at the scale of milliseconds, treating the change as instantaneous charge sharing gives the right answer. For high-speed or high-current switching, the finite time matters and the ESR sets the peak current.
Common errors
- Setting the capacitor current to its old value. Only the voltage is held across the switching instant. Recalculate the current from the new circuit.
- Holding the resistor voltage constant. Resistor quantities follow Kirchhoff's laws and can jump.
- Using 0⁻ values for the new circuit's topology. Take only v_C from before the switch. Draw the circuit as it is after the switch.
- Assuming zero volts means no charge history. An uncharged capacitor is a short at 0⁺, not an open circuit.
- Ignoring polarity in charge sharing. If the capacitors are connected with opposite polarity, subtract the charges instead of adding them.
Exercises
Exercise
A 47 µF capacitor is charged to 2 V. At t = 0 it is connected through a 4 kΩ resistor to a 10 V source. Find the current at t = 0⁺.
Show answer
The capacitor voltage cannot jump, so v_C(0⁺) = 2 V. The resistor voltage is 10 − 2 = 8 V, so i(0⁺) = 8 V / 4 kΩ = 2 mA. The capacitance value does not affect the answer at this instant.
Exercise
A 20 µF capacitor at 12 V is connected, plus to plus, to a 30 µF capacitor at 2 V through an ideal switch. Find the final voltage and the energy lost.
Show answer
Total charge is 20 µF × 12 V + 30 µF × 2 V = 240 µC + 60 µC = 300 µC. The final voltage is 300 µC / 50 µF = 6 V. Energy before is ½(20 µF)(12 V)² + ½(30 µF)(2 V)² = 1.44 mJ + 0.06 mJ = 1.50 mJ. Energy after is ½(50 µF)(6 V)² = 0.90 mJ. The energy lost is 0.60 mJ, dissipated as heat and radiation regardless of the resistance in the path.
Exercise
Why is the current through a capacitor allowed to jump while its voltage is not?
Show answer
The current is proportional to the slope dv/dt, not to v itself. A voltage curve with no jumps can still change slope suddenly, which makes the current jump. A jump in the voltage itself would make dv/dt infinite and require infinite current and power.