Before and after
A 12 V source, a switch, R = 28 Ω, a coil L = 25 mH and a capacitor C = 10 µF form one loop. C is empty. Closing the switch applies a sudden 12 V step. How does vC reach 12 V?
A capacitor's voltage and a coil's current cannot jump. So at t = 0+, vC = 0 and i = 0, which makes vR = 0. KVL puts all 12 V across the coil: vL = 12 V, so di/dt = Vs/L = 480 A/s.
Long after closing, nothing changes. A steady coil acts as a plain wire (vL = 0) and a full capacitor as a gap (i = 0). So the final values are i = 0 and vC = 12 V. This is the forced response.
The equation
Now watch it in slow motion. The source pushes charge round the loop. The coil makes the current grow smoothly, the capacitor fills, and the dots speed up, slow down and briefly turn round before everything settles.
Round the loop the drops add up to the source: vR + vL + vC = Vs. With i = C dvC/dt, vR = Ri and vL = L di/dt, this becomes LC v″ + RC v′ + v = Vs. The tag sums them.
Write vC = 12 + vn(t). The forced part 12 V solves the equation alone, so vn obeys the source-free one. Its roots are s = −α ± √(α² − ω0²), with α = R/2L = 560 s⁻¹ and ω0 = 1/√(LC) = 2000 rad/s.
The response
α = 560 is less than ω0 = 2000, so s = −560 ± j1920. Using vC(0) = 0 and dvC/dt(0) = 0 gives vC(t) = 12 − e^(−560t)(12 cos 1920t + 3.5 sin 1920t) V. Watch the marker trace it.
The current i = C dvC/dt = 250 e^(−560t) sin 1920t mA. The coil keeps charge moving after vC reaches 12 V, so vC overshoots to 16.8 V at t = π/ωd = 1.64 ms, 40 % above its final value. There i turns round.
All three curves end at 12 V; R only sets how. At 28 Ω vC rings. At R = 2√(L/C) = 100 Ω it is critically damped: the fastest rise with no overshoot. At 125 Ω it is overdamped and creeps up more slowly.
The source moves charge CVs at 12 V, so it delivers CVs² = 1.44 mJ. The full capacitor keeps ½CVs² = 0.72 mJ. The other 0.72 mJ becomes heat in R, whatever the value of R.
What is happening
# step 1/10 · setup # about: Source Vs, Switch, Resistor R, Inductor L, Capacitor C Vs 12 V DC source (the step) R 28 Ω turns energy into heat L 25 mH stores energy in its magnetic field C 10 µF stores energy in its electric field before t = 0: switch open, vC = 0, i = 0 "Step response": the source switches on at t = 0 and stays on. Compare the natural response, where no source drives the loop.
The figure is an ideal circuit: a 12 V DC source, R = 28 Ω, L = 25 mH, C = 10 µF starting empty, an ideal switch closing at t = 0 and wires with no resistance. Every voltage, current and energy shown is computed from these values by the lesson's model. One reference direction for the loop current, out of the source's + terminal and into the capacitor's + plate, gives R, L and C the passive sign convention. The source then absorbs −Vs·i: it supplies power while i is positive.