doPhysics.in
All chapters

Charging a Capacitor: the RC Circuit

15 min read4 ideas6 checks3 figures to playBy Asheshanand Acharya
What you will learn 0 / 4
The time constant
Maths you need
Look around
The flash that needs a moment

Take a photograph with a camera that has its own flash. After the flash fires, a small lamp marked "ready" stays dark for a second or two. Press the button in that time and nothing happens. The flash is a capacitor, and it refills through a resistance. A capacitor cannot be filled in an instant.

you will work out how long a flash takes to be ready, and why its ready light comes on before the capacitor is quite full.

A capacitor in a loop

Until now every circuit was steady: currents that never changed. A capacitor changes that. The chapter Capacitance and Dielectrics showed that its voltage is \(q/C\), so its voltage grows as charge arrives. Charge a capacitor from a battery through a resistor, and the current must change as the capacitor fills. Such a circuit is an RC circuit, and its changing current is a transient.

Everything about the transient is set by one product, \(RC\). An ohm is a volt per ampere and a farad is a coulomb per volt. So an ohm times a farad is a coulomb per ampere, which is a second. The product \(RC\) is a time, the time constant \(\tau\).

RememberTime constant of an RC circuit
\[ \tau = RC \]
Holds whena capacitor \(C\) charging or discharging through a resistance \(R\); for a network, \(R\) is the resistance the capacitor sees from its two terminals.
Symbols\(\tau\) time constant, \(R\) resistance, \(C\) capacitance
Units\(\tau\) in s, \(R\) in Ω, \(C\) in F

A \(500\,\mu\text{F}\) capacitor charged through \(2\,\text{k}\Omega\) has \(\tau = 2 \times 10^3 \times 500 \times 10^{-6}\) \(= 1\,\text{s}\). The flash's \(1000\,\mu\text{F}\) capacitor, charged through about \(300\,\Omega\), has \(\tau = 0.3\,\text{s}\). A large resistance slows the flow of charge, and a large capacitance needs more charge. Both make the transient longer.

Checkpoint · numericUnanswered

A \(2\,\mu\text{F}\) capacitor is charged through a \(1\,\text{M}\Omega\) resistor. What is the time constant, in seconds?

s± 2 %
Charge and current while charging
Maths you need

The loop equation

Close the switch at \(t = 0\) on a battery \(\mathcal E\), a resistor \(R\) and an empty capacitor \(C\). At a later instant the capacitor holds charge \(q\) and the current is \(i\). Walk round the loop with the current. The battery gives \(+\mathcal E\), the resistor \(-iR\), and the capacitor, entered at its positive plate, \(-q/C\). The current is the rate at which charge arrives, \(i = dq/dt\). So \[ \mathcal E - \dfrac{q}{C} - R\dfrac{dq}{dt} = 0 \]

Deriving \(q = C\mathcal E\left(1 - e^{-t/RC}\right)\) step 1 of 5
1

\[ R\dfrac{dq}{dt} = \mathcal E - \dfrac{q}{C} = \dfrac{C\mathcal E - q}{C} \]

Why. the loop equation, rearranged; \(C\mathcal E\) is the charge at which the current would stop.

RememberCharging a capacitor through a resistor
\[ q = C\mathcal E\left(1 - e^{-t/\tau}\right) \]
Holds whenan empty capacitor \(C\) joined at \(t = 0\) to an ideal battery \(\mathcal E\) through a resistance \(R\), with \(\tau = RC\).
Symbols\(q\) charge at time \(t\), \(C\mathcal E\) the final charge, \(\tau\) the time constant
Units\(q\) in C, \(t\) and \(\tau\) in s

The current is the slope of this curve. Differentiating \(e^{-t/\tau}\) brings down a factor \(-1/\tau\), and that minus sign meets the minus in front of the exponential. The two cancel, so the current is positive and falls away: \(i = C\mathcal E/\tau \times e^{-t/\tau}\) \(= (\mathcal E/R)e^{-t/\tau}\). Put \(q\) and \(i\) back in the loop equation: \(\mathcal E - \mathcal E(1 - e^{-t/\tau}) - \mathcal Ee^{-t/\tau}\) \(= 0\). The solution checks.

