MathemagiciansLibraryExplorationsDeep Dives
← Physics · Pre-University
PhysicsPre-University

Charging and discharging capacitors

PP4 — Electromagnetism › PP4.1 — Electric Fields and CapacitorsLecture 5 of 5~2380 words

The same capacitor, fast and slow

A camera flash runs on a small battery. When you switch it on, it takes a few seconds before the flash is ready. During that time a capacitor is charging. Then you press the button, and the same capacitor empties through the flash tube in about a millisecond. Same capacitor, same charge. One process takes seconds and the other takes a thousandth of a second. What sets the time?

The last lecture charged a capacitor in equal packets, at a steady pace. It ended with a promise: the next lecture watches this charging happen. Here it is. When a capacitor charges through a resistor, the pace is not steady at all. The charging slows itself down, and in this model it never quite finishes. The same lecture also claimed that half the energy from the supply is lost in the resistor, whatever its resistance. This lecture proves it.

Why the current slows down

Figure 1 shows the circuit. A supply of e.m.f. , with negligible internal resistance, can be joined through a switch to a resistor R and a capacitor C in series. In position A the supply charges the capacitor. In position B the supply is left out, and the capacitor discharges through the resistor alone.

+V₀9.0 VABSRCA: charge through R · B: discharge through R
Figure 1. In position A, the supply charges C through R. In position B, the supply is out of the circuit and C discharges through R alone. The supply is never short-circuited.

Put the switch at A. The loop rule says the two p.d.s round the loop add up to the e.m.f.:

Take numbers: V, R = 10 kΩ and C = 470 μF. At the instant the switch closes, the capacitor holds no charge, so . All 9.0 V is across the resistor, and the current is mA.

That current carries charge onto the plates, so rises. Less p.d. is now left for the resistor, so the current falls. When reaches 4.5 V, the current is only half of . When reaches 8.1 V, it is a tenth. The capacitor's own p.d. pushes back against the supply. The fuller it gets, the more slowly it fills.

Stop and think

A capacitor has an insulating gap. So at the instant the switch closes, is the current zero?

Show the answer

No. The current is largest at that instant: . No charge crosses the gap, but charge flows in the wires on both sides, onto one plate and off the other. At first the empty capacitor has no p.d. to push back, so it behaves like a plain piece of wire. It is only when it is full that it blocks the current completely.

Discharging: the rate depends on what is left

The discharge is simpler, so start there. Charge the capacitor fully to , then move the switch to B. Now the capacitor is the only source in the loop. The p.d. across the resistor equals the p.d. across the capacitor, so .

The current is the rate at which charge leaves the plates, so . The minus sign says that Q is falling. Put the two together:

Read this equation before solving it. It says that the charge falls at a rate proportional to the charge that is left. In a short time Δt, the charge lost is . So the fraction lost is , and it is the same in every equal time interval. You have met this before. In the half-life lecture, a fixed fraction of the nuclei decayed in each equal time, and that gave exponential decay. The same rule gives the same curve here.

To get the formula, separate the variables and integrate from at :

The p.d. is and the current is . Each is the charge divided by a constant, so each has the same shape: and .

The time constant

The product RC is called the time constant, τ. Check that it really is a time. An ohm is a volt per ampere, and a farad is a coulomb per volt. So Ω × F = (V/A) × (C/V) = C/A, and a coulomb per ampere is a second.

The time constant has two meanings, and both are useful.

With R = 10 kΩ and C = 470 μF, τ = 4.7 s. Both parts make sense. A larger R gives a smaller current, so the charge moves more slowly. A larger C holds more charge for each volt, so there is more to move. Since the decay is exponential, it also has a half-life. Setting gives . Here that is about 3.3 s.

Charging is the discharging of a gap

Now put the switch back at A. The charge rises towards . Call the charge still to come the gap, . From the loop rule,

The current fills the gap, so the gap shrinks at the rate I: . This is exactly the discharge equation, with G in place of Q. So the gap decays exponentially: . That is it. That is the whole idea. Charging is a discharge of the charge still missing.

Charging and discharging through a resistor

Time constant (in seconds, with R in ohms and C in farads).

Discharging: , and V and I have the same form.

Charging: and , while the current falls: .

After τ: 63% charged, or 37% left. After 5τ: more than 99%.

0τ2τ3τ4τ5τ00.370.631charging: Q, V risecharging I; discharging Q, V, Itime tfraction of final or starting value
Figure 2. One time axis, measured in time constants. Rising (blue): Q and V while charging, 0.63 of the final value at τ. Falling (ink): the current while charging, and Q, V and I while discharging, 0.37 of the start at τ. The dashed tangent at the start reaches zero at τ.

Watching it happen, and the lost half

