RC Circuit
Models
Model charging and discharging circuits as first-order linear ODEs, solve them with integrating factors, and interpret time constants physically.
What Is an RC Circuit?
An RC circuit contains two passive components: a resistor (resistance \( R \), in ohms) and a capacitor (capacitance \( C \), in farads), connected to a voltage source \( V(t) \). Current flows through the resistor and charges or discharges the capacitor.
Kirchhoff's Voltage Law
Around any closed loop, the sum of all voltage drops equals zero. For our RC circuit with a source \( V(t) \):
This is a linear, first-order ODE in \( q(t) \). Dividing through by \( R \):
The Time Constant \( \tau = RC \)
Core ODE: Charging a Capacitor
With a constant voltage source \( V_0 \) and initial condition \( q(0) = 0 \), the ODE becomes:
Equivalently, the voltage across the capacitor is:
Core ODE: Discharging a Capacitor
When the voltage source is removed (\( V(t) = 0 \)) and the capacitor starts fully charged \( q(0) = CV_0 \):
The voltage decays exponentially:
Charging vs Discharging Curves
Key Distinction: Nonhomogeneous vs Homogeneous
| Charging | Discharging | |
|---|---|---|
| Source | \( V(t) = V_0 \neq 0 \) | \( V(t) = 0 \) |
| ODE Type | Nonhomogeneous | Homogeneous |
| Method | Integrating factor | Separation of variables |
| Solution Form | \( A(1 - e^{-t/\tau}) \) | \( A\,e^{-t/\tau} \) |
| Steady State | \( v_C \to V_0 \) | \( v_C \to 0 \) |
Solving with the Integrating Factor
Example 1: Basic Charging
A circuit has \( R = 1000\,\Omega \), \( C = 2 \times 10^{-3}\,\text{F} \), and \( V_0 = 10\,\text{V} \). Find \( v_C(t) \) with \( v_C(0) = 0 \).
Example 2: Discharging from Partial Charge
Same circuit (\( R = 1\,\text{k}\Omega \), \( C = 2\,\text{mF} \)) but the source is removed at \( t = 0 \) when \( v_C(0) = 7\,\text{V} \). Find \( v_C(t) \).
Example 3: Time-Varying Source
Suppose \( V(t) = 10\sin(t) \), \( R = 5\,\Omega \), \( C = 0.1\,\text{F} \), and \( q(0) = 0 \).
Transient vs Steady-State Response
Current \( i(t) \) in the Circuit
Since \( i(t) = C\,\frac{dv_C}{dt} \), we can differentiate our voltage solutions to find the current:
Common Mistakes
Summary of RC Circuit Formulas
| Charging | Discharging | |
|---|---|---|
| ODE | \( \frac{dv_C}{dt} + \frac{v_C}{\tau} = \frac{V_0}{\tau} \) | \( \frac{dv_C}{dt} + \frac{v_C}{\tau} = 0 \) |
| \( v_C(t) \) | \( V_0(1 - e^{-t/\tau}) \) | \( V_0\,e^{-t/\tau} \) |
| \( i(t) \) | \( \frac{V_0}{R}\,e^{-t/\tau} \) | \( -\frac{V_0}{R}\,e^{-t/\tau} \) |
| \( \tau \) | \( RC \) (seconds) | |
| At \( t = \tau \) | 63.2% of \( V_0 \) | 36.8% of \( V_0 \) |
| Steady State | \( v_C \to V_0 \) | \( v_C \to 0 \) |
Question 1 of 5
An RC circuit has \( R = 500\,\Omega \) and \( C = 4\,\text{mF} \). What is the time constant \( \tau \)?
Question 2 of 5
A capacitor charges from 0 V toward \( V_0 = 12\,\text{V} \) with \( \tau = 3\,\text{s} \). What is \( v_C(3) \)?
Question 3 of 5
The ODE \( \frac{dq}{dt} + \frac{1}{RC}\,q = 0 \) models which scenario?
Question 4 of 5
To solve \( \frac{dq}{dt} + \frac{1}{RC}\,q = \frac{V_0}{R} \), the integrating factor is:
Question 5 of 5
A discharging RC circuit has \( v_C(t) = 20\,e^{-5t} \). What are \( R \) and \( C \) if \( R = 200\,\Omega \)?