Young & Freedman · Chapter 26.4

RC Circuits

Capacitors, resistors, time constants, and exponential dynamics — built from the ground up.

Contents

1. The big intuition — water tank analogy 2. Building the circuit — KVL setup 3. Charging: deriving Q(t) step by step 4. The time constant τ = RC 5. Discharging: deriving Q(t) step by step 6. Energy stored and dissipated 7. Interactive simulator 8. Summary table

1. The big intuition

Before any equations, here is the physical picture. A capacitor stores charge on two parallel plates separated by a gap — it's like a rechargeable tank of charge. A resistor limits how fast charge can flow in or out — it's like a narrow pipe.

The water-tank analogy

Electrical quantity
Charge $Q$
Water analogy
Volume of water
Voltage $V = Q/C$
Water pressure (height)
Capacitance $C$
Tank cross-section area
Resistor $R$
Narrow pipe or nozzle
Current $I = dQ/dt$
Flow rate of water

When you open a valve (close the switch), water flows fast at first — the pressure is high. But as the tank fills, pressure drops and flow slows. Eventually flow stops entirely. That exponential slowdown is the RC circuit's signature behavior.

The crucial insight: the driving force decreases as the capacitor fills. This self-limiting nature is exactly why the math produces an exponential, not a linear, curve.

2. Building the circuit — KVL setup

An RC circuit in its simplest charging form has a battery (EMF $\mathcal{E}$), a resistor $R$, a capacitor $C$, and a switch, all in series.

Once the switch is closed, we apply Kirchhoff's Voltage Law (KVL): the sum of all voltage drops around the loop equals zero.

KVL around the loop

Going around the loop, we encounter three voltage contributions:

