Electricity & magnetism

RLC Transient Dynamics Lab

A series RLC circuit switched onto a battery, or a parallel RLC circuit fed by a current source, with optional starting charge and coil current and an optional switch-off part-way: one closed form for the underdamped, critically damped and overdamped responses gives 201 frames of the capacitor voltage, the coil, resistor, capacitor and source currents, the charge level and the stored and dissipated energy, with the damping regime and ratio, the natural and ringing frequencies, the damping rate, the overshoot and peak time, the exact 2% settling time found by 60 halvings of a proved bracket, the two poles and their root locus over 21 resistances, and the work, heat and stored-energy ledger. A window too coarse for the ringing or too short for a slow circuit reads CHECK. Five challenges are scored for you. For learning how resistance, inductance and capacitance set ringing, damping and settling.

Last updated

Calculator overview

Inputs and outputs

This summary comes from the calculator's published input and output contract.

Inputs

Source current
When omitted Blank
About this input

The current of the parallel circuit's source, from -100 to 100 mA in 1 mA steps; blank means 10 mA. Drag the source's badge. Not used in the series circuit.

Unit A Default Not set Range -0.1 to 0.1
Resistance R (required)
About this input

The resistance R, from 1 ohm to 100 kilohm. Drag the resistor's value badge: it steps through the E24 values; tap it to type an exact value.

Unit ohm Default 10 Range 1 to 100000
Inductance L (required)
About this input

The inductance L of the coil, from 10 microhenry to 1 henry. Drag the coil's value badge through the E24 values.

Unit H Default 0.01 Range 1E-05 to 1
Time per division (required)
About this input

The scope's time per division, from 2 microseconds to 1 second; the window is ten divisions. Drag the time axis sideways or use the plus and minus buttons.

Unit s Default 0.002 Range 2E-06 to 1
Switch-off sample
When omitted Blank
About this input

The sample, 1 to 199, at which the source is switched off (the battery is replaced by a short, the current source by an open circuit); blank means no switch-off. Tap the scope's time axis to place the marker and drag it.

Default Not set Range 1 to 199
Battery voltage
When omitted Blank
About this input

The battery voltage of the series circuit, from -24 to 24 V in 0.5 V steps; blank means 10 V. Drag the battery's badge. Not used in the parallel circuit.

Unit V Default Not set Range -24 to 24
Circuit (required)
About this input

Series circuit (a battery, a switch, the resistor, the coil and the capacitor in one loop) or Parallel circuit (a current source feeding the three parts side by side). Chosen with the chips above the schematic.

Default Series circuit Allowed Series circuit, Parallel circuit
Challenge number
When omitted Blank
About this input

0 or blank for no challenge; 1 to 5 load a challenge, which sets the circuit except the parts it leaves to you.

Default Not set Range 0 to 5
Capacitor starting voltage
When omitted Blank
About this input

The capacitor's voltage at the moment the switch closes, from -24 to 24 V; blank means 0. Set with the capacitor's second badge.

Unit V Default Not set Range -24 to 24
Capacitance C (required)
About this input

The capacitance C, from 10 nanofarad to 1,000 microfarad. Drag the capacitor's value badge through the E24 values.

Unit F Default 1E-05 Range 1E-08 to 0.001
Your prediction: the regime (required)
About this input

Challenge 1 only: your prediction of how the capacitor voltage answers the switch, Underdamped, Critically damped or Overdamped; it starts at Not yet chosen, and the response appears once you choose.

Default Not yet chosen Allowed Not yet chosen, Underdamped, Critically damped, Overdamped
Coil starting current
When omitted Blank
About this input

The coil's current at the moment the switch closes, from -100 to 100 mA; blank means 0. Set with the coil's second badge.

Unit A Default Not set Range -0.1 to 0.1

Outputs

Scope voltage axis upper bound
About this output

The upper bound of the scope's voltage axis, in volts (for drawing).

Unit V
The root locus: the poles at 21 resistances from 1 ohm to 100 kilohm (quarter decades)
About this output

