28.9 RC Circuits

A resistor circuit has a steady current. By adding a capacitor and a switch, we can make a circuit in which the current varies with time as the capacitor charges and discharges. Circuits with resistors and capacitors are called RC circuits. RC circuits are at the heart of timekeeping circuits in applications ranging from the intermittent windshield wipers on your car to computers and other digital electronics.

FIGURE 28.34a shows a charged capacitor, a switch, and a resistor. The capacitor has charge Q0 and potential difference ΔV0=Q0/C. There is no current, so the potential difference across the resistor is zero. Then, at t=0, the switch closes and the capacitor begins to discharge through the resistor.

Figure 28.34 Discharging a capacitor.

The figure labeled (“a”) illustrates a series R C circuit before a switch closes.
The figure labeled (b) illustrates a series R C circuit after a switch closes.
Full Alternative Text

How long does the capacitor take to discharge? How does the current through the resistor vary as a function of time? To answer these questions, FIGURE 28.34b shows the circuit at a later instant when the capacitor is partially discharged.

Kirchhoff’s loop law is valid for any circuit, not just circuits with batteries. The loop law applied to the circuit of Figure 28.34b, going around the loop cw, is

ΔVcap+ΔVres=QC−IR=0 (28.25)

Q and I in this equation are the instantaneous values of the capacitor charge and the resistor current.

The current I is the rate at which charge flows through the resistor: I=dq/dt. But the charge flowing through the resistor is charge that was removed from the capacitor. That is, an infinitesimal charge dq flows through the resistor when the capacitor charge decreases by dQ. Thus dq=−dQ, and the resistor current is related to the instantaneous capacitor charge by

I=−dQdt (28.26)

Equation 28.26 tells us that I is positive when Q is decreasing (dQ<0), as we would expect. The reasoning that has led to Equation 28.26 is rather subtle but very important.

A photograph of the rear flasher on a bike helmet flashing on and off.

The rear flasher on a bike helmet flashes on and off. The timing is controlled by an RC circuit.

If we substitute Equation 28.26 into Equation 28.25 and then divide by R, the loop law for the RC circuit becomes

dQdt+QRC=0 (28.27)

Equation 28.27 is a first-order differential equation for the capacitor charge Q, but one that we can solve by direct integration. First, we rearrange Equation 28.27 to get all the charge terms on one side of the equation:

dQQ=−1RC dt

The product RC is a constant for any particular circuit.

The capacitor charge was Q0 at t=0 when the switch was closed. We want to integrate from these starting conditions to charge Q at a later time t. That is,

∫Q0Q dQQ=−1RC ∫0t dt (28.28)

Both are well-known integrals, giving

ln Q|Q0Q=ln Q−ln Q0=ln(QQ0)=−tRC

We can solve for the capacitor charge Q by taking the exponential of both sides, then multiplying by Q0. Doing so gives

Q=Q0e−t/RC (28.29)

Notice that Q=Q0 at t=0, as expected.

The argument of an exponential function must be dimensionless, so the quantity RC must have dimensions of time. It is useful to define the time constant τ to be

τ=RC (28.30)

We can then write Equation 28.29 as

Q=Q0e−t/τ (28.31)

The capacitor voltage, directly proportional to the charge, also decays exponentially as

ΔVC=ΔV0e−t/τ  (capacitor discharging) (28.32)

The meaning of Equation 28.32 is easier to understand if we portray it graphically. FIGURE 28.35a shows the capacitor voltage as a function of time. The voltage decays exponentially, starting from ΔV0 at t=0 and asymptotically approaching zero as t→∞. The time constant τ is the time at which the voltage has decreased to e−1 (about 37%) of its initial value. At time t=2τ, the voltage has decreased to e−2 (about 13%) of its initial value. A graph of the capacitor’s charge would have the same shape.

FIGURE 28.35 The decay curves of the capacitor voltage and the resistor current.

The figure labeled (“a”) illustrates a voltage versus time graph.
The figure labeled (b) illustrates a current versus time graph.
Full Alternative Text

NOTE   The shape of the voltage graph is always the same, regardless of the specific value of the time constant τ.

We find the resistor current by using Equation 28.26:

I=−dQdt=Q0τ e−t/τ=Q0RC e−t/τ=ΔV0R e−t/τ=I 0e−t/τ (28.33)

where I0=ΔV0/R is the initial current, immediately after the switch closes. FIGURE 28.35b is a graph of the resistor current versus t. You can see that the current undergoes the same exponential decay, with the same time constant, as the capacitor voltage.

NOTE   There’s no specific time at which the capacitor has been completely discharged, because ΔV approaches zero asymptotically, but the voltage and current have dropped to less than 1% of their initial values at t=5τ. Thus 5τ is a reasonable answer to the question “How long does it take to discharge a capacitor?”

EXAMPLE 28.12 Measuring capacitance

To determine the capacitance of an unmarked capacitor, you set up the circuit shown in FIGURE 28.36. After holding the switch in position a for several seconds, you suddenly flip it—at t = 0 s—to position b while monitoring the resistor voltage with a voltmeter. Your measurements are shown in the table. What is the capacitance? And what was the resistor current 5.0 s after the switch changed position?

FIGURE 28.36 An RC circuit for measuring capacitance.

The figure illustrates the circuit diagram of a parallel R C circuit for measuring capacitance.
Time (s) Voltage (V)
0.0 9.0
2.0 5.4
4.0 2.7
6.0 1.6
8.0 1.0

MODEL The battery charges the capacitor to 9.0 V. Then, when the switch is flipped to position b, the capacitor discharges through the 25,000 Ω resistor with time constant τ=RC.

SOLVE With the switch in position b, the resistor is in parallel with the capacitor and both have the same potential difference ΔVR=ΔVC=Q/C at all times. The capacitor charge decays exponentially as

Q=Q0e−t/τ

Consequently, the resistor (and capacitor) voltage also decays exponentially:

ΔVR=Q0C e−t/τ=ΔV0e−t/τ

where ΔV0=9.0 V is the potential difference at the instant the switch closes. To analyze exponential decays, we take the natural logarithm of both sides. This gives

ln(ΔVR)=ln(ΔV0)+ln(e−t/τ)=ln(ΔV0)−1τ t

This result tells us that a graph of ln(ΔVR) versus t—a semi-log graph—should be linear with y-intercept ln(ΔV0) and slope −1/τ. If this turns out to be true, we can determine τ and hence C from an experimental measurement of the slope.

FIGURE 28.37 is a graph of ln(ΔVR) versus t. It is, indeed, linear with a negative slope. From the y-intercept of the best-fit line, we find ΔV0=e2.20=9.0 V, as expected. This gives us confidence in our analysis. Using the slope, we find

FIGURE 28.37 A semi-log graph of the data.

The figure illustrates an integral of voltage delta V subscript R versus time graph.
τ=−1slope=−1−0.28 s−1=3.6 s

With this, we can calculate

C=τR=3.6 s25,000 Ω=1.4×10−4 F=140 μF

The initial current is I0=(9.0 V)/(25,000 Ω)=360 μA. Current also decays exponentially with the same time constant, so the current after 5.0 s is

I=I0e−t/τ=(360 μA)e−(5.0 s)/(3.6 s)=90 μA

REVIEW The time constant of an exponential decay can be estimated as the time required to decay to one-third of the initial value. Looking at the data, we see that the voltage drops to one-third of the initial 9.0 V in just under 4 s. This is consistent with the more precise τ=3.6 s, so we have confidence in our results.