battery
$+\mathcal{E}$ — the battery adds voltage (it's the source)
resistor
$-IR$ — current through a resistor creates a voltage drop (Ohm's Law)
capacitor
$-\dfrac{Q}{C}$ — charge on the capacitor creates a back-voltage opposing the battery
$$\mathcal{E} - IR - \frac{Q}{C} = 0$$

This is the master equation. Everything follows from it.

Now we make one substitution to turn this into a differential equation. The current $I$ is simply the rate at which charge accumulates on the capacitor:

$$I = \frac{dQ}{dt}$$

Substituting into KVL:

$$\mathcal{E} - \frac{dQ}{dt} \cdot R - \frac{Q}{C} = 0$$

Rearranging to isolate the derivative:

$$\frac{dQ}{dt} = \frac{\mathcal{E}}{R} - \frac{Q}{RC}$$

This is a first-order linear ODE. Notice: the rate of change of charge depends on how much charge is already there. That coupling between $Q$ and $dQ/dt$ is the reason the solution is exponential.

3. Charging — solving the ODE step by step

charging: switch closes at t = 0, capacitor starts empty

Initial condition: at $t = 0$, the capacitor is uncharged, so $Q(0) = 0$.

We need to solve:

$$\frac{dQ}{dt} = \frac{\mathcal{E}}{R} - \frac{Q}{RC}$$

Step-by-step solution

step 1
Define $u = \mathcal{E}C - Q$ (the "distance from full charge"). Then $\dfrac{du}{dt} = -\dfrac{dQ}{dt}$.
step 2
Substitute: $-\dfrac{du}{dt} = \dfrac{\mathcal{E}}{R} - \dfrac{Q}{RC} = \dfrac{\mathcal{E}C - Q}{RC} = \dfrac{u}{RC}$
step 3
So $\dfrac{du}{dt} = -\dfrac{u}{RC}$ — this says "u decays at a rate proportional to itself."
step 4
Separate variables: $\dfrac{du}{u} = -\dfrac{dt}{RC}$
step 5
Integrate both sides: $\displaystyle\int \frac{du}{u} = \int -\frac{dt}{RC}$
step 6
$\ln|u| = -\dfrac{t}{RC} + \text{const}$, so $u = A\,e^{-t/RC}$ for some constant $A$.
step 7
At $t=0$: $u_0 = \mathcal{E}C - Q(0) = \mathcal{E}C - 0 = \mathcal{E}C$, so $A = \mathcal{E}C$.
step 8
Substitute back: $\mathcal{E}C - Q = \mathcal{E}C\,e^{-t/RC}$, therefore:
$$\boxed{Q(t) = C\mathcal{E}\!\left(1 - e^{-t/RC}\right)}$$

From $Q(t)$, we can immediately get the current by differentiating:

$$I(t) = \frac{dQ}{dt} = \frac{d}{dt}\!\left[C\mathcal{E}\!\left(1 - e^{-t/RC}\right)\right] = C\mathcal{E} \cdot \frac{1}{RC} \cdot e^{-t/RC}$$
$$\boxed{I(t) = \frac{\mathcal{E}}{R}\,e^{-t/RC} = I_0\,e^{-t/RC}}$$

where $I_0 = \mathcal{E}/R$ is the initial current (the maximum, at $t=0$), limited only by the resistor since the capacitor starts with zero voltage.

And the voltage across the capacitor:

$$V_C(t) = \frac{Q(t)}{C} = \mathcal{E}\!\left(1 - e^{-t/RC}\right)$$

4. The time constant τ = RC

The combination $RC$ appears so often we give it its own symbol:

Definition — time constant
$$\tau = RC$$

$\tau$ has units of seconds (check: $[\Omega][\text{F}] = [\text{V/A}][\text{C/V}] = [\text{C/A}] = [\text{s}]$). It is the characteristic timescale of the circuit.

With $\tau$, the equations become beautifully clean:

$$Q(t) = C\mathcal{E}\!\left(1 - e^{-t/\tau}\right) \qquad I(t) = I_0\,e^{-t/\tau}$$

Physical meaning of τ

At $t = \tau$:

$$Q(\tau) = C\mathcal{E}\!\left(1 - e^{-1}\right) = C\mathcal{E}\!\left(1 - \frac{1}{e}\right) \approx C\mathcal{E}(1 - 0.368) = 0.632\,C\mathcal{E}$$

So after one time constant, the capacitor has charged to 63.2% of its final value.

Time elapsedCharge Q / CℰCurrent I / I₀
$t = 0$$0\%$$100\%$
$t = \tau$$63.2\%$$36.8\%$
$t = 2\tau$$86.5\%$$13.5\%$
$t = 3\tau$$95.0\%$$5.0\%$
$t = 5\tau$$99.3\%$$0.7\%$
$t \to \infty$$100\%$$0\%$

In practice, the circuit is considered "fully charged" after about $5\tau$.

5. Discharging — a fresh ODE

discharging: battery removed at t = 0, capacitor starts fully charged to Q₀

Now we disconnect the battery (or the battery was never present). The capacitor, already holding charge $Q_0 = C\mathcal{E}$, now drives current through the resistor to discharge.

KVL with no battery: There's no EMF source; the only voltage source is the capacitor itself. The voltage it supplies is $Q/C$, and the resistor drops $IR$:

$$\frac{Q}{C} - IR = 0$$

Since charge is leaving the capacitor, $I = -dQ/dt$ (the minus sign: as $Q$ decreases, positive current flows). Substituting:

$$\frac{Q}{C} - \left(-\frac{dQ}{dt}\right)R = 0 \quad \Longrightarrow \quad \frac{Q}{C} + R\frac{dQ}{dt} = 0$$

Step-by-step solution

step 1
Rearrange: $\dfrac{dQ}{dt} = -\dfrac{Q}{RC}$
step 2
Separate: $\dfrac{dQ}{Q} = -\dfrac{dt}{RC}$
step 3
Integrate both sides: $\displaystyle\int_{Q_0}^{Q} \frac{dQ'}{Q'} = \int_0^t -\frac{dt'}{RC}$
step 4
$\ln Q - \ln Q_0 = -\dfrac{t}{RC}$, i.e. $\ln\dfrac{Q}{Q_0} = -\dfrac{t}{RC}$
step 5
Exponentiate both sides: $\dfrac{Q}{Q_0} = e^{-t/RC}$
step 6
$$\boxed{Q(t) = Q_0\,e^{-t/\tau}}$$

The current during discharge (positive, flowing in the conventional direction):

$$I(t) = -\frac{dQ}{dt} = \frac{Q_0}{RC}\,e^{-t/\tau} = \frac{V_0}{R}\,e^{-t/\tau}$$

And the voltage across the capacitor:

$$V_C(t) = \frac{Q(t)}{C} = \frac{Q_0}{C}\,e^{-t/\tau} = V_0\,e^{-t/\tau}$$

where $V_0 = Q_0/C$ is the initial voltage. Notice discharge is a pure exponential decay — the same $\tau = RC$ governs both charging and discharging.

6. Energy stored and dissipated

A charged capacitor stores energy in its electric field. The energy stored when it holds charge $Q$ at voltage $V = Q/C$ is:

$$U_C = \frac{1}{2}CV^2 = \frac{Q^2}{2C} = \frac{1}{2}QV$$

During charging from 0 to $Q_f = C\mathcal{E}$, the battery delivers total energy:

$$W_\text{battery} = Q_f \cdot \mathcal{E} = C\mathcal{E}^2$$

But the energy stored in the capacitor is only:

$$U_C = \frac{1}{2}C\mathcal{E}^2$$

Where does the other half go?

Exactly half the energy the battery delivers is lost to heat in the resistor. You can verify this by integrating the power dissipated in $R$:

$$W_R = \int_0^\infty I^2 R\,dt = \int_0^\infty \frac{\mathcal{E}^2}{R}e^{-2t/\tau}\,dt = \frac{\mathcal{E}^2}{R} \cdot \frac{\tau}{2} = \frac{\mathcal{E}^2}{R}\cdot\frac{RC}{2} = \frac{1}{2}C\mathcal{E}^2$$

This result is independent of R — no matter how large or small the resistor, always exactly half the battery energy is dissipated. (With a smaller $R$, current is larger but the process finishes faster; it balances out.)

7. Interactive simulator

Adjust the sliders to explore how $R$, $C$, and $\mathcal{E}$ affect the charging and discharging curves. The time constant $\tau = RC$ updates live.

10 V
20 Ω
50 mF
τ = 1.00 s

8. Summary table

QuantityChargingDischarging
$Q(t)$$C\mathcal{E}(1 - e^{-t/\tau})$$Q_0\,e^{-t/\tau}$
$V_C(t)$$\mathcal{E}(1 - e^{-t/\tau})$$V_0\,e^{-t/\tau}$
$I(t)$$\dfrac{\mathcal{E}}{R}e^{-t/\tau}$$\dfrac{V_0}{R}e^{-t/\tau}$
At $t = 0$$Q=0$, $I=\mathcal{E}/R$ (max)$Q=Q_0$, $I=V_0/R$ (max)
At $t \to \infty$$Q=C\mathcal{E}$, $I=0$$Q=0$, $I=0$
Time constant$\tau = RC$
ODE sourceKVL around the loop
Math structureFirst-order linear ODE → exponential solution
The one-sentence version

An RC circuit charges (or discharges) exponentially because KVL produces a differential equation of the form $dQ/dt \propto -Q$, whose solution is always $e^{-t/\tau}$ with the time constant $\tau = RC$ setting the speed.