The two poles at 21 resistances from 1 ohm to 100 kilohm (quarter decades), with the inductance and capacitance used: the path the poles take as the resistance grows.

No unit declared
Resistance used
About this output

The resistance used, in ohms.

Unit ohm
Scope current axis lower bound
About this output

The lower bound of the scope's current axis, in the current unit (for drawing).

No unit declared
Scope current axis upper bound
About this output

The upper bound of the scope's current axis, in the current unit (for drawing).

No unit declared
Scope voltage axis lower bound
About this output

The lower bound of the scope's voltage axis, in volts (for drawing).

Unit V
Inductance used
About this output

The inductance used, in henries.

Unit H
Pole plot real axis upper bound
About this output

The upper bound of the pole plot's real axis, in 1/s (for drawing).

Unit 1/s
Pole plot imaginary axis lower bound
About this output

The lower bound of the pole plot's imaginary axis, in rad/s (for drawing).

Unit rad/s
Pole plot imaginary axis upper bound
About this output

The upper bound of the pole plot's imaginary axis, in rad/s (for drawing).

Unit rad/s
Capacitance used
About this output

The capacitance used, in farads.

Unit F
The two poles
About this output

The two poles of the circuit, real and imaginary parts: a complex pair when it rings, a double pole at critical damping, two real poles when overdamped.

No unit declared
Pole plot real axis lower bound
About this output

The lower bound of the pole plot's real axis, in 1/s (for drawing).

Unit 1/s
The scope frames at 201 times: capacitor voltage, the four currents, the charge level and the three energies (units from the unit outputs)
About this output

201 frames of the transient at equal times across the window: time, capacitor voltage, the coil, resistor, capacitor and source currents, the charge level (-1 to 1), and the capacitor energy, coil energy and heat so far. The scope, the flow dots, the energy bars and the phase plane are drawn from it.

No unit declared
Stored energy at the start (text)
About this output

The starting stored energy with a unit prefix.

No unit declared
Stored energy at the start
About this output

The energy stored in the capacitor and the coil when the switch closes, in joules.

Unit J
Stored energy at the end (text)
About this output

The final stored energy with a unit prefix.

No unit declared
Time unit
About this output

The time unit of the scope frames and the time axis: microseconds, milliseconds or seconds, chosen from the time per division.

No unit declared
Time per division used
About this output

The time per division used, in seconds.

Unit s
Switch-off sample used
About this output

The switch-off sample used; blank when there is no switch-off.

No unit declared
Stored energy at the end
About this output

The energy stored in the capacitor and the coil at the end of the window, in joules.

Unit J
Source current used
About this output

The source current used, in amperes (10 mA when the input is blank); blank in the series circuit.

Unit A
Settling band lower edge
About this output

The lower edge of the 2% settling band around the final value, drawn on the scope when the trace is the step from rest (V in the series circuit, the current unit in the parallel circuit); blank otherwise.

No unit declared
Settling band upper edge
About this output

The upper edge of the 2% settling band, drawn on the scope with the lower edge; blank otherwise.

No unit declared
Work done by the source (text)
About this output

The source work with a unit prefix.

No unit declared
Work done by the source
About this output

The work done by the battery or the current source over the window, in joules.

Unit J
Battery voltage used
About this output

The battery voltage used, in volts (10 V when the input is blank); blank in the parallel circuit.

Unit V
Damping ratio
About this output

The damping ratio: the damping rate divided by the natural angular frequency. Below 1 the circuit rings; 1 is critical damping; above 1 it is overdamped.

No unit declared
Damping rate
About this output

The damping rate alpha in 1/s: R / (2 L) in the series circuit, 1 / (2 R C) in the parallel circuit; the swings shrink as e^(-alpha t).

Unit 1/s
Ringing frequency
About this output

The ringing frequency in hertz, a little below the natural frequency; blank when the circuit does not ring.

Unit Hz
Peak time
About this output

The time of the first peak of the step from rest, in seconds; blank when the circuit does not ring.

Unit s
Overshoot
About this output

