Sub topic 2
Deriving the second-order equation for the series RLC circuit
This chapter derives the differential equation that governs a series RLC circuit after a DC source is switched on. It assumes you know Kirchhoff's voltage law (KVL), the v-i relations of resistors, inductors and capacitors, and first-order RC and RL step responses. Knowing how to solve linear constant-coefficient differential equations helps, but the chapter does not require it. It stops at the equation. The following chapters split it into forced and natural parts and solve it.
The circuit and what we want
A DC source of value Vs is connected at t = 0 to a resistor R, an inductor L and a capacitor C, all in series. A single loop has a single current, so the same current i(t) flows through all three elements.
We choose the capacitor voltage v(t) as the unknown and derive an equation for it. Then we check that the same method applied to the current gives a related equation.
The derivation is valid for t > 0, after the switch has closed and the source is constant at Vs.
Step 1: Write KVL around the loop
For t > 0 the source voltage equals the sum of the three element voltages:
Vs = vR + vL + v
Here vR is the resistor voltage, vL is the inductor voltage and v is the capacitor voltage. All voltages use the same loop direction, with the current i entering the positive terminal of each passive element.
Step 2: Replace each element voltage with a current relation
The resistor and inductor laws give:
- vR = R i
- vL = L di/dt
The capacitor law is i = C dv/dt. This relation lets us express the current in terms of the unknown v.
KVL now reads:
Vs = R i + L di/dt + v
This equation mixes two unknowns, i and v. We need to eliminate one of them.
Step 3: Eliminate the current
Because i = C v', where the prime means d/dt, the derivative of the current is di/dt = C v''. Substituting both into the KVL equation gives:
Vs = R C v' + L C v'' + v
Reordering by derivative order:
LC v'' + RC v' + v = Vs
This is a second-order, linear, constant-coefficient, non-homogeneous ordinary differential equation. "Second-order" comes from the two energy-storing elements, L and C, and "non-homogeneous" from the constant Vs on the right.
Step 4: Put it in standard form
Divide by LC so that the coefficient of v'' is 1:
v'' + (R/L) v' + (1/(LC)) v = Vs/(LC)
Two combinations appear, and each gets its own name:
- α = R/(2L), the neper frequency, in rad/s.
- ω0 = 1/√(LC), the undamped resonant frequency, in rad/s.
In terms of these, R/L = 2α and 1/(LC) = ω0². The standard form is:
v'' + 2α v' + ω0² v = ω0² Vs
The next chapters study α and ω0 in detail. For now, treat them as shorthand. The factor 2 in 2α is there so that the characteristic roots later come out as −α ± √(α² − ω0²).
Check units and limiting cases
Before trusting an equation, test it. These checks catch most algebra slips.
Units: every term in the standard form must have units of volts per second squared. Here is the check term by term.
- R/L has units ohm/henry = 1/s, so (R/L) v' has units of 1/s times V/s, which is V/s².
- 1/(LC) has units of 1/s², so (1/(LC)) v is V/s².
- Vs/(LC) is also V/s².
Limiting cases:
- Steady state: if v is constant after a long time, then v' = v'' = 0 and the equation gives v = Vs. This matches physical reasoning, since a capacitor in DC steady state carries no current and so there is no drop across R or L.
- R = 0: the equation reduces to v'' + ω0² v = ω0² Vs. That is an undamped oscillator around Vs, which is what an ideal LC loop does.
- Large R: the v'' term becomes less important, and the equation approaches the first-order RC equation RC v' + v = Vs.
The third check is useful because it shows how this equation relates to first-order circuits that you already know.
The same equation for the current
We could have chosen i as the unknown. Differentiate the KVL equation Vs = R i + L i' + v once. The derivative of a constant Vs is zero, and v' = i/C, so:
L i'' + R i' + i/C = 0
Dividing by L gives:
i'' + 2α i' + ω0² i = 0
This has the same left side as the equation for v, but the right side is zero. The characteristic equation, and therefore the damping classification, is the same for both unknowns. This follows because the voltage and current in the loop are tied together by i = C v'.
The choice of unknown matters for initial conditions and for the final value. The table compares the common choices.
| Unknown | Equation for t > 0 | Final value | Continuous at t = 0? |
|---|---|---|---|
| Capacitor voltage v | v'' + 2α v' + ω0² v = ω0² Vs | Vs | Yes |
| Loop current i | i'' + 2α i' + ω0² i = 0 | 0 | Yes |
| Resistor voltage vR | vR'' + 2α vR' + ω0² vR = 0 | 0 | No, it jumps if i(0+) differs from i(0−) times R, and in general it follows i |
| Inductor voltage vL | vL'' + 2α vL' + ω0² vL = 0 | 0 | No |
The resistor row follows because vR = R i, so it inherits the current's equation. The inductor row follows by differentiating again, since vL = L i'. Inductor voltage can jump at the switching instant. Capacitor voltage and inductor current cannot, which is why they are the usual choice.
Why the equation needs two initial conditions
A second-order equation has two arbitrary constants in its general solution, so it needs two initial conditions. They come from the energy-storage elements:
- Capacitor voltage cannot jump, so v(0+) = v(0−).
- Inductor current cannot jump, so i(0+) = i(0−). Since i = C v', this gives v'(0+) = i(0−)/C.
A common error is to take v'(0+) as zero by default. That holds only when the inductor current just before the step is zero. A later chapter works through the initial conditions in detail. The point here is that the derivative condition comes from the current, through the capacitor law, and not from the voltage itself.
Check the derivation by simulation
You can test the equation without solving it. Write it as two first-order equations, the pair that the derivation passed through:
- dv/dt = i/C
- di/dt = (Vs − R i − v)/L
Step this pair forward in small time steps and watch v(t). For R = 20 Ω, L = 1 mH, C = 1 µF and Vs = 10 V, the circuit rings and overshoots. The program below integrates with a semi-implicit Euler step, which updates i first and then uses the new i to update v. This variant is stable for oscillating circuits where plain Euler can slowly grow the oscillation.
R, L, C, Vs = 20.0, 1e-3, 1e-6, 10.0
dt = 1e-7 # 0.1 microsecond step
steps = 10000 # simulate 1 ms
v, i = 0.0, 0.0 # zero initial capacitor voltage and inductor current
v_peak, t_peak = 0.0, 0.0
for n in range(1, steps + 1):
i += dt * (Vs - R * i - v) / L # di/dt from KVL
v += dt * i / C # dv/dt from the capacitor law
if v > v_peak:
v_peak, t_peak = v, n * dt
print(f"peak v = {v_peak:.2f} V at {t_peak * 1e6:.1f} us")
print(f"v at 1 ms = {v:.3f} V")The output should show a peak close to 13.5 V near 105 µs, and a value of 10.000 V at 1 ms. Both agree with the equation: the final value is Vs, and the peak is above Vs because the circuit is underdamped here. The peak size and time are derived in a later chapter.
Common errors
- Forgetting that the right side is Vs/(LC) after dividing, not Vs. Keep the equation as LC v'' + RC v' + v = Vs until you divide, and divide every term, including the source.
- Writing the coefficient of v' as R/C or L/R. Recheck units: the coefficient of v' in the standard form must have units of 1/s.
- Applying the equation for t < 0. The equation holds only while the source is Vs. Before the step, the circuit is in whatever earlier state gives v(0−) and i(0−).
- Mixing signs in KVL when the source polarity or the current direction differs from the convention above. If you change the direction of i, the capacitor law changes sign too.
- Treating the equation for i as having a forced part. For a constant source, it does not.
Exercise
A series RLC circuit has R = 100 Ω, L = 10 mH, C = 10 µF and a 5 V step source applied at t = 0. Write the equation for the capacitor voltage in the form v'' + 2α v' + ω0² v = f, giving the numerical value of each coefficient and of f.
Show answer
R/L = 100/0.01 = 10,000 s⁻¹, so 2α = 10,000 and α = 5,000 rad/s. 1/(LC) = 1/(0.01 × 10⁻⁵) = 10⁷ s⁻², so ω0² = 10⁷ and ω0 ≈ 3,162 rad/s. The right side is ω0² Vs = 10⁷ × 5 = 5 × 10⁷ V/s². The equation is v'' + 10,000 v' + 10⁷ v = 5 × 10⁷.
Exercise
Starting from Vs = R i + L di/dt + v, show that the loop current satisfies i'' + 2α i' + ω0² i = 0 for t > 0. Why is the right side zero?
Show answer
Differentiate both sides with respect to time. The left side Vs is constant, so its derivative is 0. The right side gives R i' + L i'' + v'. Since i = C v', we have v' = i/C. Therefore L i'' + R i' + i/C = 0, and dividing by L gives i'' + (R/L) i' + (1/(LC)) i = 0, which is i'' + 2α i' + ω0² i = 0. The right side is zero because differentiating the constant source removes it.