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
- Write the Kirchhoff loop differential equation for both charging and discharging RC circuits
- Solve \(R\frac{dq}{dt} + \frac{q}{C} = \mathcal{E}\) by separation of variables from scratch
- Sketch and read \(q(t)\), \(I(t)\), \(V_C(t)\), and \(V_R(t)\) graphs and understand \(\tau = RC\)
- Linearize RC data by plotting \(\ln(I)\) vs. \(t\) to measure \(RC\) from the slope
- Prove the 50/50 energy split during charging by integrating \(I^2 R\)
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!):
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)\).
- Isolate \(\frac{dq}{dt}\): \(\dfrac{dq}{dt} = \dfrac{C\mathcal{E} - q}{RC}\).
- 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} \]
- 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} \]
- 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}\)!).
- 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} \]
- 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}\) ✓!
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}\)!
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}\)!
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:
- Charging at \(t = \tau\): \(1 - e^{-1} \approx 0.632\) → reaches 63.2% of final charge/voltage.
- Decaying at \(t = \tau\): \(e^{-1} \approx 0.368\) → drops to 36.8% of initial value.
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}\).
- (a) \(\tau = RC = (2.0\times 10^3\ \Omega)(500\times 10^{-6}\text{ F}) = 1.0\text{ s}\).
- (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} \]
- (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 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\).
- 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)\)!
- Solve: \(-\dfrac{1}{RC} = -0.25\text{ s}^{-1} \implies RC = 4.0\text{ s}\).
- 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}\).
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?
- Total work done by battery: \(W_{\text{bat}} = \displaystyle\int_0^\infty \mathcal{E} I(t)\,dt = \mathcal{E}\int_0^\infty dq = \mathcal{E} Q_{\max} = C\mathcal{E}^2\).
- Energy stored in capacitor: \(U_C = \dfrac12 C\mathcal{E}^2\) — only half!
- Heat dissipated in resistor: \[ U_R = \int_0^\infty I(t)^2 R\,dt = \int_0^\infty \frac{\mathcal{E}^2}{R}e^{-2t/RC}\,dt = \frac{\mathcal{E}^2}{R}\left[-\frac{RC}{2}e^{-2t/RC}\right]_0^\infty = \frac12 C\mathcal{E}^2 \]
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?
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?
Practice problems
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}\).
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\).
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\) ✓.