How far the first peak of the step from rest passes the final value, in percent of the step; 0 when the circuit does not ring. On the capacitor voltage in the series circuit, on the coil current in the parallel circuit.

Unit %
Natural frequency
About this output

The natural frequency, 1 / (2 pi sqrt(L C)), in hertz: how fast the circuit would ring with no resistance.

Unit Hz
Challenge 5: the hidden circuit's capacitor voltage at the 16 target dots
About this output

Challenge 5 only: the hidden circuit's capacitor voltage at 16 sample times, drawn as target dots on the scope.

No unit declared
Challenge: the value scored
About this output

The value the challenge scores: the damping ratio (challenge 2, once met), the settling time in seconds (challenge 3) or the ringing frequency in hertz (challenge 4, once met); blank otherwise.

No unit declared
Challenge feedback
About this output

A hint while the challenge is not met, an explanation once it is met, or the prompt while challenge 1 waits for a prediction.

No unit declared
Capacitor starting voltage used
About this output

The capacitor's starting voltage used, in volts.

Unit V
Challenge target time
About this output

Challenge 3 only: the 1.6 ms settling target in the time unit, drawn as a line on the scope.

No unit declared
Challenge result
About this output

No challenge selected, MET or NOT MET.

No unit declared
Challenge score
About this output

100 when the challenge is met, 0 when it is not; blank with no challenge.

No unit declared
Peak time (text)
About this output

The peak time with a unit prefix, for example 1.01 ms.

No unit declared
Heat in the resistor (text)
About this output

The heat in the resistor with a unit prefix.

No unit declared
Heat in the resistor
About this output

The heat produced in the resistor over the window, in joules: the source work plus the starting energy minus the energy still stored.

Unit J
Energy unit
About this output

The unit of the energy columns and bars: nanojoules, microjoules, millijoules or joules, chosen from the largest energy.

No unit declared
Formula module versions
About this output

The versions of the formula modules: the uniform transient core, the 60-step settling bisection and the unit-prefix texts.

No unit declared
Model version
About this output

The model version.

No unit declared
Model Status
About this output

OK, CHECK with a reason (the trace is too coarse for the oscillations, or the circuit responds much more slowly than the window shows), or NOT VALID with a reason naming the input.

No unit declared
Energy bar scale
About this output

The full scale of the energy bars, in the energy unit (for drawing).

No unit declared
Settling time (2%, text)
About this output

The settling time with a unit prefix, for example 7.32 ms.

No unit declared
Settling time (2%)
About this output

The 2% settling time of the step from rest, in seconds: the last time the response is more than 2% away from its final value.

Unit s
Damping regime
About this output

Underdamped (the voltage rings past its final value), Critically damped (it just reaches it without ringing) or Overdamped (it creeps up). A property of R, L and C alone.

No unit declared
Current unit
About this output

The unit of the current columns and the current axis: microamperes, milliamperes or amperes, chosen from the largest current.

No unit declared
Coil starting current used
About this output

The coil's starting current used, in amperes.

Unit A
Circuit used
About this output

The circuit the results are for (a challenge may set it).

No unit declared
This page is provided by LogicCommons for informational purposes only. Results are analysis outputs computed from the inputs you supply and are not professional advice. Verify all inputs and results independently.

LogicCommons is in beta. If a result, label, or reference looks wrong, tell us here; we read every message.

Methodology

Purpose and model boundary

This lab switches a second-order circuit on and watches it settle. In the series circuit a battery, a switch, a resistor R, a coil L and a capacitor C form one loop; in the parallel circuit a current source feeds R, L and C side by side. When the switch closes, energy moves between the capacitor's electric field and the coil's magnetic field and leaks away as heat in the resistor. With little resistance the response rings past its final value; at one critical resistance the ringing just stops; beyond it the rise is sluggish. The capacitor can start charged and the coil can start carrying a current, and the source can be switched off part-way.