RememberCurrent while charging
\[ i = \dfrac{\mathcal E}{R}e^{-t/\tau} \]
Holds whenthe charging circuit of the last card; \(i\) is positive in the direction that charges the capacitor.
Symbols\(i\) current at time \(t\), \(\mathcal E/R\) its value just after the switch closes
Units\(i\) in A
Charging and discharging a capacitor through a resistorA 12 volt battery, a switch S_1, a 2 kilohm resistor and a 500 microfarad capacitor in a loop; a second switch S_2 can join the top wire straight to the bottom wire, leaving the battery out. The time constant R C is 1 second. Below, two graphs against time: the charge q on the capacitor in millicoulombs and the current i in milliamperes, positive in the charging direction. First chip, charging: S_1 closes and signs gather on the plates. The current starts at 12 volts over 2 kilohms, 6 milliamperes, and dies away, while q rises towards its final 6 millicoulombs, reaching 63 percent at 1 second, 86 percent at 2 seconds and 95 percent at 3 seconds. The dashed tangent at t = 0 reaches the final charge at exactly one time constant. Second chip, discharging: the full capacitor is joined through the resistor alone by S_2. The charge falls to 37, 14 and 5 percent after 1, 2 and 3 seconds, and the current, now flowing the other way round the loop, starts at minus 6 milliamperes and rises towards zero.12 V S1 2 kΩ S2 500 μF t = 0.00 s q = 0.00 mC (0 %) i = 0.00 mA 12345246Ot (s)q (mC) 4−4Ot (s)i (mA)
Fig 5.1A \(12\,\text{V}\) battery charges \(500\,\mu\text{F}\) through \(2\,\text{k}\Omega\), so \(\tau = 1\,\text{s}\). Press play with the chip on charging. The dashed tangent at \(t = 0\) reaches the final charge at \(t = \tau\); the marks give the charge at \(\tau\), \(2\tau\) and \(3\tau\).

Watch Fig 5.1. At the first instant the capacitor is empty, so the whole \(12\,\text{V}\) is across the resistor and \(i = 12/2000 = 6\,\text{mA}\). As charge gathers, the capacitor's voltage rises and opposes the battery, so less is left to drive the current. The current dies away, and the charge creeps up towards \(C\mathcal E = 500\,\mu\text{F} \times 12\,\text{V} = 6\,\text{mC}\).

ExampleCharge and current after one time constant

The \(500\,\mu\text{F}\) capacitor is charged from \(12\,\text{V}\) through \(2\,\text{k}\Omega\). Find the final charge, and the charge and the current at \(t = 1\,\text{s}\). Take \(1/e = 0.37\).

Reveal one step at a time and finish the rest yourself.

The tangent at \(t = 0\) in Fig 5.1 has slope \(\mathcal E/R\). Kept up, that first rate would fill the capacitor to \(C\mathcal E\) in a time \(C\mathcal E/(\mathcal E/R) = RC\). So \(\tau\) is the time the capacitor would take if the current did not fall. It does fall, so at \(t = \tau\) only \(1 - 1/e = 63\,\%\) is in. After \(2\tau\) it is \(86\,\%\), after \(3\tau\) it is \(95\,\%\).

The capacitor is half full when \(e^{-t/\tau} = 1/2\), at \(t = \tau\ln 2 = 0.69\tau\). It reaches \(99\,\%\) when \(e^{-t/\tau} = 0.01\), at \(t = \tau\ln 100 = 4.6\tau\). In theory it is never quite full. In practice, five time constants are "full" for every purpose.

The two voltages always add to the emf

At every instant the loop rule says \(V_R + V_C = \mathcal E\). The two trade places. With \(10\,\text{V}\) charging a capacitor, the resistor has \(10\,\text{V}\) and the capacitor \(0\) at \(t = 0\). At \(t = \tau\), the capacitor has \(10 \times 0.63 = 6.3\,\text{V}\) and the resistor \(3.7\,\text{V}\). After a long time the capacitor has all \(10\,\text{V}\) and the resistor none.

EstimateUnanswered

The flash's \(1000\,\mu\text{F}\) capacitor refills through about \(300\,\Omega\), and its ready lamp lights at \(90\,\%\) of full charge. Estimate how long after a flash the lamp comes on, in seconds. Take \(\ln 10 = 2.3\).

srough value is enough

That pays the promise of the flash. With \(\tau\) about \(0.3\,\text{s}\), the capacitor is \(90\,\%\) full in about \(0.7\,\text{s}\) and \(99\,\%\) full only after about \(1.4\,\text{s}\). The last few percent come slowly, because the current dies as the capacitor fills. So the maker lights the ready lamp early, and the flash is nearly as bright.

Checkpoint · numericUnanswered

A \(100\,\mu\text{F}\) capacitor is charged from \(10\,\text{V}\) through \(10\,\text{k}\Omega\). At what time does its charge reach \(900\,\mu\text{C}\), in seconds? Take \(\ln 10 = 2.3\).

s± 2 %
CheckpointUnanswered

A capacitor charges from a \(12\,\text{V}\) battery through a resistor. At one instant the resistor has \(5\,\text{V}\) across it. What is the capacitor's voltage then?

At t zero and after a long time

A wire at first, a gap at the end

Many questions ask only about two instants. Just after the switch closes, the capacitor has no charge, so its voltage is zero. A component with zero voltage across it, whatever current it carries, behaves as a plain wire. After a long time the capacitor is full and no more current enters it. A component that carries no current, whatever voltage it holds, behaves as a gap.

