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.
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.
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
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.
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.
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.
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).
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.
| Time (multiples of τ) | Charging: V_C / E | Discharging: V_C / 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% |
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.
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. |
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 |
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.
Practice Problems
Lesson 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 V_C(t) = E·(1 − e^(−t/τ)) and during discharging follows V_C(t) = V₀·e^(−t/τ), 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.