Before the switch
A 12 V source feeds a capacitor branch (R1 and C) and an inductor branch (R2 and L) through a 2 Ω soft-start resistor Rs. Switch S has been open for a long time. At t = 0 it closes and shorts out Rs.
After a long time nothing changes any more, so every derivative is zero. A capacitor's current is i = C·dv/dt = 0: it acts as an open circuit. An inductor's voltage is v = L·di/dt = 0: it acts as a short circuit.
Just before the switch moves (t = 0−), C is open and L is a short. One loop carries iL = 12 / (2 + 4) = 2 A, so node a sits at 8 V. R1 carries nothing, so vC = 8 V too.
The instant after: t = 0+
A step in vC would need infinite current, since i = C·dv/dt, and a step in iL would need infinite voltage. Stored energy, ½Cv² and ½Li², cannot change in zero time. So vC(0+) = 8 V and iL(0+) = 2 A.
At t = 0 the switch closes and shorts Rs. Node a jumps from 8 V straight to 12 V. Node voltages and resistor currents are free to jump; only vC and iL must carry on smoothly.
For the instant t = 0+, replace the capacitor by a 8 V source and the inductor by a 2 A source. What is left is a resistive circuit, which Ohm's law and Kirchhoff's laws solve directly.
R1 now drops 12 − 8 = 4 V, so iC(0+) = 4 / 4 = 1 A, up from 0. R2 drops 4 × 2 = 8 V, so the inductor sees vL(0+) = 12 − 8 = 4 V, up from 0.
Current into node a must equal current out. Rs carries 0 A, because both its ends are at 12 V. The switch brings iS = 1 + 2 = 3 A, which splits into 1 A for the capacitor and 2 A for the inductor.
The jumps set the slopes. dvC/dt(0+) = iC/C = 1 / 250 µF = 4000 V/s, or 4 V per ms. diL/dt(0+) = vL/L = 4 / 8 mH = 500 A/s. The dashed tangents show where each curve starts heading.
Long after
After a long time it is DC again: C open, L short. No current flows in R1, so vC(∞) = 12 V. The inductor current is iL(∞) = 12 / 4 = 3 A, and vL(∞) = 0.
Each quantity moves from its 0+ value to its ∞ value: x(t) = x(∞) + [x(0+) − x(∞)]·e^(−t/τ). Here τC = R1·C = 1 ms and τL = L/R2 = 2 ms. After about five time constants the change is over.
The working
# step 1/11 · circuit source Vs = 12 V soft-start Rs = 2 Ω (switch S across it) C branch R1 = 4 Ω, C = 250 µF L branch R2 = 4 Ω, L = 8 mH S open for a long time, closes at t = 0. Question: what is every voltage and current just before, just after, and long after the switch moves?
The source and switch are ideal and the parts are illustrative values chosen for round numbers: τC = 1 ms and τL = 2 ms. Every number in the figure is computed from this model.