RC Circuits as Differential Equations
AP Physics C: Electricity and Magnetism · Unit 4 — Electric Circuits
Charging: write the loop rule, then solve it
Close the switch at $t=0$ in a series circuit of emf $\varepsilon$, resistor $R$ and initially uncharged capacitor $C$. With $I=dq/dt$ the loop rule reads
$$\varepsilon-R\frac{dq}{dt}-\frac{q}{C}=0\quad\Longrightarrow\quad\frac{dq}{dt}=\frac{C\varepsilon-q}{RC}.$$Separate variables and integrate from $q=0$ at $t=0$:
$$\int_0^q\frac{dq'}{C\varepsilon-q'}=\int_0^t\frac{dt'}{RC}\;\Longrightarrow\;q(t)=C\varepsilon\left(1-e^{-t/RC}\right),\qquad I(t)=\frac{\varepsilon}{R}e^{-t/RC}.$$The time constant $\tau=RC$ is the time for the current to fall to $1/e\approx37\%$ of its initial value (and for the charge to reach $63\%$ of its final value). After about $5\tau$ the circuit is practically at steady state.
Two limits let you analyse any circuit without solving the equation: immediately after a switch changes, an uncharged capacitor behaves like a wire (its voltage cannot jump, it is still $0$); long after, no current flows into the capacitor, so its branch acts like an open circuit.
Discharging and energy bookkeeping
A capacitor with initial charge $Q_0$ discharging through $R$ obeys $R\dfrac{dq}{dt}+\dfrac{q}{C}=0$, so $q=Q_0e^{-t/RC}$ and $|I|=\dfrac{Q_0}{RC}e^{-t/RC}$. Since $V_C=q/C$, a plot of $\ln V_C$ against $t$ is a straight line of slope $-1/RC$ — the standard way to extract $RC$ from data. Be careful if the plot uses $\log_{10}$: then the slope is $-\dfrac{1}{RC\ln10}$.
Stored energy is $U_C=\dfrac{q^2}{2C}$, so during charging $U_C=U_\infty\left(1-e^{-t/\tau}\right)^2$ — it rises more slowly than the charge. While charging from zero the battery does work $W=Q\varepsilon=C\varepsilon^2$, the capacitor ends with $\tfrac12C\varepsilon^2$, and the resistor dissipates
$$\int_0^\infty I^2R\,dt=\frac{\varepsilon^2}{R}\int_0^\infty e^{-2t/RC}dt=\frac12C\varepsilon^2,$$independent of $R$. Exactly half the battery's work is lost as heat, however small the resistance.
If the time constant differs between charging and discharging (different resistors in the two paths), find the Thevenin resistance seen by the capacitor: kill the emf (replace it with a wire) and combine whatever resistance is left between the capacitor's terminals.
Worked example: tụ mắc song song với điện trở — hai hằng số thời gian
Nguồn $\varepsilon=18$ V nối tiếp $R_1=6{,}0$ kΩ tới nút $P$; từ $P$ xuống đất có $R_2=3{,}0$ kΩ mắc song song với tụ $C=50\ \mu$F. Đóng khoá lúc $t=0$ (tụ chưa tích điện). a) Dòng qua $R_1$ ngay sau khi đóng và rất lâu sau. b) Hằng số thời gian nạp và điện áp cuối của tụ. c) Sau đó ngắt nguồn (hở $R_1$): tụ phóng với hằng số thời gian nào?
Solution
a) Ngay sau khi đóng, tụ như dây nối nên nút $P$ ở điện thế $0$, chập luôn $R_2$: $I_1=\dfrac{18}{6000}=3{,}0$ mA. Rất lâu sau, tụ hở mạch: $I_1=\dfrac{18}{9000}=2{,}0$ mA.
b) Điện trở tụ nhìn thấy khi tắt nguồn: $R_1\parallel R_2=\dfrac{6\cdot3}{9}=2{,}0$ kΩ, nên $\tau=2000\cdot50\times10^{-6}=0{,}10$ s. Điện áp cuối là điện áp trên $R_2$: $V_\infty=2{,}0\text{ mA}\cdot3{,}0\text{ kΩ}=6{,}0$ V. Vậy $V_C=6{,}0\left(1-e^{-t/0{,}10}\right)$ V.
c) Ngắt nguồn thì tụ chỉ phóng qua $R_2$: $\tau'=3000\cdot50\times10^{-6}=0{,}15$ s. Hằng số thời gian phóng lớn hơn lúc nạp vì đường phóng chỉ còn một điện trở.