A capacitor at t = 0 and after a long timeA 12 volt battery and a switch feed a 2 ohm resistor, followed by a 4 ohm resistor with a 3 microfarad capacitor joined across it. The readouts give the current I_1 from the battery, I_2 through the 4 ohm resistor and I_C into the capacitor, and the capacitor's voltage and charge. Switch open: nothing flows. Just after the switch closes the capacitor is empty, so its voltage is zero and it acts as a plain wire across the 4 ohm resistor: I_1 = 6 amperes, all of it into the capacitor, and none through the 4 ohm. After one time constant, 4 microseconds, the capacitor holds 5.06 volts. A long time after, the capacitor is full at 8 volts with 24 microcoulombs and takes no current, like a gap: 2 amperes flow through the two resistors in series.12 V S 2 Ω 4 Ω 3 μF I1 = 0.00 A, I2 = 0.00 A, IC = 0.00 A VC = 0.00 V, q = 0.0 μC
Fig 5.2A \(12\,\text{V}\) battery and a switch feed \(2\,\Omega\), then \(4\,\Omega\) with \(3\,\mu\text{F}\) across it. The chips show the currents with the switch open, just after it closes, after one time constant and after a long time.

In Fig 5.2, just after the switch closes, the capacitor shorts the \(4\,\Omega\) resistor. The battery sees only \(2\,\Omega\) and drives \(6\,\text{A}\), all of it into the capacitor. After a long time the capacitor branch is cut, and the two resistors are in series: \(12/6 = 2\,\text{A}\). The capacitor sits across the \(4\,\Omega\), so it ends at \(2 \times 4 = 8\,\text{V}\), holding \(3\,\mu\text{F} \times 8\,\text{V} = 24\,\mu\text{C}\).

The first current does not depend on \(C\): at \(t = 0\) the capacitor has no voltage, so it plays no part yet. The final charge does not depend on \(R\) in series with it: when the current has stopped, no resistor has any voltage across it. The resistance and the capacitance together decide only how long the change takes.

Checkpoint · numericUnanswered

A \(9\,\text{V}\) battery, a switch, a \(3\,\Omega\) resistor and a parallel pair made of a \(6\,\Omega\) resistor and an empty capacitor are in series. What current does the battery supply just after the switch closes, in amperes?

A± 2 %
Energy accounting of charging
Maths you need

Half the energy is always lost

The battery moves the whole charge \(C\mathcal E\) through its full emf, so it does work \(W = C\mathcal E \times \mathcal E = C\mathcal E^2\). The capacitor ends with \(\tfrac12 C\mathcal E^2\), from the chapter Capacitance and Dielectrics. The rest, the other half, must have become heat in the resistor. For the \(500\,\mu\text{F}\) capacitor on \(12\,\text{V}\), the battery gives \(72\,\text{mJ}\), the capacitor keeps \(36\,\text{mJ}\) and the resistor takes \(36\,\text{mJ}\).

Deriving \(H = \dfrac12 C\mathcal E^2\) step 1 of 4
1

\[ H = \displaystyle\int_0^\infty i^2R\,dt \]

Why. the heat produced each second in the resistor is \(i^2R\); add it over the whole charging.

A small resistance lets a large current flow for a short time; a large one, a small current for a long time. The integral shows the two effects cancel exactly. The chapter Capacitance and Dielectrics promised this: whatever the resistance, charging from a battery wastes half the battery's work.

Where the battery's energy goes while a capacitor chargesA 12 volt battery charges a 500 microfarad capacitor through a resistor. Three bars grow as time passes: the work done by the battery, E times the charge moved; the energy stored in the capacitor, q squared over 2C; and the heat produced in the resistor, the difference. Early on most of the battery's work becomes heat, because the current is large; later most of it is stored. In the end the battery has done 72 millijoules, the capacitor holds 36 and the resistor has taken 36, exactly half. First chip, R = 2 kilohms and a time constant of 1 second; second chip, R = 4 kilohms and 2 seconds. The larger resistance only makes everything happen more slowly: the three final values are the same.battery's work, E q 0.0 mJ stored in the capacitor, q²/2C 0.0 mJ heat in the resistor 0.0 mJ 36 mJ, half of CE² t = 0.0 s = 0.0τ, R = 2 kΩ
Fig 5.3The battery's work, the stored energy and the heat as a \(500\,\mu\text{F}\) capacitor charges from \(12\,\text{V}\). Play both chips: \(2\,\text{k}\Omega\) and \(4\,\text{k}\Omega\). The ends are the same; only the clock differs.
Checkpoint · select all that applyUnanswered

A capacitor is charged fully from a battery through a resistor. Which statements are true?

Exam traps
  1. Using \(q = C\mathcal E e^{-t/\tau}\) for charging.
    A charging capacitor starts empty and fills: \(q = C\mathcal E(1 - e^{-t/\tau})\). The current, not the charge, decays.
  2. Saying the capacitor is full at \(t = \tau\).
    At \(t = \tau\) it holds 63 %. It takes about five time constants to count as full.
  3. Keeping the capacitor in the circuit at \(t = 0\) as if it had a voltage.
    An empty capacitor has no voltage; replace it by a wire at \(t = 0\) and by a gap after a long time.