AP Physics C: E&M · Unit 11 lecture · Part 9 of 11 · 10 min

11.8 Resistor-capacitor (RC) circuits: chargingCircuits that change with time

Mr. Thompkins
Everything so far was steady: switch on, and the currents are set. Now add a capacitor and the circuit gets a sense of time. The current starts big and dies away. Camera flashes, heart defibrillators and the blinking light on a smoke alarm all run on this one curve.
?Wait, what's a capacitor again?
Two conductors separated by an insulator. When charge +q sits on one plate and −q on the other, the potential difference between them is $\Delta V_C = \frac{q}{C}$, where the capacitance C (in farads) depends on the geometry. It stores energy $U_C = \frac{q^2}{2C} = \frac{1}{2}C(\Delta V)^2$. You met all of this in Unit 10.

Here's the key physical fact. A capacitor's voltage is $q/C$, and its charge can only change by current flowing onto it, which takes time. So the voltage across a capacitor can't jump. Close the switch on an empty capacitor and, at that instant, it still has zero voltage: it behaves like a plain wire. As charge piles up, its voltage rises, less voltage is left for the resistor, and the current falls. After a long time the capacitor's voltage equals the battery's, the resistor has no voltage, and the current is zero: the capacitor behaves like a break in the wire.

εSRC$+q$$-q$$I = \frac{dq}{dt}$switch closes at t = 0, capacitor empty
A series RC circuit. Walking clockwise after the switch closes: +ε across the battery, −IR across the resistor, −q/C across the capacitor.
Pause and think
Right after the switch closes, what is the current, in terms of ε and R? What is it a long time later?
I thought about it. Show me
Right after, the empty capacitor has zero voltage, so all of ε is across R: $I_0 = \frac{\varepsilon}{R}$. Long after, the capacitor's voltage is ε and nothing is left for R, so the current is zero.

Deriving the charging curve

The AP exam expects you to derive this, so let's do it the way a Mathematical Routines question would want it.

Derive q(t) and I(t)
An empty capacitor C is connected at t = 0 in series with a resistor R and an ideal battery ε. Starting from the loop rule, derive the charge q(t) on the capacitor and the current I(t).
  1. Loop rule, clockwise: $\varepsilon - IR - \frac{q}{C} = 0$.
    Why?
    Each term is a potential change you'd write walking around the loop. Label them on the page.
  2. Current is the rate the capacitor's charge grows: $I = \frac{dq}{dt}$. So $R\frac{dq}{dt} = \varepsilon - \frac{q}{C} = \frac{C\varepsilon - q}{C}$.
  3. Separate the variables: $\frac{dq}{C\varepsilon - q} = \frac{dt}{RC}$.
    Why?
    Get every q on one side and every t on the other. This is the step graders look for.
  4. Integrate with limits that match the start, q = 0 at t = 0: $\int_0^q \frac{dq'}{C\varepsilon - q'} = \int_0^t \frac{dt'}{RC}$, so $-\ln\frac{C\varepsilon - q}{C\varepsilon} = \frac{t}{RC}$.
  5. Solve for q: $q(t) = C\varepsilon\left(1 - e^{-t/RC}\right)$. Differentiate for the current: $I(t) = \frac{dq}{dt} = \frac{\varepsilon}{R}e^{-t/RC}$.
  6. Check the limits: $I(0) = \frac{\varepsilon}{R}$ (capacitor as a wire) and $q(\infty) = C\varepsilon$ with $I(\infty) = 0$ (capacitor as a break). Both match the physical picture.
    Why?
    Saying that you checked the limits, and that they agree with the wire and break pictures, is often a point by itself.

Answer: $q(t) = C\varepsilon\left(1 - e^{-t/RC}\right)$ and $I(t) = \frac{\varepsilon}{R}e^{-t/RC}$. The capacitor's voltage is $V_C = \varepsilon\left(1 - e^{-t/RC}\right)$ and the resistor's is $V_R = \varepsilon e^{-t/RC}$.

Stuck? Get a hint
  1. Write the loop rule with three terms: battery, resistor, capacitor.
  2. Replace I with dq/dt and put the q terms over a common denominator.
  3. Separate: dq/(Cε − q) on one side, dt/RC on the other. The left side integrates to −ln(Cε − q).
?Wait, how does $\int \frac{dq}{C\varepsilon - q}$ work?
Let $u = C\varepsilon - q$, so $du = -dq$. Then $\int \frac{dq}{C\varepsilon - q} = -\int\frac{du}{u} = -\ln u$. With the limits 0 and q, that's $-\ln(C\varepsilon - q) + \ln(C\varepsilon) = -\ln\frac{C\varepsilon - q}{C\varepsilon}$.

The product $\tau = RC$ is the time constant. It really is a time: ohms times farads is $\frac{\text{V}}{\text{A}}\cdot\frac{\text{C}}{\text{V}} = \frac{\text{C}}{\text{C/s}}$ = seconds. After one τ, the charge has reached $1 - e^{-1} = 63\%$ of its final value and the current has fallen to $e^{-1} = 37\%$ of its start. After 5τ, both are within 1% of their limits, which is what "a long time" means in practice. Big R or big C makes a slow circuit.

036912150246810t (s)voltsε = 9.0 V$V_C$$V_R = IR$63%: 5.7 V37%: 3.3 V
Charging with ε = 9.0 V, R = 20 kΩ, C = 150 μF, so RC = 3.0 s. The capacitor voltage rises toward 9.0 V while the resistor voltage IR falls; at every instant they add to 9.0 V.

Let's put numbers on that graph. With ε = 9.0 V, R = 20 kΩ and C = 150 μF: $\tau = (20 \times 10^3)(150 \times 10^{-6}) = 3.0$ s, the final charge is $C\varepsilon = 1.35$ mC, and the starting current is $\frac{\varepsilon}{R} = 0.45$ mA. At t = 6.0 s, two time constants: $q = 1.35(1 - e^{-2}) = 1.17$ mC, $I = 0.45e^{-2} = 0.061$ mA, and $V_C = 7.8$ V. To reach 90% of full charge, solve $1 - e^{-t/RC} = 0.90$: $t = RC\ln 10 = 6.9$ s.

And the energy? The battery moves a total charge $C\varepsilon$ through emf ε, so it does work $C\varepsilon^2 = 12.2$ mJ. The capacitor ends up storing $\frac{1}{2}C\varepsilon^2 = 6.1$ mJ. The other half became heat in the resistor. That split is exactly half and half whatever R is: a big R just takes longer to waste the same energy.

Check yourself
A capacitor charges through a resistor with RC = 4.0 s. About how long until it reaches 95% of its final charge?
  1. A4.0 s
  2. B12 s
  3. C20 s
  4. D8.0 s
Show the answer

B. $1 - e^{-t/RC} = 0.95$ gives $t = RC\ln 20 = 3.0RC = 12$ s. ($e^{-3} = 0.050$.) The trap is 4.0 s: after one time constant it is only at 63%.

  • Charging: $q = C\varepsilon(1 - e^{-t/RC})$, $I = \frac{\varepsilon}{R}e^{-t/RC}$, $\tau = RC$.
  • A capacitor's voltage cannot jump. Empty, just after a switch: a wire. Long after: a break.
  • After τ: 63% charged, current at 37%. After 5τ: within 1%.
  • Charging through R, half the battery's work is stored and half becomes heat.