Sub topic 6
Finding v(0) and v'(0) from circuit conditions
This chapter assumes you can write the series RLC differential equation for the capacitor voltage. It also assumes you know the forced plus natural decomposition and basic circuit laws. The goal is to turn the state of the circuit just before the step into the two numbers the solution needs: v(0) and v'(0).
Why a second-order response needs two conditions
The capacitor-voltage equation of a series RLC circuit is second order:
v'' + 2α v' + ω0² v = ω0² Vs
Its solution has two unknown constants, so you need two initial conditions. Those are the value v(0) and the slope v'(0). Both come from the energy-storage elements, because their state cannot jump when the source steps.
Step 1: Use continuity
A capacitor voltage and an inductor current are continuous across t = 0. With a finite source, so is the state just after the step:
- v(0⁺) = v(0⁻), the capacitor voltage just before the step.
- i(0⁺) = i(0⁻), the inductor current just before the step.
Other quantities, such as the resistor voltage or the inductor voltage, can jump. Do not carry them across the step.
Step 2: Get the slope from the capacitor current
The slope of v is not given directly. Use the capacitor relation i = C dv/dt. In a series loop, the capacitor current equals the inductor current, so:
v'(0⁺) = i(0⁺) / C
If the inductor carried no current before the step, then v'(0⁺) = 0. The capacitor voltage starts flat even though the source has jumped. The inductor opposes the sudden change in current, so the voltage across it absorbs the whole step at t = 0⁺.
Step 3: Fit the constants
Write the total response as the forced part plus the natural part:
v(t) = Vs + vn(t)
The forced part is the final value, Vs. The natural part carries the unknown constants. Its initial conditions are shifted by the forced part:
- vn(0) = v(0) − Vs
- vn'(0) = v'(0), because Vs is constant and has zero derivative.
This shift is the most common source of errors. Apply the conditions to the natural part, or add Vs back before you match v(0).
Worked example
A series circuit has R = 20 Ω, L = 1 mH, C = 1 µF and Vs = 10 V. The capacitor is uncharged and the inductor current is zero before the step.
- Continuity gives v(0) = 0 V and i(0) = 0 A.
- The slope is v'(0) = 0 / C = 0 V/s.
- For the natural part, vn(0) = 0 − 10 = −10 V and vn'(0) = 0.
Here α = R/(2L) = 10 000 rad/s and ω0 = 31 623 rad/s, so the circuit is underdamped. Write vn = e^(−αt)(B1 cos ωd t + B2 sin ωd t). Then:
- vn(0) = B1 = −10.
- vn'(0) = −α B1 + ωd B2 = 0, so B2 = α B1 / ωd = −10 α / ωd.
This matches the coefficient (α/ωd) in the code examples for the underdamped case.
Nonzero initial energy
Suppose the capacitor starts at V0 = 2 V and the inductor carries I0 = 0.05 A. Then:
- v(0) = 2 V.
- v'(0) = I0 / C = 0.05 / 10⁻⁶ = 50 000 V/s.
The natural part then starts at vn(0) = 2 − 10 = −8 V with slope 50 000 V/s. The same steps apply, with different numbers.
def initial_conditions(Vs, v_before, i_before, C):
"""Return (vn0, dvn0) for the natural part of the capacitor voltage."""
v0 = v_before # capacitor voltage is continuous
dv0 = i_before / C # capacitor current equals series inductor current
return v0 - Vs, dv0
print(initial_conditions(10, 0.0, 0.0, 1e-6))
print(initial_conditions(10, 2.0, 0.05, 1e-6))Check your signs
The direction of the current matters. Take i positive in the direction that charges the capacitor, which is the direction that makes v increase. If the given current flows the other way, use a negative value of I0.
Exercise
A series RLC circuit with C = 2 µF has a 12 V step source. Before the step the capacitor holds 3 V and the inductor current is 0.01 A, in the direction that charges the capacitor. Find v(0), v'(0), and the initial conditions of the natural part vn.
Show answer
v(0) = 3 V. v'(0) = i/C = 0.01 / (2×10⁻⁶) = 5000 V/s. The natural part has vn(0) = 3 − 12 = −9 V and vn'(0) = 5000 V/s.