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 and potential difference . There is no current, so the potential difference across the resistor is zero. Then, at , the switch closes and the capacitor begins to discharge through the resistor.
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
Q and in this equation are the instantaneous values of the capacitor charge and the resistor current.
The current is the rate at which charge flows through the resistor: . 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 , and the resistor current is related to the instantaneous capacitor charge by
Equation 28.26 tells us that is positive when is decreasing , as we would expect. The reasoning that has led to Equation 28.26 is rather subtle but very important.
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 , the loop law for the RC circuit becomes
Equation 28.27 is a first-order differential equation for the capacitor charge , 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:
The product RC is a constant for any particular circuit.
The capacitor charge was at when the switch was closed. We want to integrate from these starting conditions to charge at a later time t. That is,
Both are well-known integrals, giving
We can solve for the capacitor charge by taking the exponential of both sides, then multiplying by . Doing so gives
Notice that at , 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
We can then write Equation 28.29 as
The capacitor voltage, directly proportional to the charge, also decays exponentially as
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 at and asymptotically approaching zero as The time constant is the time at which the voltage has decreased to (about 37%) of its initial value. At time , the voltage has decreased to (about 13%) of its initial value. A graph of the capacitor’s charge would have the same shape.
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:
where 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 approaches zero asymptotically, but the voltage and current have dropped to less than 1% of their initial values at . Thus is a reasonable answer to the question “How long does it take to discharge a capacitor?”
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 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?
| 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 resistor with time constant .
SOLVE With the switch in position b, the resistor is in parallel with the capacitor and both have the same potential difference at all times. The capacitor charge decays exponentially as
Consequently, the resistor (and capacitor) voltage also decays exponentially:
where is the potential difference at the instant the switch closes. To analyze exponential decays, we take the natural logarithm of both sides. This gives
This result tells us that a graph of versus t—a semi-log graph—should be linear with y-intercept and slope . If this turns out to be true, we can determine and hence from an experimental measurement of the slope.
FIGURE 28.37 is a graph of versus . It is, indeed, linear with a negative slope. From the y-intercept of the best-fit line, we find as expected. This gives us confidence in our analysis. Using the slope, we find
With this, we can calculate
The initial current is . Current also decays exponentially with the same time constant, so the current after 5.0 s is
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 so we have confidence in our results.