Sub topic 5
Current through a capacitor: i = C dv/dt
This chapter assumes you know Ohm's law, Kirchhoff's laws, the idea of a derivative as a rate of change, and the relation Q = CV from the previous chapter.
From charge to current
A capacitor stores charge Q on its plates, and the charge is tied to the voltage by Q = CV. Current is the rate at which charge moves, i = dQ/dt. Differentiate Q = CV with C held constant:
i(t) = dQ/dt = C · dv/dt
The current through an ideal capacitor is proportional to how fast its voltage changes. The voltage value itself does not matter. A capacitor at 100 V with a steady voltage carries no current. A capacitor at 0 V whose voltage is rising quickly carries a large current.
This uses the passive sign convention. The current arrow points into the terminal marked positive for v. If you reverse the arrow, you must add a minus sign.
Reading the formula
- If v is constant, dv/dt = 0 and i = 0.
- If v rises, dv/dt > 0 and current flows into the positive plate, which charges the capacitor.
- If v falls, dv/dt < 0 and the current is negative, which means the capacitor discharges.
- A larger C gives more current for the same rate of voltage change.
Worked example: a ramp
A 10 µF capacitor has a voltage that rises linearly from 0 V to 5 V in 2 ms. The slope is
dv/dt = 5 V / 0.002 s = 2500 V/s
The current is
i = (10 × 10⁻⁶ F)(2500 V/s) = 25 mA
The current is constant during the ramp, because the slope is constant. Once the voltage stops changing, the current drops to zero.
The code below computes the current from sampled voltage values using a finite difference. This is the numerical form of dv/dt.
C = 10e-6 # farads
dt = 0.5e-3 # time step in seconds
v = [0.0, 1.25, 2.5, 3.75, 5.0, 5.0, 5.0] # volts at each step
for k in range(1, len(v)):
dvdt = (v[k] - v[k - 1]) / dt
i = C * dvdt
print(f"step {k}: i = {i * 1000:.1f} mA")The first four steps print 25.0 mA. The last two print 0.0 mA, because the voltage has stopped changing.
A sinusoidal voltage
If v(t) = Vm sin(ωt), then
i(t) = C · Vm · ω · cos(ωt)
The current peak is ωC·Vm, and the cosine leads the sine by 90°. The current is largest when the voltage passes through zero, because that is where the voltage changes fastest. The current is zero at the voltage peaks, where the voltage is momentarily flat. Doubling the frequency doubles the peak current. A later chapter turns this into capacitive reactance.
Common errors
- Using i = CV. This mixes up charge and current. The correct pair is Q = CV and i = C dv/dt.
- Expecting current when voltage is high. Only the change in voltage matters.
- Ignoring the sign convention. If the current arrow points out of the positive terminal, use i = −C dv/dt.
- Treating a voltage step as ordinary. An instant jump in voltage would need dv/dt to be infinite, which requires infinite current. The next chapters use this to show that capacitor voltage cannot jump.
Exercise
A 220 µF capacitor has a voltage that falls linearly from 12 V to 4 V over 40 ms. What is the current, and in which direction relative to the passive sign convention?
Show answer
dv/dt = (4 − 12) V / 0.040 s = −200 V/s. The current is i = (220 × 10⁻⁶)(−200) = −0.044 A, or −44 mA. The negative sign means current flows out of the positive terminal, so the capacitor is discharging.
Exercise
A capacitor has v(t) = 3 sin(1000t) V and C = 2 µF. Find the expression for i(t) and the peak current.
Show answer
i(t) = C · dv/dt = (2 × 10⁻⁶)(3)(1000) cos(1000t) = 6 × 10⁻³ cos(1000t) A. The peak current is 6 mA, and it leads the voltage by 90°.