Use the simulation below. It uses the 470 μF capacitor and the 9.0 V supply. Watch the two p.d.s, and watch the energy count underneath.

Simulation — charging and discharging through R

Choose Charge or Discharge and a resistor, then press Play (5 s of circuit time each second). Step adds 1 s. Stop at τ and read the p.d. Then run to the end with each resistor and compare the heat in R.

R:


The table follows the 470 μF capacitor charging from 9.0 V through 10 kΩ (τ = 4.7 s). The columns "across C" and "across R" are the two p.d.s, which always add up to 9.0 V. The energy columns show the supply's energy dividing between the capacitor and the heat in R.

t / sacross C / Vacross R / VI / mAStored / mJHeat / mJ
00.009.000.9000.000.00
4.7 (τ)5.693.310.3317.6116.46
9.4 (2τ)7.781.220.12214.2318.69
14.1 (3τ)8.550.450.04517.1918.99
23.5 (5τ)8.940.060.00618.7819.03

With 4.7 kΩ (τ = 2.2 s) or 22 kΩ (τ = 10.3 s) the times change, but the final split does not: 19.0 mJ stored and 19.0 mJ of heat, from the 38.1 mJ the supply gave. On discharge, all 19.0 mJ becomes heat in R.

Before the algebra, make a prediction.

Predict — a smaller resistor to save energy?

The 470 μF capacitor is charged from the 9.0 V supply, which gives 38.1 mJ in total. A student swaps the 10 kΩ resistor for 1 kΩ, hoping to waste less energy. How much energy becomes heat in the 1 kΩ resistor?

The answer, worked out below: the heat in the resistor is 19.0 mJ for 1 kΩ, 10 kΩ or any other resistance. Half of the supply's 38.1 mJ is always lost when charging from a fixed supply. A smaller R gives a bigger current for a shorter time, and the two effects cancel exactly.

Here is the proof. Every coulomb that flows round the circuit is given joules by the supply. A total charge flows, so the supply gives . The capacitor ends with . The heat in the resistor is the integral of the power :

R cancels. A small R gives a large current, but only for a short time. A large R gives a small current for a long time. The two effects balance exactly. The loss is smaller only if the supply's p.d. rises slowly with the capacitor's, so that the p.d. across R stays small all the time.

Measuring τ: a straight line from a curve

Take logs of :

This has the form y = c + mx. So a graph of ln V against t is a straight line with gradient and intercept . This is better than using one reading. The line uses every reading, so random errors partly cancel. And a straight line tests the model: if the points curve, something else is happening, such as a capacitor that leaks.

The flash from the start of the lecture now makes sense. It charges through the battery's circuit for seconds. It discharges through the glowing gas of the tube, which conducts with a resistance of only a few ohms. With 100 μF and 6 Ω, τ = 0.6 ms. The first implanted heart pacemakers, in Sweden in 1958, also used a capacitor and a resistor to time their pulses. Modern pacemakers time them digitally.

Worked examples

Worked Example 1 — Charging a 470 μF capacitor

A 470 μF capacitor is charged through a 10 kΩ resistor from a 9.0 V supply. Find (a) τ, (b) the charge after one time constant, (c) the time to reach 8.0 V.

(a) τ = RC = (10 × 10³ Ω)(470 × 10⁻⁶ F) = 4.7 s. Keep the powers of ten: kΩ × μF gives milliseconds, not seconds.

(b) mC. After τ, mC.

(c) , so . Then s.

Check: 10.3 s is 2.2τ. The table says 86% at 2τ and 95% at 3τ. And 8.0 V is 89% of 9.0 V, which lies between them.

Worked Example 2 — Finding τ from two readings

A capacitor discharges from 12.0 V through a resistor. After 20 s the p.d. is 4.0 V. Find τ, and the time for the p.d. to fall to 1.0 V.

, so . Taking logs, , so τ = 20 ÷ 1.099 ≈ 18.2 s.

For 1.0 V: , so s.

Check: falling from 12.0 V to 4.0 V divides by 3 in 20 s. Dividing by 3 again takes another 20 s and gives 1.33 V at 40 s. So 1.0 V a little after 40 s is right.

Worked Example 3 — The graph method

A student repeats Example 2 with a 220 μF capacitor and records the p.d. every 10 s: 12.0, 6.95, 3.98, 2.32 and 1.33 V. Find τ and the resistance.

The values of ln(V / V) are 2.485, 1.939, 1.381, 0.842 and 0.285. They lie on a straight line (Figure 3). The line passes through (0, 2.49) and (40, 0.29), so its gradient is (0.29 − 2.49) ÷ 40 = −0.055 s⁻¹.

10203040012t / sln(V / V)gradient −0.055 s⁻¹
Figure 3. ln(V / V) against t for the five readings (crosses), with the line of best fit.