One closed form covers the underdamped, critically damped and overdamped responses. The model returns 201 frames of the capacitor voltage, the coil, resistor, capacitor and source currents, the charge level and the energy in the capacitor, in the coil and turned to heat so far. It also returns the damping regime and ratio, the natural and ringing frequencies, the damping rate, the overshoot and peak time, the exact 2% settling time, the two poles and their root locus over 21 resistances, and the ledger of source work, heat and stored energy. Five challenges are scored by the model.

It is a lab for learning how resistance, inductance and capacitance set ringing, damping and settling: why the three damping regimes are a property of R, L and C alone, why damping lowers the ringing frequency below the natural one, why a little ringing settles fastest, and how energy sloshes between the two stores and leaks out as heat. It is not a circuit design tool. The parts are ideal: the coil has no resistance, the capacitor does not leak, and the source and switch are ideal; real components have tolerances, losses and ratings that the lab does not model.

The model is the calculation authority. The page sends the values you set to the model and draws only what it returns: the flow dots and the capacitor's fill, the scope curves and their axes, the settling band, the energy bars, the phase plane, the poles and the root locus, and the challenge target dots and line. The page computes no voltage, current, energy, frequency, settling time or pole itself.

Inputs and units

Resistance is in ohms (Ω), inductance in henries (H), capacitance in farads (F), voltage in volts (V), current in amperes (A) and time in seconds (s). Frequencies are in hertz (Hz), the damping rate and the real parts of the poles in 1/s, and their imaginary parts in rad/s. The frames come back with the time, the currents and the energies in display units the model chooses (µs, ms or s; µA, mA or A; nJ, µJ, mJ or J).

Input Meaning and unit
Circuit Series circuit (default: a battery drives R, L and C in one loop) or Parallel circuit (a current source feeds R, L and C side by side).
Resistance R 1 to 100,000 Ω (default 10).
Inductance L 0.00001 to 1 H, that is 10 µH to 1 H (default 0.01, 10 mH).
Capacitance C 1×10⁻⁸ to 0.001 F, that is 10 nF to 1,000 µF (default 0.00001, 10 µF).
Battery voltage Blank, or -24 to 24 V: the step the series circuit is switched onto. Blank means 10 V. Used only in the series circuit.
Source current Blank, or -0.1 to 0.1 A: the step the parallel circuit is fed. Blank means 10 mA. Used only in the parallel circuit.
Capacitor starting voltage Blank (0), or -24 to 24 V: the capacitor's voltage when the switch closes.
Coil starting current Blank (0), or -0.1 to 0.1 A: the coil's current when the switch closes.
Switch-off sample Blank (no switch-off), or a whole number from 1 to 199: the frame after which the source is switched off.
Time per division 2×10⁻⁶ to 1 s (default 0.002, 2 ms): the scope's time per division. The window is 10 divisions.
Challenge number Blank or 0 for free exploration, or 1 to 5 to load a challenge.
Your prediction: the regime Not yet chosen (the start), Underdamped, Critically damped or Overdamped: your answer for challenge 1.

