DIFFERENTIAL EQUATIONS • APPLICATIONS OF FIRST-ORDER ODES

RC Circuit Models — RC Circuits as First-Order ODE Models

How a resistor and capacitor create a differential equation that predicts voltage over time.

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
Pieter van Musschenbroek invents one of the first capacitors — the Leyden jar — showing that electrical charge can be stored and released.
1827
Ohm's Law
Georg Simon Ohm publishes his law V = IR, providing the first precise mathematical relationship between voltage, current, and resistance in a circuit.
1845
Kirchhoff's Circuit Laws
Gustav Kirchhoff formulates his voltage and current laws, enabling systematic analysis of circuits with multiple components — the key tool for writing circuit equations.
1880s
RC Transient Analysis
Engineers begin analyzing the transient (time-varying) behavior of RC circuits using differential equations, discovering the exponential charging and discharging curves.
1940s–Present
Modern Electronics
RC circuits become fundamental building blocks in radios, computers, pacemakers, and touchscreens. The same ODE model from the 1800s still governs their design today.

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.

1

Ohm's Law

The voltage across a resistor equals current times resistance: VR = I × R. This tells us how much the resistor "pushes back" against current flow.
2

Capacitor Voltage–Charge Relation

The voltage across a capacitor is proportional to the charge stored: VC = Q / C. As charge Q builds up, voltage rises.
3

Current as Rate of Charge Flow

Current I is the rate at which charge flows: I = dQ/dt. This derivative is what makes the equation a differential equation.
4

Kirchhoff's Voltage Law (KVL)

The sum of all voltage rises and drops around any closed loop equals zero. This law lets us write one equation for the entire circuit.
5

The Time Constant τ = RC

The product of resistance (in ohms) and capacitance (in farads) gives the time constant τ (tau), measured in seconds. It sets the speed of charging and discharging.
KEY TAKEAWAY
Think of the capacitor like a water balloon being filled through a narrow hose. At first, water (current) rushes in quickly because the balloon is empty (low voltage). As the balloon fills up, the back-pressure increases and the flow slows down. The time constant τ = RC is like the combined effect of how narrow the hose is (R) and how big the balloon is (C). A bigger balloon or a narrower hose means it takes longer to fill.

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.

A series RC circuit with battery E, switch, resistor R, and capacitor C. Kirchhoff's Voltage Law around the loop gives us E = IR + Q/C, the starting point for our differential equation.

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.

KIRCHHOFF'S VOLTAGE LAW (CHARGING)
E = R · (dQ/dt) + Q/C
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)
Q(t) = C · E · (1 − e^(−t/(RC)))
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)
V_C(t) = E · (1 − e^(−t/τ)) where τ = RC
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)
I(t) = (E/R) · e^(−t/τ)
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"?
The equation is called first-order because the highest derivative that appears is dQ/dt — a first derivative. If we had a second derivative (like d²Q/dt²), it would be a second-order ODE. RC circuits with only one energy-storage element (the capacitor) always produce first-order equations.

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_C(t) = V₀ · e^(−t/τ)
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.
The cyan curve shows charging: voltage rises from 0 toward E. The pink curve shows discharging: voltage decays from V₀ toward 0. The dashed yellow line marks one time constant τ, where 63.2% of the change has occurred.
After about 5 time constants, the circuit is essentially fully charged or fully discharged.
Time (multiples of τ)Charging: V_C / EDischarging: V_C / V₀
0.0% (0)100.0% (V₀)
63.2%36.8%
86.5%13.5%
95.0%5.0%
99.3%0.7%
The 5τ Rule
Engineers commonly use the 5τ rule: after 5 time constants, the circuit has reached over 99% of its final value. For practical purposes, the transient behavior is considered complete at t = 5τ.

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 ValuesWe 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 SolutionThe 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 − e^(−t/τ)) = 12·(1 − e^(−t/5)).
VC(t) = 12·(1 − e^(−t/5))
4
Step 4 — Find V_C at t = 5 sSubstitute t = 5 into the voltage formula: VC(5) = 12·(1 − e^(−5/5)) = 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.
V_C(5) ≈ 7.59 V
5
Step 5 — Find Current at t = 5 sThe current formula is I(t) = (E/R)·e^(−t/τ). 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

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.

The simple first-order RC model is powerful but has clear boundaries.
StrengthsLimitations
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.
🔗 CONTEXT IN THE BROADER FIELD
The RC circuit is the "hello world" of differential equations in engineering. Mastering it gives you the template for analyzing any first-order system — from Newton's law of cooling (temperature decays exponentially) to radioactive decay (amount of substance decreases exponentially). The math is identical; only the physical interpretation of the variables changes.

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.

Adding an inductor transforms the first-order RC model into a second-order RLC model.
FeatureRC Circuit (First-Order)RLC Circuit (Second-Order)
ComponentsResistor + CapacitorResistor + Inductor + Capacitor
ODE OrderFirst-orderSecond-order
BehaviorExponential growth/decay (no oscillation)Can oscillate (underdamped), decay (overdamped), or both
Key Parameterτ = RC (time constant)ω₀ = 1/√(LC) (natural frequency), ζ (damping ratio)
Real-World UseTiming circuits, low-pass filters, sensor smoothingRadio 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

PROBLEM 1CONCEPTUAL
In an RC charging circuit, the capacitor voltage rises quickly at first and then levels off. Explain, using the differential equation R·(dQ/dt) + Q/C = E, why the rate of charging slows down as the capacitor fills up.
PROBLEM 2BASIC CALCULATION
A 9 V battery is connected to a series RC circuit with R = 20 kΩ and C = 50 μF. Calculate the time constant τ and determine the voltage across the capacitor at t = 1 second, assuming VC(0) = 0.
PROBLEM 3INTERMEDIATE
A capacitor in an RC circuit is discharging from an initial voltage of 20 V. The time constant is τ = 4 seconds. How long does it take for the voltage to drop below 5 V? (Hint: set VC(t) = 5 and solve for t.)
PROBLEM 4APPLIED
A photographer's flash unit uses an RC circuit to charge a capacitor before firing. The flash needs the capacitor to reach at least 90% of the battery voltage (300 V) before it can fire. If C = 200 μF and R = 10 kΩ, how long must the photographer wait between flashes?
PROBLEM 5CRITICAL THINKING
Two RC circuits have the same time constant τ = 3 seconds. Circuit A has R = 30 kΩ and C = 100 μF. Circuit B has R = 3 kΩ and C = 1000 μF. Both are charged by a 12 V battery from zero. Compare the voltage curves VC(t), the current curves I(t), and the total energy stored in each fully charged capacitor. What does this tell you about the relationship between τ and other circuit properties?

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.

Varsity Tutors • Differential Equations • RC Circuit Models — RC Circuits as First-Order ODE Models