11.8b · RC Differential Equations, Graphs & Energy

Now we fill in everything between \(t = 0^+\) and \(t \to \infty\). Setting up and solving the RC differential equation is one of the highest-probability calculus FRQ tasks on the entire AP Physics C: E&M exam.

By the end you can

Charging an RC circuit (full derivation)

Consider a single loop with battery \(\mathcal{E}\), resistor \(R\), and uncharged capacitor \(C\) (\(q(0) = 0\)). Close the switch at \(t = 0\) and apply Kirchhoff's Loop Rule clockwise:

\[ \mathcal{E} - IR - \frac{q}{C} = 0 \]

Because charge \(q\) on the capacitor is increasing, \(I = +\dfrac{dq}{dt}\). Substitute that in to get the differential equation (often worth 2 full FRQ points by itself!):

Charging RC differential equation
\[ R\frac{dq}{dt} + \frac{q}{C} = \mathcal{E} \]
Example 1 · Solving by separation of variables

Solve \(R\dfrac{dq}{dt} + \dfrac{q}{C} = \mathcal{E}\) with \(q(0) = 0\) for \(q(t)\), \(I(t)\), \(V_C(t)\), and \(V_R(t)\).

  1. Isolate \(\frac{dq}{dt}\): \(\dfrac{dq}{dt} = \dfrac{C\mathcal{E} - q}{RC}\).
  2. Separate \(q\) and \(t\) and integrate from \(q = 0\) (at \(t = 0\)) to \(q\) (at \(t\)): \[ \int_0^q \frac{dq'}{C\mathcal{E} - q'} = \int_0^t \frac{dt'}{RC} \]
  3. Evaluate (watch the minus sign from \(u = C\mathcal{E} - q',\; du = -dq'\)!): \[ -\ln\left(\frac{C\mathcal{E} - q}{C\mathcal{E}}\right) = \frac{t}{RC} \implies \frac{C\mathcal{E} - q}{C\mathcal{E}} = e^{-t/RC} \]
  4. Solve for \(q(t)\): \[ q(t) = C\mathcal{E}\left(1 - e^{-t/RC}\right) = Q_{\max}\left(1 - e^{-t/\tau}\right) \] where \(\tau = RC\) is the time constant (units: \(\Omega\cdot\text{F} = \text{s}\)!).
  5. Differentiate \(q(t)\) to get current \(I(t)\): \[ I(t) = \frac{dq}{dt} = \frac{\mathcal{E}}{R}e^{-t/RC} = I_0\,e^{-t/\tau} \]
  6. Voltages: \(V_C(t) = \dfrac{q}{C} = \mathcal{E}(1 - e^{-t/\tau})\) and \(V_R(t) = IR = \mathcal{E}e^{-t/\tau}\). Check Kirchhoff's Loop Rule at EVERY instant \(t\): \(V_C(t) + V_R(t) = \mathcal{E}(1 - e^{-t/\tau}) + \mathcal{E}e^{-t/\tau} = \mathcal{E}\) ✓!
\(q(t) = C\mathcal{E}(1 - e^{-t/RC})\), \(I(t) = \frac{\mathcal{E}}{R}e^{-t/RC}\), \(V_C(t) = \mathcal{E}(1 - e^{-t/RC})\), \(V_R(t) = \mathcal{E}e^{-t/RC}\).

Discharging an RC circuit (watch the minus sign!)

Now remove the battery and connect a charged capacitor (\(q(0) = Q_0,\; V_0 = Q_0/C\)) directly across resistor \(R\). Loop Rule gives \(\frac{q}{C} - IR = 0\). Because charge \(q\) on the capacitor is now decreasing, the positive discharge current is \(I = -\dfrac{dq}{dt}\)!

Discharging DE & solutions
\[ R\frac{dq}{dt} + \frac{q}{C} = 0 \implies q(t) = Q_0\,e^{-t/RC}, \quad I(t) = \frac{V_0}{R}e^{-t/RC}, \quad V_C(t) = V_R(t) = V_0\,e^{-t/RC} \]

Notice how easy it is to remember: during discharging, everything (\(q, I, V_C, V_R\)) decays exponentially like \(e^{-t/RC}\). During charging, \(q\) and \(V_C\) rise like \((1 - e^{-t/RC})\), while \(I\) and \(V_R\) still decay like \(e^{-t/RC}\)!

See it: Charging & discharging RC curves

Toggle Charging vs. Discharging and drag \(R\) and \(C\) to see how \(\tau = RC\) stretches or compresses the curves. Notice the vertical dashed line at \(t = \tau\) always marks \(63.2\%\) charged (or \(36.8\%\) remaining)!

The time constant \(\tau = RC\) & linearizing lab data

Plug \(t = \tau = RC\) into the exponential:

Example 2 · Numerical RC timing

A \(10\text{ V}\) battery charges a \(500\ \mu\text{F}\) capacitor through a \(2.0\text{ k}\Omega\) resistor. Find (a) \(\tau\), (b) \(q\) and \(I\) at \(t = 1.0\text{ s}\), and (c) the time to reach \(90\%\) of \(Q_{\max}\).

  1. (a) \(\tau = RC = (2.0\times 10^3\ \Omega)(500\times 10^{-6}\text{ F}) = 1.0\text{ s}\).
  2. (b) \(Q_{\max} = C\mathcal{E} = 5.0\text{ mC}\), \(I_0 = \frac{10}{2000} = 5.0\text{ mA}\). At \(t = 1.0\text{ s} = 1\tau\): \[ q(1) = 5.0(1 - e^{-1}) \approx 3.16\text{ mC}, \qquad I(1) = 5.0 e^{-1} \approx 1.84\text{ mA} \]
  3. (c) Set \(1 - e^{-t/\tau} = 0.90 \implies e^{-t/\tau} = 0.10 \implies t = \tau\ln(10) \approx 2.30\text{ s}\).
(a) \(1.0\text{ s}\); (b) \(3.16\text{ mC}\), \(1.84\text{ mA}\); (c) \(2.30\text{ s}\).
Example 3 · AP Experimental FRQ: linearizing \(\ln(I)\) vs. \(t\)

A student discharges an unknown capacitor \(C\) through a known resistor \(R = 20\text{ k}\Omega\) and plots \(\ln(I)\) on the vertical axis vs. \(t\) on the horizontal axis. The best-fit line has slope \(-0.25\text{ s}^{-1}\). Find \(C\).

  1. Take \(\ln\) of both sides of \(I(t) = I_0 e^{-t/(RC)}\): \[ \ln(I) = \ln(I_0) - \frac{1}{RC}\,t \] This matches \(y = b + m x\) with slope \(m = -\dfrac{1}{RC}\) and y-intercept \(\ln(I_0)\)!
  2. Solve: \(-\dfrac{1}{RC} = -0.25\text{ s}^{-1} \implies RC = 4.0\text{ s}\).
  3. Divide by \(R = 20\times 10^3\ \Omega\): \(C = \dfrac{4.0}{20\times 10^3} = 2.0\times 10^{-4}\text{ F} = 200\ \mu\text{F}\).
\(C = 200\ \mu\text{F}\)

The surprising 50/50 energy rule (calculus proof)

When a battery \(\mathcal{E}\) charges an uncharged capacitor \(C\) through a resistor \(R\) from \(t = 0\) to \(\infty\), where does the battery's energy go?

Independent of \(R\)!

No matter whether \(R = 1\ \Omega\) or \(R = 1\text{ M}\Omega\), exactly 50% of the battery's energy is stored in the capacitor and exactly 50% is burned as heat in the resistor! Changing \(R\) only changes how fast it heats up, not the total heat.

If you double the resistance \(R\) in a simple charging RC circuit (keeping \(\mathcal{E}\) and \(C\) fixed), what happens to the total thermal energy dissipated in the resistor by the time the capacitor is fully charged?

\(U_R = \frac12 C\mathcal{E}^2\) does NOT depend on \(R\)! Doubling \(R\) cuts the initial power in half, but makes the charging process last twice as long (\(\tau = RC\) doubles), so the total area \(\int P\,dt\) is unchanged!

A capacitor charges through resistor \(R\) from a battery \(\mathcal{E}\). At the moment when \(V_C = \frac13 \mathcal{E}\), what is the current \(I\) in the circuit?

You don't even need exponentials! Use Kirchhoff's Loop Rule right at that instant: \(\mathcal{E} - IR - V_C = 0 \implies IR = \mathcal{E} - \frac13\mathcal{E} = \frac23\mathcal{E} \implies I = \frac{2\mathcal{E}}{3R}\).

Practice problems

Warm-up

A \(40\ \mu\text{F}\) capacitor initially charged to \(12\text{ V}\) discharges through a \(5.0\text{ k}\Omega\) resistor. Write formulas for \(q(t)\) and \(I(t)\), and find \(I\) at \(t = 0.20\text{ s}\).

Hint

\(\tau = RC = 0.20\text{ s}\), \(Q_0 = 480\ \mu\text{C}\), \(I_0 = 2.4\text{ mA}\).

Solution

\(\tau = (5.0\times 10^3)(40\times 10^{-6}) = 0.20\text{ s}\). \(Q_0 = (40\ \mu\text{F})(12\text{ V}) = 480\ \mu\text{C}\). \(I_0 = 12/5000 = 2.4\text{ mA}\).

\(q(t) = 480\,e^{-5t}\ \mu\text{C}\), \(I(t) = 2.4\,e^{-5t}\text{ mA}\). At \(t = 0.20\text{ s} = 1\tau\): \(I = 2.4 e^{-1} \approx 0.88\text{ mA}\).

\(q(t) = 480e^{-5t}\ \mu\text{C}\), \(I(t) = 2.4e^{-5t}\text{ mA}\); \(I(0.20\text{ s}) \approx 0.88\text{ mA}\).
Medium

How many time constants \(\tau\) does it take for the stored energy \(U_C(t)\) in a discharging capacitor to drop to half its initial value?

Hint

Careful! \(U_C = \frac{q^2}{2C} = U_0 e^{-2t/\tau}\) — notice the factor of \(2\) in the exponent!

Solution

Set \(e^{-2t/\tau} = \frac12 \implies \frac{2t}{\tau} = \ln 2 \implies t = \frac12\tau\ln 2 \approx 0.347\,\tau\).

\(t = \dfrac{\ln 2}{2}\,\tau \approx 0.347\,\tau\)
AP-style

In a charging RC circuit, show that the initial tangent line to the \(q(t)\) curve at \(t = 0\) intersects the horizontal asymptote \(q = Q_{\max}\) at exactly \(t = \tau\).

Hint

The slope of \(q(t)\) at \(t = 0\) is \(I(0) = Q_{\max}/\tau\). Write the tangent line \(q_{\text{tan}}(t) = (Q_{\max}/\tau) t\).

Solution

\(\left.\frac{dq}{dt}\right|_{t=0} = I(0) = \frac{\mathcal{E}}{R} = \frac{C\mathcal{E}}{RC} = \frac{Q_{\max}}{\tau}\). Thus the tangent line through \((0,0)\) is \(q_{\text{tan}}(t) = \frac{Q_{\max}}{\tau}t\). Setting this equal to \(Q_{\max}\) gives \(t = \tau\) ✓.

Shown: \(q_{\text{tan}}(\tau) = \frac{Q_{\max}}{\tau}\cdot\tau = Q_{\max}\).