Where each input is set:

  • On the canvas only: every input except the challenge number. Dragging the value badge on the resistor, the coil or the capacitor steps it through the standard E24 values, and the drawn part grows with its value (the zig-zag, the coil's turns, the plates); a value can also be typed, and the badge puts it on the nearest E24 value. The source's badge sets the battery voltage in 0.5 V steps or the source current in 1 mA steps; only the active circuit's source is shown. From the Experiment level, chips above the drawing choose the series or the parallel circuit, second badges on the capacitor and the coil set the starting voltage (0.1 V steps) and the starting current (1 mA steps), and tapping the scope's time axis places the switch-off marker at the nearest frame (drag it along the axis, or off it to remove it). Dragging the time axis sideways, or its + and - buttons, sets the time per division on the 1-2-5 sequence. The regime chips appear only in challenge 1.
  • In the input panel: the challenge picker only.

A level changes only what the page shows, never a calculation.

Governing relationships

The damping rate and the natural frequency. Both circuits obey the same second-order equation. The damping rate is

α = R/(2·L) in the series circuit, α = 1/(2·R·C) in the parallel circuit,

the natural angular frequency is ω₀ = 1/√(L·C), and the damping ratio is ζ = α/ω₀. More resistance damps the series circuit more and the parallel circuit less.

The three regimes. With b² = (ω₀ - α)·(ω₀ + α) (a product form that keeps its accuracy near critical damping), the circuit is critically damped when |ζ - 1| ≤ 1×10⁻⁷, underdamped when ζ is below that band and overdamped above it. Underdamped, it rings at the angular frequency β = √b², below ω₀. Overdamped, with γ = √(-b²), it decays at two rates: a slow rate r_s = ω₀²/(α + γ), written so that it never subtracts two nearly equal numbers, and a fast rate α + γ.

The state and its target. In the series circuit the model follows the capacitor voltage v_C, whose rate of change is i_L/C, toward the battery voltage. In the parallel circuit it follows the coil current i_L, whose rate of change is v_C/L, toward the source current. After a switch-off the target is 0: the battery is replaced by a short in the series circuit and the current source by an open circuit in the parallel one.

One closed form for every regime. With y₀ the starting gap from the target and y₀′ the starting rate of change, the state at time τ after the switch closes is

x(τ) = x∞ + y₀·CT(τ) + (y₀′ + α·y₀)·ST(τ),

where CT = e^(-α·τ)·cos(β·τ) and ST = e^(-α·τ)·sin(β·τ)/β when the circuit rings, and the matching cosh and sinh forms when it is overdamped. The overdamped forms are written with the two decaying exponentials only, so nothing overflows. When |b²|·τ² is below 1×10⁻⁴ the model uses the Taylor series of the same functions to the third power of b²·τ², which covers critical damping exactly. So the trace is continuous through critical damping and no regime label touches its values. Every exponent is taken as no smaller than -700.

The time base and the switch-off. The window is T = 10 × the time per division, and frame n (0 to 200) sits at t_n = n·T/200. Frame 0 is the starting state exactly. With a switch-off at frame k, frames up to k belong to the first stretch; after it the same solution restarts from the state at that instant with a target of 0. The capacitor voltage and the coil current are continuous at the switch-off; the other currents jump.

The currents. In the series circuit one loop current flows through every part. In the parallel circuit the resistor current is v_C/R, the source current is the source's value (0 after a switch-off), and the capacitor takes the rest: i_C = i_source - i_L - i_R. The charge level drawn in the capacitor is v_C divided by the largest |v_C| of the run.

Energy. The capacitor holds ½·C·v_C² and the coil ½·L·i_L². The source's work is exact, with no numerical integration: E·C·(v_C - v₀) in the series circuit, because the battery's current is C·dv_C/dt, and I·L·(i_L - i₀) in the parallel circuit, because the source's voltage is L·di_L/dt. The heat in the resistor is what the balance leaves:

heat = source work + stored energy at the start - stored energy now.

The step from rest. The overshoot, the peak time and the settling time describe the response from rest (no starting charge or current, no switch-off), whatever starting values are set, so they are properties of R, L and C alone. When the circuit rings, the first peak passes the final value by

overshoot = 100·e^(-α·π/β) percent, at the peak time π/β,

and the ringing frequency is β/(2π). Critically damped or overdamped, the overshoot is 0 and the peak time and ringing frequency are blank. The overshoot is on the capacitor voltage in the series circuit and on the coil current in the parallel circuit.

The 2% settling time. For the step from rest the relative error is e(t) = -(CT(t) + α·ST(t)). The settling time is the last time |e| is more than 0.02. The model finds it by exactly 60 halvings of an interval on which |e| is proved to move one way only, so no convergence test is needed:

  • ringing: the error's extremes sit at t_k = k·π/β with size e^(-k·α·π/β). With K = ln(50)·β/(α·π), the last peak above 2% is k* = ⌈K⌉ - 1, and the interval runs from that peak to the next zero of e;
  • critically damped or overdamped: e rises steadily from -1 to 0, and the interval runs from 0 to 2·ln(60.7·(1 + α/r_s))/r_s, where |e| is already below 2%.

The settling time jumps when K passes a whole number, because one more peak then drops inside the band.

The poles. The poles are the roots of s² + 2·α·s + ω₀² = 0: -α ± jβ when the circuit rings, a double pole at -α at critical damping, and the two real poles -r_s and -(α + γ) when overdamped. Pole 1 is the one with the non-negative imaginary part, or the real pole nearer zero.

The root locus. The same poles are computed at 21 resistances R_j = 10^(j/4) Ω for j = 0 to 20 (1 Ω to 100 kΩ in quarter decades), with the inductance and capacitance used. As R grows in the series circuit the poles slide round a circle of radius ω₀, meet at critical damping and split along the real axis.

Calculation sequence

  1. Check the inputs that apply, in the order of the list under Errors and warnings.
  2. In a challenge, replace the inputs the challenge fixes with its own values; a blank source takes 10 V or 10 mA, and blank starting values take 0.
  3. Compute α, ω₀, ζ, b², the regime and, as the regime needs, β or the two decay rates.
  4. Set the starting state, the target and, with a switch-off, the state at the switch-off.
  5. Compute each of the 201 frames: the capacitor voltage, the four currents, the charge level, the two stored energies, the source work and the heat.
  6. Compute the frequencies, the overshoot, the peak time and the poles; bracket the settling time and halve the bracket 60 times; compute the root locus.
  7. Choose the display units, write the text values, and set the plot bounds and the settling band.
  8. Set the status and, in a challenge, score it and hold back what the challenge withholds.

Outputs and interpretation

  • Damping regime: Underdamped (the response rings past its final value), Critically damped (it just reaches it without ringing) or Overdamped (it creeps up).
  • Damping ratio: α/ω₀. Below 1 the circuit rings, 1 is critical damping, above 1 it is overdamped.
  • Natural frequency: ω₀/(2π), in Hz: how fast the circuit would ring with no resistance.
  • Ringing frequency: β/(2π), in Hz, a little below the natural frequency; blank when the circuit does not ring.
  • Overshoot (%) and peak time (s) of the step from rest.
  • Settling time (2%) of the step from rest, in seconds.
  • Damping rate α, in 1/s: the swings shrink as e^(-α·t).
  • Stored energy at the start, stored energy at the end, heat in the resistor and work done by the source over the window, in joules.
  • The peak time, the settling time and the four energies are written with an SI prefix and three significant figures, with a true minus sign for a negative value ("7.32 ms", "0.500 mJ").
  • Settings used: the circuit, R, L, C, the battery voltage or source current, the two starting values, the switch-off sample and the time per division in effect (a challenge may fix them; a blank source shows 10 V or 10 mA). A source input that does not apply is left blank, and so is the switch-off when there is none.
  • The scope frames: 201 rows at equal times across the window: the time, the capacitor voltage, the coil, resistor, capacitor and source currents, the charge level (-1 to 1), and the energy in the capacitor, in the coil and turned to heat so far.
  • The two poles: real part (1/s) and imaginary part (rad/s) of each.
  • The root locus: both poles at each of the 21 resistances.

Reading the canvas: the circuit shows flow dots along each current path and the capacitor's fill at the play head's frame, and the switch opens at the switch-off. The scope draws the capacitor voltage (left axis, V) and the coil current (right axis) against time; with the step from rest and a source that is not zero, the 2% band around the final value is drawn too. Three energy bars (capacitor, coil, heat) follow the play head on a fixed scale. The Experiment level adds the parallel circuit, the starting values, the switch-off marker, the phase plane (the capacitor voltage across and the coil current up, traced to the play head), the settling time and the energies; the Advanced level adds the pole plot with the root locus, the damping rate and the settings used.

What to take from the lab: the three damping regimes are set by R, L and C alone; the capacitor and the coil set the natural frequency, and resistance pulls the ringing a little below it; at critical damping the ringing just disappears; a little ringing settles fastest, and exact critical damping is already slower; energy passes between the capacitor and the coil twice in every period and leaks out as heat.

Challenges

Every challenge uses the series circuit with a 10 mH coil and a 10 V battery, no starting charge or coil current and no switch-off, and leaves only the named inputs to you. The model scores each one MET (100) or NOT MET (0) and gives a one-line hint while it is not met. A CHECK status does not stop a challenge being scored.

  1. Predict the regime. Look at the resistor, coil and capacitor values and predict whether the capacitor voltage will ring past the battery voltage, just reach it without ringing, or creep up slowly. Met when your prediction names the model's regime.
  2. Just stop the ringing. Drag the resistor until the capacitor voltage rises as fast as it can without swinging past the battery voltage. Met when the damping ratio is from 0.95 to 1.05. The value scored is the damping ratio.
  3. Settle fast, overshoot little. Choose the resistor so the capacitor voltage overshoots by at most 5% and stays within 2% of its final value from 1.6 ms on. Met when the overshoot is at most 5% and the settling time is at most 1.6 ms. The value scored is the settling time; the 1.6 ms line is drawn on the scope.
  4. Ring at 1 kHz. Choose a capacitor and a resistor so the circuit rings at 1 kHz within 2% and stays lightly damped. Met when the circuit rings, the ringing frequency is within 20 Hz of 1,000 Hz and the damping ratio is at most 0.3. The value scored is the ringing frequency.
  5. Identify the hidden circuit. Sixteen dots show how a hidden circuit with the same coil and battery answered the switch. Choose the resistor and the capacitor so your trace runs through the dots. Met when your damping ratio and your natural angular frequency are each within 3% of the hidden circuit's. The hidden values are never shown.

Challenge 1 holds back the answer until you predict: while the prediction reads Not yet chosen, every result except the starting stored energy, every frame after time 0, the pole values and the root locus are blank, and the challenge reads NOT MET with the prompt to choose first. Any prediction reveals everything, met or not. Challenge 2 holds back the regime, the damping ratio, the ringing frequency, the overshoot, the peak time, the damping rate, the poles, the root locus and the value scored until it is met; the trace, the natural frequency, the settling time and the energies stay, so you can watch the ringing vanish. Challenge 4 holds back the natural and ringing frequencies, the peak time, the damping rate, the poles, the root locus and the value scored until it is met; the trace, the damping ratio, the overshoot and the settling time stay, so you can count the swings and watch the damping limit. Challenges 3 and 5 hold nothing back.

Validation and status logic

The status reads the first match in the list under Errors and warnings. An input is checked only when it applies: the battery voltage only in the series circuit, the source current only in the parallel circuit, and the prediction only in challenge 1. An input that does not apply is not read. In a challenge, the inputs it fixes take its own values and are not checked; your free inputs are checked on the values you entered. A blank or unknown circuit is refused first, and the source inputs are then treated as not applying. The CHECK messages read the values in use, apply inside challenges too, and leave every result computed; only NOT VALID blanks the results.

Assumptions and limitations

  • Ideal parts: no coil resistance, no capacitor leakage, an ideal source and an ideal switch. One fixed series or parallel circuit, one step of the source, and at most one switch-off.
  • The trace is sampled at 201 frames and drawn straight between them. More than 20 full oscillations in the window is reported as a CHECK, because the frames can no longer follow them.
  • The overshoot, peak time and settling time are those of the step from rest, whatever starting values are set.
  • The regime band is |ζ - 1| ≤ 1×10⁻⁷; inside it both poles are reported at -α and the overshoot is 0.
  • The settling time comes from 60 halvings. It jumps at a resistance where a peak of the response just touches the 2% band, so two close resistances can give quite different settling times.
  • The root locus has 21 points, a quarter decade apart.
  • Times and energies are written to three significant figures. A value that rounds up to the next prefix takes it ("1.00 mJ", not "1000 µJ"); in the base unit a large value keeps a thousands comma ("1,000 s").
  • The challenge bands include their edges. The time unit follows the time per division (µs below 75 µs, ms below 75 ms, s otherwise), the current unit the largest current of the run (µA below 1 mA, mA below 1 A, A otherwise), and the energy unit the largest energy of the run.

Restrictions and non-computing states

Under NOT VALID every result, every frame, the poles, the root locus, the settings used and the challenge result are blank.

Some results are blank by construction: the ringing frequency and the peak time when the circuit does not ring, the source input that the other circuit uses, the switch-off when there is none, and the settling band unless the trace is the step from rest with a source that is not zero.

In challenges 1, 2 and 4 the results described under Challenges are held back until the challenge allows them.

Errors and warnings

The status messages, first match wins:

  • NOT VALID: choose the circuit from the list
  • NOT VALID: the resistance must be a number from 1 Ω to 100 kΩ
  • NOT VALID: the inductance must be a number from 10 µH to 1 H
  • NOT VALID: the capacitance must be a number from 10 nF to 1,000 µF
  • NOT VALID: the battery voltage must be blank or a number from −24 V to 24 V: series circuit only.
  • NOT VALID: the source current must be blank or a number from −100 mA to 100 mA: parallel circuit only.
  • NOT VALID: the capacitor's starting voltage must be blank or a number from −24 V to 24 V
  • NOT VALID: the coil's starting current must be blank or a number from −100 mA to 100 mA
  • NOT VALID: the switch-off point must be blank or a whole number from 1 to 199
  • NOT VALID: the time per division must be a number from 2 µs to 1 s
  • NOT VALID: the challenge number must be a whole number from 0 to 5
  • NOT VALID: choose your regime prediction from the list: challenge 1 only.
  • CHECK: the window holds more than 20 full oscillations, so the trace is too coarse to follow them; shorten the time per division: the circuit rings and β·T/(2π) is above 20.
  • CHECK: the circuit responds much more slowly than the window shows; lengthen the time per division: the slower pole's size times the window is below 0.5 (ω₀ when the circuit rings or is critically damped, r_s when it is overdamped).
  • OK

References

This laboratory is an educational model of an ideal series RLC circuit switched onto a battery, or an ideal parallel RLC circuit fed by a current source, with an optional starting charge and coil current and an optional switch-off part-way. Both circuits obey one second-order equation, with a natural angular frequency of 1/sqrt(LC) and a damping rate of R/(2L) for the series circuit or 1/(2RC) for the parallel one. One closed form covers the underdamped, critically damped and overdamped responses, and a switch-off restarts the same solution from the state at that instant. From it the lab gives the damping regime and ratio, the natural and ringing frequencies, the overshoot and peak time, and the two poles and how they move as the resistance changes. The 2% settling time is the last time the response from rest is more than 2% away from its final value, found by repeated halving of an interval. The work done by the source is exact, and the heat in the resistor is what the energy balance leaves.

Sources and further reading

  • The source-free and step responses of series and parallel RLC circuits: C. K. Alexander and M. N. O. Sadiku, Fundamentals of Electric Circuits, 7th edition, 2026 release, McGraw Hill, chapter 8, Second-Order Circuits. McGraw Hill
  • Second-order systems, and the overshoot, peak time and settling time of an underdamped response: N. S. Nise, Control Systems Engineering, 8th edition, Wiley, 2019, chapter 4, Time Response, sections 4.4, Second-Order Systems: Introduction, 4.5, The General Second-Order System, and 4.6, Underdamped Second-Order Systems. Wiley
  • The series of preferred values that the resistance, inductance and capacitance value badges step through: IEC 60063:2015, Preferred number series for resistors and capacitors, edition 3.0, IEC, 2015. IEC Webstore

No table or text from any of these publications is reproduced, and none of their authors or publishers has reviewed or endorses this laboratory.

This laboratory is for learning. Its results hold only within its stated ranges; it models ideal parts with no coil resistance or capacitor leakage, and real components have tolerances, losses and ratings that it does not model.

Results are informational and not professional advice. See our Terms of Use. Powered by SpreadsheetWeb · About · Privacy · Terms