SECTION 1
Historical Context & Motivation
Every time you charge your phone, listen to a speaker, or adjust the brightness on a screen, electrical circuits are doing work behind the scenes. Among the simplest yet most powerful circuits in all of electronics is the RC circuit — a combination of a resistor (R) and a capacitor (C). Understanding how voltage and current change over time in an RC circuit turns out to be a perfect real-world application of first-order ordinary differential equations (ODEs). The story of RC circuits connects the history of electricity, mathematical modeling, and modern technology.
1745 • The Leyden Jar
1827 • Ohm's Law
1845 • Kirchhoff's Circuit Laws
1880s • RC Transient Analysis
1940s–Present • Modern Electronics
The central question this lesson answers is: How does the voltage across a capacitor change over time, and why does a first-order ODE describe this behavior so perfectly? By the end, you'll be able to write the differential equation for any RC circuit, solve it, and interpret the solution.
SECTION 2
Core Principles & Definitions
Before diving into the math, let's lock down the key physical ideas. An RC circuit contains just two essential components connected in a loop with a voltage source (like a battery). The resistor opposes the flow of current, and the capacitor stores electrical energy by accumulating charge on its plates. These two components together create a circuit whose behavior changes over time — a transient response that is modeled by a first-order ODE.
Ohm's Law
Capacitor Voltage–Charge Relation
Current as Rate of Charge Flow
Kirchhoff's Voltage Law (KVL)
The Time Constant τ = RC
KEY TAKEAWAY
SECTION 3
RC Circuit Diagram
The diagram below shows a basic series RC circuit with a battery (voltage source E), a resistor R, a capacitor C, and a switch. When the switch closes, current begins to flow and the capacitor charges. Study the layout carefully — the labels show where each voltage drop occurs.
Notice how each component has its own voltage label. The resistor's voltage VR equals I × R (Ohm's law), and the capacitor's voltage VC equals Q/C. Kirchhoff's Voltage Law tells us these two drops must add up to the battery voltage E. That single statement — E = IR + Q/C — is the equation we'll convert into a first-order ODE by replacing I with dQ/dt.
SECTION 4
Mathematical Framework
Now we translate the physics into mathematics. Starting from Kirchhoff's Voltage Law for the charging circuit, we replace the current I with dQ/dt (since current is the rate of charge flow). This substitution converts our circuit equation into a first-order linear ODE — an equation involving the unknown function Q(t) and its first derivative.
KIRCHHOFF'S VOLTAGE LAW (CHARGING)
E = battery voltage (volts), R = resistance (ohms), C = capacitance (farads), Q = charge on capacitor (coulombs), t = time (seconds). This is a first-order linear ODE in Q(t).
To solve this, we rearrange into standard form and use an integrating factor or separation of variables. Let's rewrite the equation as dQ/dt + Q/(RC) = E/R. The quantity RC appears naturally and is our time constant τ. The general solution involves an exponential function.
CHARGE SOLUTION (CHARGING)
Starting from Q(0) = 0 (uncharged capacitor). The charge rises exponentially toward the maximum value C × E. The rate is governed by the time constant τ = RC.
Since voltage across the capacitor is VC = Q/C, we can divide both sides by C to get the voltage as a function of time. Similarly, we can find the current by differentiating Q(t).
VOLTAGE ACROSS CAPACITOR (CHARGING)
VC starts at 0 and approaches E as t → ∞. After one time constant (t = τ), the voltage reaches about 63.2% of E.
CURRENT IN CIRCUIT (CHARGING)
Current starts at its maximum value E/R (the instant the switch closes) and decays exponentially to zero. The current and voltage curves are complementary — as one rises, the other falls.
Why "First-Order"?
SECTION 5
Charging vs. Discharging Curves
RC circuits have two fundamental modes: charging (when connected to a voltage source) and discharging (when the source is removed and the capacitor releases its stored energy through the resistor). Both behaviors follow exponential curves, but they mirror each other. The discharging ODE is even simpler — with no battery, KVL gives us R·(dQ/dt) + Q/C = 0, and the solution is a pure exponential decay.
DISCHARGING VOLTAGE
V₀ is the initial voltage on the capacitor at t = 0. The voltage decays exponentially, dropping to about 36.8% of V₀ after one time constant τ = RC.
| Time (multiples of τ) | Charging: / E | Discharging: / V₀ |
|---|---|---|
| 0τ | 0.0% (0) | 100.0% (V₀) |
| 1τ | 63.2% | 36.8% |
| 2τ | 86.5% | 13.5% |
| 3τ | 95.0% | 5.0% |
| 5τ | 99.3% | 0.7% |
After about 5 time constants, the circuit is essentially fully charged or fully discharged.
The 5τ Rule
SECTION 6
Worked Example — Charging an RC Circuit
Let's work through a complete example: a 12 V battery charges a capacitor of 100 μF (microfarads) through a 50 kΩ (kilohm) resistor. The capacitor starts with zero charge. We want to find the time constant, the voltage at t = 5 seconds, and the current at t = 5 seconds.
Charging a 100 μF Capacitor Through 50 kΩ
- 1
Step 1 — Identify Given Values
We have E = 12 V, R = 50 kΩ = 50,000 Ω, C = 100 μF = 100 × 10⁻⁶ F = 0.0001 F. The initial condition is Q(0) = 0, meaning VC(0) = 0 V.E = 12 V, R = 50,000 Ω, C = 0.0001 F - 2
Step 2 — Calculate the Time Constant τ
The time constant is τ = R × C = 50,000 Ω × 0.0001 F = 5 seconds. This means the circuit will reach about 63% of 12 V after 5 seconds.τ = 5 seconds - 3
Step 3 — Write the ODE and Solution
The governing equation is R·(dQ/dt) + Q/C = E, or equivalently dQ/dt + Q/(RC) = E/R. The voltage solution is VC(t) = E·(1 − ) = 12·(1 − ).VC(t) = 12·(1 − ) - 4
Step 4 — Find at t = 5 s
Substitute t = 5 into the voltage formula: VC(5) = 12·(1 − ) = 12·(1 − e⁻¹) = 12·(1 − 0.3679) = 12 × 0.6321 ≈ 7.59 V. As expected, after one time constant, the capacitor reaches about 63.2% of the supply voltage.(5) ≈ 7.59 V - 5
Step 5 — Find Current at t = 5 s
The current formula is I(t) = (E/R)·. At t = 5 s: I(5) = (12/50,000)·e⁻¹ = 0.00024 × 0.3679 ≈ 0.0000883 A ≈ 88.3 μA. The current has dropped to about 36.8% of its initial value of 240 μA.I(5) ≈ 88.3 μA
SECTION 7
Strengths & Limitations of the RC Model
The first-order ODE model of an RC circuit is elegant and widely used, but like any mathematical model, it relies on certain assumptions. Understanding where the model works — and where it breaks down — is essential for applying it correctly.
| Strengths | Limitations |
|---|---|
| Exact analytical solution — the exponential form gives a closed-form answer with no approximation needed. | Assumes ideal components — real resistors and capacitors have tolerances and frequency-dependent behavior. |
| Only one parameter (τ = RC) controls the entire time behavior, making predictions simple. | Only models circuits with one energy-storage element. Adding an inductor requires a second-order ODE. |
| Applies to both charging and discharging with small formula variations. | Assumes constant source voltage E. If E changes with time, the ODE becomes harder to solve. |
| Scales to many applications: filters, timers, sensor circuits, biological cell membranes. | Ignores parasitic effects like wire resistance, stray capacitance, and electromagnetic interference. |
The simple first-order RC model is powerful but has clear boundaries.
CONTEXT IN THE BROADER FIELD
SECTION 8
Connection to Advanced Theory
The RC circuit is your entry point into a larger world of circuit analysis and differential equations. When you add an inductor (a coil that stores energy in a magnetic field) to the circuit, the equation becomes second-order, producing oscillating behavior — much like a swinging pendulum. These RLC circuits are the foundation of radio tuning, speakers, and wireless communication.
| Feature | RC Circuit (First-Order) | RLC Circuit (Second-Order) |
|---|---|---|
| Components | Resistor + Capacitor | Resistor + Inductor + Capacitor |
| ODE Order | First-order | Second-order |
| Behavior | Exponential growth/decay (no oscillation) | Can oscillate (underdamped), decay (overdamped), or both |
| Key Parameter | τ = RC (time constant) | ω₀ = 1/√(LC) (natural frequency), ζ (damping ratio) |
| Real-World Use | Timing circuits, low-pass filters, sensor smoothing | Radio tuners, audio crossovers, resonance circuits |
Adding an inductor transforms the first-order RC model into a second-order RLC model.
In more advanced courses, you'll also encounter Laplace transforms, which convert differential equations into algebraic equations — making even complex RLC circuits solvable with algebra. You'll also learn about AC (alternating current) circuits, where the driving voltage is sinusoidal. The RC first-order model you've learned here is the essential building block for all of these topics.
SECTION 9
Practice Problems
Question 1: CONCEPTUAL
Show answer
Question 2: BASIC CALCULATION
Show answer
Question 3: INTERMEDIATE
Show answer
Question 4: APPLIED
Show answer
Question 5: CRITICAL THINKING
Show answer
SUMMARY
Lesson Summary
Summary
An RC circuit — a resistor and capacitor connected in series — is one of the most important real-world applications of first-order ordinary differential equations. Applying Kirchhoff's Voltage Law and substituting I = dQ/dt gives the ODE R·(dQ/dt) + Q/C = E. The solution reveals that voltage across the capacitor during charging follows (t) = E·(1 − ) and during discharging follows (t) = V₀·, where the time constant τ = RC controls how fast the process occurs.
After one time constant, about 63.2% of the total change has occurred; after five time constants, the process is over 99% complete. The same exponential pattern appears in many other first-order systems — from Newton's law of cooling to radioactive decay — making the RC circuit model a powerful template for understanding how nature approaches equilibrium.