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.

+εSRCI = dq/dtVòng: ε − IR − q/C = 0
Mạch nạp tụ. Đi vòng theo chiều dòng: qua nguồn từ $-$ sang $+$ được $+\varepsilon$, qua điện trở mất $IR$, qua tụ mất $q/C$. Phương trình vi phân bậc một là hệ quả trực tiếp của định luật vòng.
123450.250.50.751q / (Cε) = 1 − e^(−t/τ)I / I₀ = e^(−t/τ)63%37%t/τ
Hai đường cong của quá trình nạp. Điện tích tăng tới $C\varepsilon$, dòng giảm từ $I_0=\varepsilon/R$; cả hai đều thay đổi theo $e^{-t/\tau}$. Tại $t=\tau$: điện tích $63\%$, dòng $37\%$.

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ở.

Common mistake

Bẫy lớn nhất của mạch RC: lấy $\tau=RC$ với $R$ là điện trở nối tiếp với nguồn trong khi tụ còn nhánh song song khác. Luôn tính điện trở tụ nhìn thấy (tắt nguồn, nhìn từ hai cực tụ). Bẫy thứ hai: đọc thời gian "năng lượng đạt một nửa" như "điện tích đạt một nửa". Năng lượng tỉ lệ $q^2$ nên các mốc khác nhau: $U=\tfrac14U_\infty$ ứng với $q=\tfrac12Q_\infty$.

Key takeaway

Viết định luật vòng với $I=dq/dt$, tách biến, áp điều kiện đầu. Nạp: $q=C\varepsilon(1-e^{-t/\tau})$, $I=(\varepsilon/R)e^{-t/\tau}$. Ngay sau: tụ là dây; rất lâu sau: tụ hở. $\tau=R_{\text{thấy}}C$. Nạp từ $0$: điện trở luôn toả $\tfrac12C\varepsilon^2$.

← Kirchhoff's Rules · All AP Physics C: Electricity and Magnetism lessons · Practice AP Physics C: Electricity and Magnetism questions (free, instant scoring) · Magnetic Force on Moving Charges →