Lessons · circuits

Charging a capacitor: the current is the slope of the charge

Regime 2 — calculus does what algebra cannot. The acceleration isn't constant, so the algebra formulas don't apply; calculus is the only road in, and SymPy proves the closed form solves the equation of motion.

Regime 2 · calculus does more Math machine-derived & checked by SymPy 2 modeling assumptions (author-asserted)

A capacitor C=1C = 1 mF charges through a resistor R=1R = 1 kΩ\Omega from a V=10V = 10 V battery. The charge Q(t)Q(t) climbs toward CVCV while the current I(t)I(t) fades from V/RV/R to zero. Plotted as a stacked QQtt over IItt, the slope of the charge is the current at every instant — the same slope↔value pivot as position and velocity, one domain over. Drag RR and watch the time constant τ=RC\tau = RC stretch both curves.

Time constant τ=RC\tau = RC
1 s
Final charge Q=CVQ_\infty = CV
0.01 C
Initial current I0=V/RI_0 = V/R
0.01 A
Charge after one τ\tau (63%\approx 63\%)
0.006321 C
Kirchhoff's voltage law is a differential equation
V=IR+QC,I=dQdt  RdQdt+QC=VV = IR + \frac{Q}{C}, \quad I = \frac{dQ}{dt} \ \Longrightarrow\ R\,\frac{dQ}{dt} + \frac{Q}{C} = V

Around the loop, the battery EMF equals the resistor drop IRIR plus the capacitor voltage Q/CQ/C. Because the current is the rate of change of charge, I=dQ/dtI = dQ/dt, this is a first-order differential equation for Q(t)Q(t) — not an algebra equation.

check I=dQ/dtI = dQ/dt; check RdQ/dt+Q/C=VR\,dQ/dt + Q/C = V; check Q=0tIdtQ = \int_0^t I\,dt'; τ=RC\tau = RC (63\% at t=τt=\tau); steady state QCVQ\to CV, I0I\to 0

  • The current is the slope of the charge: I=dQdtI = \dfrac{dQ}{dt} — exactly as velocity is the slope of position. [structural]
  • The charge solves Kirchhoff's voltage law V=IR+Q/CV = IR + Q/C, i.e. the RC equation RdQdt+QC=VR\,\dfrac{dQ}{dt} + \dfrac{Q}{C} = V. [structural]
  • The charge is the accumulated current — the area under II: Q(t)=0tIdtQ(t) = \int_0^t I\,dt'. [structural]
  • The time constant is τ=RC\tau = RC: at t=τt = \tau the capacitor is 11/e63%1 - 1/e \approx 63\% charged, Q(τ)=CV(1e1)Q(\tau) = CV(1 - e^{-1}). [structural]
  • The steady state is full charge and no current: QCVQ \to CV and I0I \to 0 as tt \to \infty. [structural]

Dimensional homogeneity: checked by SymPy (holds).

Common misconception: “The capacitor charges at a steady rate, so the current stays constant while it fills up.

It does not. The current is largest at the start and decays exponentially as the capacitor fills: I(t)=(V/R)et/RCI(t) = (V/R)\,e^{-t/RC}. As charge accumulates, the capacitor's voltage Q/CQ/C rises and opposes the battery, leaving a smaller voltage across the resistor and so a smaller current. Because the current is the slope of the charge, I=dQ/dtI = dQ/dt, a decaying current is exactly why the charging curve bends over and levels off instead of climbing in a straight line. Watch the panels: where QQ is steepest (at t=0t=0) the II curve is highest; where QQ flattens, II approaches zero.

Modeling assumptions — author-asserted, disclosed not discharged
  • An ideal series RC circuit: a constant-EMF battery, an ohmic resistor, and an ideal capacitor, with no lead resistance or dielectric leakage.
  • The capacitor starts uncharged, Q(0)=0Q(0) = 0, so the initial current is the full I0=V/RI_0 = V/R (the capacitor behaves momentarily like a wire).

The stacked graph, fully annotated

A static rendering (Matplotlib) at the default parameters — the interactive version is in the Graph tab above.

2026-06-27T05:45:53.214189 image/svg+xml Matplotlib v3.11.0, https://matplotlib.org/