Gradient = −1/RC, so RC = 1 ÷ 0.055 ≈ 18.2 s. Then R = 18.2 s ÷ (220 × 10⁻⁶ F) ≈ 83 kΩ.

Check: the intercept 2.49 gives V, the starting reading. The graph agrees with Example 2, and it used all five readings.

Worked Example 4 — Where the energy goes

For the capacitor in Example 1, find the energy given by the supply, the energy stored, and the heat in the resistor. How long does it take to store half of the final energy?

The supply gives mJ. The capacitor stores mJ. The resistor turns the other 19.0 mJ into heat.

The stored energy is proportional to V². Half of the final energy needs , so . Then , which gives s.

Check: at τ the p.d. is 63% of , and 0.63² ≈ 0.40 of the energy. So half the energy must come a little after τ, as found.

Traps

Trap 1 — "τ is the time to charge fully" (or "to half charge")

After τ the capacitor is 63% charged, not full and not half. In this model it never becomes completely full. Half charge comes at .

Trap 2 — Drawing the charging current rising

While the capacitor charges, Q and V rise but the current falls, from towards zero. On discharge the current also flows the other way through R. Draw the current as a falling curve in both cases.

Trap 3 — lg in place of ln

The gradient of ln V against t is −1/RC. If you plot , the gradient is , which is 2.3 times smaller. Use ln, or multiply by ln 10 at the end.

Try it yourself

Work each one on paper first. Open a hint only when you are stuck.

  1. A 100 μF capacitor discharges through a 2.2 kΩ resistor. Find τ, and the time for the p.d. to fall to 10% of its starting value.

    Hint 1

    τ = RC with R in ohms and C in farads.

    Hint 2

    Solve by taking ln of both sides.

    Full answer

    τ = 2200 × 100 × 10⁻⁶ = 0.22 s. Then , so s. Check: after 2τ, 13.5% is left, and after 3τ, 5%. So 10% at 2.3τ fits.

  2. A graph of ln(V / V) against t for a discharging 500 μF capacitor is a straight line with intercept 2.30 and gradient −0.40 s⁻¹. Find the starting p.d., τ and R.

    Hint 1

    The intercept is and the gradient is −1/RC.

    Hint 2

    . τ = 1 ÷ 0.40.

    Full answer

    V. τ = 1 ÷ 0.40 = 2.5 s. R = τ/C = 2.5 ÷ (500 × 10⁻⁶) = 5000 Ω = 5.0 kΩ. Check: after 2.5 s the line has fallen by 1.0, from 2.30 to 1.30, and V, which is 37% of 10 V.

  3. The p.d. across a capacitor discharging through a 10 kΩ resistor halves every 3.0 s. Find the capacitance. What fraction of the p.d. is left after 9.0 s?

    Hint 1

    The half-life is .

    Hint 2

    τ = 3.0 ÷ ln 2. And 9.0 s is three half-lives.

    Full answer

    τ = 3.0 ÷ 0.693 ≈ 4.33 s, so C = 4.33 ÷ 10 000 ≈ 4.3 × 10⁻⁴ F = 430 μF. After three half-lives, (½)³ = 1/8 of the p.d. is left. Check: .

  4. A power supply turns 50 Hz mains into a series of peaks, recharging a 1000 μF capacitor to 12.0 V every 10 ms. Between peaks, the capacitor discharges through a 100 Ω load. (a) By how much does its p.d. fall before the next peak? (b) What capacitance would keep the fall to about 1% of 12.0 V?

    Hint 1

    Between peaks this is a plain discharge, starting at 12.0 V and lasting 10 ms.

    Hint 2

    τ = 100 × 1000 × 10⁻⁶ = 0.10 s. For (b), you need .

    Full answer

    (a) τ = 0.10 s. After 10 ms, V. The p.d. falls by about 1.1 V. This wobble is called ripple. (b) gives s. With R = 100 Ω, C ≈ 0.995 ÷ 100 ≈ 0.010 F, about 10 000 μF, ten times bigger. Check: a fall of 1% in 10 ms means τ is about 100 times 10 ms, or 1 s.

The bigger idea

The equation says "the rate is proportional to what is left". It appears all over science. Unstable nuclei decay this way. For many medicines, the amount in the blood falls this way. In Newton's law of cooling, it is the temperature difference from the room that decays, exactly like the gap in a charging capacitor.

"Never quite full" is a property of the model. In Example 1, mC is about 2.6 × 10¹⁶ electrons. After about 38 time constants, roughly three minutes, the smooth model says that less than one electron is still missing. Charge comes in whole electrons, so there the smooth curve stops describing anything real. Long before that, the gap is smaller than any meter can measure.

Key concepts in this lesson