RC, RL and RLC transients¶
About this chapter Charge, circuits and electromagnetic behavior
In this chapter
- RC, RL and RLC transients
- Prerequisites and scope
- State, algebraic variables and memory
- Initial conditions
- Final-value reasoning
- First-order canonical response
- Series RC charging circuit
- RC discharge
- RC energy accounting
- General first-order RC time constant
- Series RL energization
- RL decay
- General first-order RL time constant
- Piecewise switching procedure
- Second-order series RLC equation
- Damping ratio
- Overdamped response
- Critical damping
- Underdamped response
- Lossless LC oscillation
- Forced second-order response
- Initial conditions in RLC circuits
- State-space formulation
- Step response metrics
- Q factor preview
- Natural response and poles
- Laplace-transform preview
- Convolution and arbitrary forcing
- Numerical time integration
- Stiffness and implicit methods
- Companion models
- Discrete simulation state
- Complexity and sparsity
- Energy validation
- Switching and impulse boundaries
- Measurement bandwidth
- Relation to digital timing
- Relation to power delivery
- Relation to ChrisOS
- Privilege, concurrency and ABI boundary
- Failure modes
- Validation evidence
- Current limitations
- Roadmap boundary
- Revision provenance
Prerequisites and scope¶
The prerequisite chapters established:
- Ohm's law and Kirchhoff's laws;
- capacitor relation (i_C=C,dv_C/dt);
- inductor relation (v_L=L,di_L/dt);
- capacitor voltage continuity for finite current;
- inductor current continuity for finite voltage;
- stored energies (U_C= frac12CV^2) and (U_L= frac12LI^2).
A transient is the time-domain evolution that occurs when a circuit's state or forcing changes.
Typical triggers include:
switch closes or opens
source steps to a new value
load current changes
initially stored energy is released
control system changes a converter state
This chapter treats linear lumped circuits with constant R, L and C unless stated otherwise. Nonlinear semiconductor switching, distributed transmission lines and regulator control loops require additional models.
No current ChrisOS implementation is asserted here.
State, algebraic variables and memory¶
A resistor is algebraic:
Its terminal variables at one instant do not require a stored previous value in the ideal model.
A capacitor and inductor are dynamic:
Their energy-storage variables carry state across time.
A convenient state choice is
because these variables obey continuity constraints under finite ordinary excitation.
The complete network still obeys KCL and KVL at every time.
Initial conditions¶
Transient analysis requires the state immediately before switching.
For an ideal capacitor:
For an ideal inductor:
These equalities do not imply every voltage or current is continuous.
For example:
- resistor voltage may jump if current jumps;
- capacitor current may jump while voltage remains continuous;
- inductor voltage may jump while current remains continuous.
The switching topology at (t<0) and (t>0) may differ, so the circuit must be analyzed on each side of the switching event.
Final-value reasoning¶
Before solving a first-order DC switching problem, it is often useful to determine the expected final state.
For a stable circuit under constant DC excitation as (t oinfty):
This identifies (v_C(infty)) or (i_L(infty)) without solving the differential equation first.
The rule applies only to DC steady state. It does not say capacitors are always open or inductors are always short.
First-order canonical response¶
A stable linear first-order state (x(t)) driven from initial value (x_0) toward final value (x_f) has the form
where ( au>0) is the time constant.
This separates the response into
At (t= au), the distance to the final value has fallen to
of its initial distance.
Useful remaining fractions are approximately:
| Time | Remaining natural component |
|---|---|
| (1 au) | 36.8% |
| (2 au) | 13.5% |
| (3 au) | 5.0% |
| (4 au) | 1.83% |
| (5 au) | 0.674% |
"Settled after five time constants" is therefore an engineering approximation, not exact equality.
Series RC charging circuit¶
Consider a voltage source (V_s), resistor (R) and capacitor (C) in series.
KVL gives
with
therefore
For constant (V_s), the time constant is
and the solution is
For an initially uncharged capacitor,
The current is
For (v_C(0)=0),
The largest ideal current occurs immediately after the step because the capacitor voltage cannot jump.
RC discharge¶
For a capacitor initially at (V_0) discharging through (R) with no independent source,
so
and, under a chosen passive orientation,
The negative sign means the current direction is opposite the reference chosen for capacitor charging.
Stored energy decays as
The energy decays twice as fast in exponent because it depends on voltage squared.
RC energy accounting¶
Charging an ideal capacitor from an ideal voltage source (V_s) through a resistor has a useful energy result.
The final capacitor energy is
The source delivers
for a zero-initial-voltage step through any positive (R).
The resistor dissipates the difference:
Under this ideal step model, half the source energy is stored and half is dissipated, independent of the resistance value. (R) changes the time scale, not that total split.
Real drivers, finite source rise time, inductance and energy-recovery circuits can change the detailed energy flow.
General first-order RC time constant¶
A capacitor does not always see one explicit series resistor.
For a linear one-capacitor network, the natural time constant can often be found from the Thévenin resistance seen by the capacitor with independent sources zeroed:
Dependent sources remain active. If present, a test-source method may be required to find (R_{th}).
This is a network property, not merely the label on one resistor.
Series RL energization¶
Consider a DC source (V_s), resistor (R) and inductor (L) in series.
KVL gives
or
The time constant is
and
For an initially unenergized inductor,
The inductor voltage is
and for zero initial current,
The current starts continuously while the inductor voltage can change immediately.
RL decay¶
If an inductor carrying current (I_0) is connected across a resistance (R) with no independent source,
so
Stored magnetic energy decays as
and is dissipated in the resistor under the ideal model.
If the current path is broken without a controlled discharge path, the ideal inductor attempts to generate whatever voltage is required to maintain current continuity. Real circuits therefore require flyback, clamp or snubber paths when inductive energy is significant.
General first-order RL time constant¶
For a one-inductor linear network, the natural time constant can often be expressed as
where (R_{th}) is the resistance seen by the inductor after independent sources are zeroed, again preserving dependent sources.
The duality with RC is:
| RC | RL |
|---|---|
| state (v_C) | state (i_L) |
| ( au=R_{th}C) | ( au=L/R_{th}) |
| capacitor initially resembles voltage source equal to (v_C(0)) | inductor initially resembles current source equal to (i_L(0)) |
| final DC capacitor open | final DC inductor short |
Piecewise switching procedure¶
A disciplined switching analysis can use the following sequence:
1. solve the t < 0 circuit
2. determine v_C(0-) and i_L(0-)
3. apply continuity:
v_C(0+) = v_C(0-)
i_L(0+) = i_L(0-)
4. construct the t > 0 topology
5. determine the final stable DC state if it exists
6. derive the differential equation or time constant
7. solve the response
8. verify KCL/KVL and energy/power signs
Skipping step 2 or 3 is a common source of physically impossible solutions.
Second-order series RLC equation¶
Consider a source-free series RLC loop.
Using capacitor charge (q),
KVL gives
Dividing by (L),
Define
Then the characteristic equation is
with roots
The root structure determines the damping regime.
Damping ratio¶
Define
for the series RLC form.
Then:
| Regime | Condition | Pole behavior |
|---|---|---|
| overdamped | (zeta>1) | two distinct negative real poles |
| critically damped | (zeta=1) | repeated negative real pole |
| underdamped | (0<zeta<1) | complex-conjugate poles with negative real part |
| lossless | (zeta=0) | purely imaginary poles in ideal model |
A negative resistance or active network can move poles into the right half-plane and produce growth rather than decay.
Overdamped response¶
If
the roots (s_1,s_2) are distinct negative real numbers for (R,L,C>0).
The natural response has form
There is no oscillation.
The slower pole, the one closer to zero, dominates at long times.
Critical damping¶
If
the repeated pole is
and the natural response is
Critical damping marks the boundary between oscillatory and non-oscillatory behavior in the ideal second-order model.
It is often associated with fast monotonic settling, but the exact engineering optimum depends on the measured variable and performance criterion.
Underdamped response¶
If
define damped natural frequency
The natural response can be written
or equivalently as a decaying sinusoid with amplitude and phase.
Energy moves repeatedly between electric and magnetic fields while resistance removes part of it each cycle.
Lossless LC oscillation¶
For (R=0),
and the ideal source-free LC network satisfies
Its total energy
remains constant.
Real circuits always contain loss mechanisms, so indefinitely sustained passive LC oscillation is an idealization.
Forced second-order response¶
With an applied source, a second-order response contains both
The natural part depends on initial stored energy and the circuit poles.
The forced part depends on the source.
For a stable DC step, the natural response decays and the state approaches the forced final value.
For sinusoidal forcing, the long-term forced response motivates the phasor and impedance methods of the next chapter.
Initial conditions in RLC circuits¶
A second-order system generally requires two independent initial conditions.
A convenient pair is often
inherited from the pre-switch circuit.
The constants in the homogeneous solution are then found by applying these initial state values and, when necessary, derivatives obtained from KCL/KVL.
Arbitrarily setting all initial conditions to zero discards stored energy and can fundamentally change the response.
State-space formulation¶
A series RLC circuit can use state vector
For a source (u(t)), one possible form is
Therefore
This exposes the two energy-storage states and makes eigenvalues of the state matrix equal to the natural poles.
State-space representation is especially useful for simulation, control and multi-state systems.
Step response metrics¶
For underdamped systems, common response metrics include:
- rise time;
- peak time;
- percent overshoot;
- settling time.
For the normalized standard second-order form
with (0<zeta<1), the damped frequency is
and ideal percent overshoot for a canonical step response is
as a fraction of final value.
This formula applies to the standard second-order transfer form with the usual numerator assumptions; it must not be applied blindly to every measured variable in every RLC topology.
Q factor preview¶
For a lightly damped series RLC circuit,
and for the standard second-order denominator,
under the corresponding model.
High (Q) means relatively weak damping and more pronounced resonance.
The full frequency-domain meaning of (Q) is developed in the AC chapter.
Natural response and poles¶
The exponential modes of a linear circuit are determined by poles.
For first-order systems:
For stable passive RC/RL systems, the pole lies on the negative real axis.
For second-order RLC systems, poles may be:
Pole position provides a compact link between time-domain settling and frequency-domain behavior.
Laplace-transform preview¶
The Laplace transform converts differentiation into algebra while preserving initial conditions.
For example,
and
This allows circuit differential equations to become algebraic equations in (s).
The next chapter focuses on sinusoidal steady state using (s=jω); full transform methods are broader than phasor analysis.
Convolution and arbitrary forcing¶
For a stable linear time-invariant system with impulse response (h(t)), output can be written
over the appropriate interval.
This means step and impulse responses characterize how the system reacts to more general inputs through superposition.
Circuit simulation in the time domain may instead integrate the state equations directly.
Numerical time integration¶
A simulator cannot manipulate continuous time directly; it approximates state updates at discrete time points.
For a scalar first-order equation
explicit Euler uses
This method is simple but conditionally stable.
For an RC decay
explicit Euler gives
If (Delta t) is too large, the numerical solution can oscillate or diverge even though the physical system is stable.
Stiffness and implicit methods¶
Circuits with widely separated time constants can be stiff.
Example:
A method forced to use the fastest explicit stable step can become inefficient.
Implicit methods such as backward Euler trade per-step algebraic solve cost for stronger stability properties.
Trapezoidal integration offers different accuracy/damping behavior and can exhibit numerical ringing in some stiff switching problems.
Production transient simulation therefore requires method selection, local error estimation, adaptive step control and robust nonlinear iteration.
Companion models¶
Circuit simulators often transform dynamic devices into algebraic companion models at each time step.
Under backward Euler, a capacitor relation can become an equivalent conductance plus history source.
Starting from
approximate
so
At the current time step, (C/Delta t) acts like a conductance and the previous-state term becomes a known source contribution.
This allows transient analysis to reuse matrix assembly machinery.
Discrete simulation state¶
A generic transient solver may maintain:
ElementState {
accepted_state
trial_state
history_terms
}
SolverState {
time
proposed_dt
matrix
rhs
convergence_status
}
A safe step sequence is:
assemble trial system
↓
solve
↓
check residual/convergence
↓
estimate integration error
↓
accept or reject step
↓
publish accepted state only
Rejected steps must not overwrite the last accepted physical state.
These are general numerical-solver principles, not current ChrisOS structures.
Complexity and sparsity¶
For a circuit with (n) unknowns, a dense factorization is approximately (O(n^3)), but circuit matrices are usually sparse.
Transient simulation repeatedly solves matrices with similar topology.
Performance therefore depends on:
- sparse matrix ordering;
- factorization reuse;
- nonlinear iteration count;
- number of time steps;
- adaptive-step acceptance rate;
- event density from switches and piecewise models.
The total cost can be dominated by many solves rather than one large solve.
Energy validation¶
Energy provides strong transient invariants.
For an ideal source-free RLC network with (R>0),
under the series orientation.
So stored energy must monotonically decrease in the passive source-free model.
If a numerical simulation produces growing total energy without an active source, either the model contains an active element, the sign convention is inconsistent, or the integration method/time step is unstable.
Switching and impulse boundaries¶
Ideal switches can create mathematically singular events.
Examples:
- connecting ideal capacitors with different voltages using zero resistance;
- forcing an ideal inductor current to change instantaneously;
- switching incompatible ideal voltage sources together.
Real circuits contain finite resistance, inductance, capacitance, switch transition time and electromagnetic radiation.
A physically meaningful model often requires adding those nonidealities rather than accepting infinite current or voltage as a literal prediction.
Measurement bandwidth¶
Observed transient behavior depends on measurement bandwidth and probe loading.
A fast voltage edge contains high-frequency spectral components. A limited-bandwidth instrument can report:
- slower apparent rise time;
- reduced overshoot;
- altered ringing.
Probe capacitance or ground inductance can also modify the circuit.
Transient validation therefore requires both model bandwidth and measurement bandwidth to be stated.
Relation to digital timing¶
Digital signals are interpreted as logic states, but their physical transitions are analog transients.
A simplified timing chain is:
driver changes conduction state
↓
node capacitance charges/discharges
↓
interconnect R/L/C shape waveform
↓
receiver threshold is crossed
↓
digital state changes
Propagation delay, slew rate, overshoot and ringing emerge from these dynamics.
A digital abstraction is valid only when electrical behavior remains inside the interface's timing and voltage margins.
Relation to power delivery¶
Load transients are central to computer power systems.
A sudden increase in current can produce rail droop through:
These mechanisms act together across regulator, board, package and die.
The dedicated power-delivery chapter develops impedance targets, decoupling hierarchy and regulator response. The present chapter supplies the underlying transient mathematics.
Relation to ChrisOS¶
ChrisOS runs above these analog dynamics.
The operating system may cause workload transitions that change CPU or device activity, but the resulting electrical response is implemented by hardware and firmware beneath the OS abstraction.
Current ChrisOS source does not contain an RC/RLC circuit solver documented by this chapter.
If future power-management, telemetry or simulation code is added, its implementation must be documented separately with concrete files, symbols, ownership, concurrency and validation evidence.
Privilege, concurrency and ABI boundary¶
RC/RL/RLC differential equations have no CPU privilege level, lock ordering or ABI.
Those concerns appear only when software represents or controls hardware states.
A transient simulator implemented in software would require:
- ownership of state vectors;
- synchronization for parallel assembly;
- deterministic acceptance/rejection of time steps;
- numerical error propagation policies;
- file or API formats if state is externalized.
None of those software contracts are claimed to exist in ChrisOS here.
Failure modes¶
| Failure | Meaning |
|---|---|
| missing initial condition | dynamic state is under-specified |
| wrong switch topology | differential equation describes the wrong circuit |
| violated capacitor voltage continuity | implies unmodeled impulse current |
| violated inductor current continuity | implies unmodeled impulse voltage |
| negative passive R | model becomes active/unstable |
| zero damping assumed for real circuit | ringing persists unrealistically |
| unstable numerical step | simulated energy grows spuriously |
| time step too coarse | fast poles/events are missed |
| ignored parasitics | edge/ringing prediction can be wrong |
| using 5τ as exact equality | confuses approximation with asymptotic behavior |
Validation evidence¶
The executable checker for this batch verifies deterministic examples for:
- RC charging and discharging;
- RL energization and decay;
- first-order time-constant fractions;
- capacitor/inductor continuity invariants;
- series RLC damping classification;
- damped natural frequency;
- standard second-order overshoot;
- passive source-free RLC energy decrease;
- an explicit-Euler stability boundary example;
- bilingual chapter anchors.
These checks validate equations and editorial invariants. They do not constitute a SPICE transient solver or hardware waveform validation.
Current limitations¶
This chapter does not yet develop:
- complex phasors and impedance networks;
- Fourier decomposition;
- RMS and complex power;
- transformer coupling;
- distributed transmission lines;
- nonlinear switch/device models;
- stochastic noise;
- power-regulator control loops;
- current ChrisOS implementation.
Those topics require additional assumptions and are separated in the curriculum.
Roadmap boundary¶
The conceptual progression is
R/C/L constitutive equations
↓
time-domain differential equations
↓
natural + forced response
↓
poles, damping and settling
↓
sinusoidal steady state
↓
phasors, impedance and frequency response
The next chapter replaces repeated sinusoidal differentiation with algebraic complex impedance while preserving the same underlying differential equations.
Revision provenance¶
Reviewed against ChrisOS main revision da3df29cb397932c43d32373871fb9380e688ade.
sources and symbols are intentionally empty because this chapter does not claim that current ChrisOS implements an RC/RLC simulator or analog control subsystem. The reviewed revision records corpus provenance and the implementation boundary.