Here is the step response of an RC circuit, its voltage after a battery is switched on, with a time constant of 0.2 s. Watch the two times the markers measure: from 10 % to 90 % of the final value, and until the curve stays within 2 % of it.
One curve, three markers
The step response of a first-order system, τ = 0.2 s.
A first-order system's step response. Here τ = 0.2 s.
Describe this picture
The step response of a first-order system with s, against time in seconds; the picture plays by itself and has no control. The curve draws itself, then markers drop onto it in turn: a circle labelled “10%”, a circle labelled “90%” with a bracket between them labelled “0.44 s”, and a diamond labelled “98%”. A band named “2% band” is drawn at of the final value, and a label “0.78 s” marks where the curve enters it. The captions give the rise as 2.2 τ and the settling as about 3.9 τ.
One number sets a first-order system
In Differential equations and analog systems (6.2) you met the RC circuit. Switch a battery on and its voltage climbs as , where the time constant is . A system whose equation holds at most a first derivative is called first order, and this curve is the shape of its step response.
I’ll write that step response as . The impulse response (5.1) called it , but on this page is the exponent in , so it needs another name.
Here is a question a thermostat has to answer. A room heater switches on, and you want to know how long the room takes to get within a degree of its new temperature. You can get that answer from alone, because every first-order step response has the same shape. Only its horizontal scale changes.
In the picture at the top, the bracket shows that going from 10 % to 90 % takes 0.44 s, which is 2.2 τ. This time is the rise time. The curve is inside the 2 % band by 0.78 s, about 3.9 τ, and it stays there. The time from the start until the curve is inside the band for good is the settling time.
Both numbers come from one step. The curve reaches the fraction of its final value when , so . The natural logarithm undoes , as 6.2 showed, so
For the 10 % point, gives s. For the 90 % point, s. The difference is the rise time. Because , it is s, which is .
The 2 % band is the strip within 2 % of the final value. The curve is inside it once , which is s, or . The curve only rises, so it stays inside from then on.
Here is the thermostat answer. If the room follows a first-order response with minutes, it takes about 22 minutes to go from 10 % to 90 % of the temperature change, and 39 minutes to settle within 2 % of the change. Double the time constant and both times double.
A mass with three amounts of friction
A first-order system has one number, so it can only creep up to its target. Add a second stored quantity, the speed of the mass as well as its position, and the system can overshoot and ring. The standard example is a mass on a spring with a damper, the rig from the last instrument of 6.2. The damper is the friction.
Think of a car’s shock absorbers: worn, correct, or over-stiff. Push each with a steady force toward a new rest position, which I call 1. The mass, the spring and the time axis are the same for all three. The axis is in plain seconds. Only the friction differs.
Before you watch, answer this: which of these gets the car level first? Watch the flag each curve gets when it enters the 2 % band for good.
Race to the 2% band
Same spring and mass, three shock absorbers: worn, correct and stiff.
All three are pushed toward the same new position, 1.
Describe this picture
Position against time in seconds for three shock absorbers on the same spring and mass, worn, correct and stiff, all pushed toward the same new position, 1; the picture has no control. A thin band at runs across the plot. A key names the curves: “worn” is a solid line with circles, “correct” a thicker solid line with squares and “stiff” a dashed line with triangles. Each curve gets a flag at the instant it enters the band for good. Readouts called “Time”, “Worn”, “Correct” and “Stiff” give the plotted time and the three positions. At the middle frame, 5.834 s (shown as 5.8 s), they read , and , as the correct absorber enters the band. At the end they read , and , and the flags are labelled “11.2 s” for worn, “5.8 s” for correct and “14.9 s” for stiff.
The correct one is the first to settle, at 5.8 s. The worn one settles at 11.2 s and the stiff one at 14.9 s. Of these three, the correct one wins: more friction is not faster.
The worn one is the first to touch 1, but touching is not staying level. It overshoots and rings, and takes the longest of the ringing rigs to stay in the band. The stiff one never overshoots, but it creeps. At 10 s it is at , while the worn one is already at .
With exactly enough friction the mass arrives as fast as it can without ever overshooting. That is called critical damping. Less friction is under-damped, and more is over-damped. The next section gives these a number.
Two numbers set the whole motion
Two numbers describe every rig on that plot. The first, (rad/s), is the natural frequency: how fast the mass rings when there is no friction at all. The second, (zeta), measures the friction against the critical amount. The worn absorber has , the correct one and the stiff one . All three had rad/s, which is why the axis was in seconds. The equation is
where is the push, and and are the slope of and the slope of that slope, as in 6.2.
Now remove the push and look at the free motion. 6.2’s trick was to try , whose slope is and whose second slope is . Putting it in gives , so
Here , as in Complex exponentials & phasors (3.4). Its real part is negative for a decaying motion and says how fast it dies. Its imaginary part says how fast it spins. I call these two values of the poles of the system. The spin rate of the pair is , the ringing rate with friction (d for damped).
The poles live in a plane, but this plane holds rates, not positions. Complex numbers for signals (3.3) used a plane of positions. This one shows how fast dies, across, and how fast it spins, up.
Watch the two poles as the friction falls, with rad/s and going from 2 down to 0.1, and watch the step response beside them.
Two poles as the friction falls
ωₙ = 1 rad/s; ζ from 2 down to 0.1, with the step response beside the plane of rates.
Lots of friction: two poles on the left of the axis. No overshoot.
Describe this picture
Two panels. The first is the plane of rates, with “decay rate σ (1/s)” across and “spin rate ω (rad/s)” up; the poles are crosses that leave a trail, and a dashed circle is labelled “radius ωₙ = 1”. The second is the step response, against time in seconds. Readouts give “ζ”, “Poles” and “Overshoot”. At the poles read “−0.268, −3.732” and the overshoot 0.0%. They meet at , “−1.000 (twice)”, 2.3 s into the clip. At the middle frame is 0.447, the poles “−0.447 ± 0.894j”, and a bracket on the response is labelled “overshoot 20.8%”. At the end , the poles are at and the overshoot is 72.9%. When the clip stops, a pole can be dragged along the circle, or moved with the arrow keys (0.01 a step), Home and End, for from 0.1 to 1. At the caption says “ζ = 0.35: the poles sit at −0.350 ± 0.937j. Overshoot 30.9%.” At it says “ζ = 1: the two poles meet on the axis, at −1. No overshoot.”
At the two poles sit on the negative part of the decay-rate axis, far apart, and the step response creeps with no overshoot. As the friction falls the poles slide together. At critical damping, , they meet at . Then they leave the axis as a mirror pair and climb, and the response starts to go past 1. Overshoot is how far the response goes past its final value, as a percentage of that value. It is 20.8 % at , with poles at , and 72.9 % at , where the poles sit high and the response rings.
When the clip stops, drag a pole along the circle to choose your own , from 0.1 to 1.
Two things to see. Once the poles leave the axis they stay on a circle of radius , because . And the higher the poles sit, the more the response overshoots.
On the axis, for , the poles are . For and that is and . The pole near zero is the slow one, and it sets the creep: has a time constant of s. More friction pushes that pole closer to zero, which is why the stiff rig is slow.
This also corrects a tempting conclusion. Critical damping is the fastest response that never overshoots, but it is not the fastest to settle within 2 %. In units where rad/s, critical damping settles at 5.83 s, and a slightly under-damped settles at 3.76 s. Not every reduction in damping helps: gives 5.98 s and gives 5.96 s, both slower than critical.
Why the poles come as a pair
Each pole gives one spiral, , in the way Complex exponentials & phasors (3.4) showed. Why does a real mass need both? The next instrument answers that for the rig with .
Look at the gap between the response and its target, , the bar 6.2 drew. It starts at 1 and starts flat, because the mass starts at rest. Those two start conditions fix everything about the spirals. The first spiral is multiplied by . By the rotate-and-scale rule of 3.3, that means the spiral starts 0.503 long and turned back by ( rad). Its partner is , with the mirror image of , and the mirror image of (3.3’s conjugate).
Watch the first spiral draw alone, then its partner, then their sum.
One pole, then its mirror partner
ζ = 0.1: each pole’s spiral, and their sum beside the step response.
A ringing step response needs both poles.
Describe this picture
For : the pole pair, named s₁ and s₂, on the plane of rates; a panel of spirals, with “real part” across and “imaginary part” up, which are positions again; and the step response. The picture has no control. A key names the spirals: “from s₁” is solid, “from s₂” is dashed and “sum” is a thick bar. The first spiral draws by itself, tagged “complex”, and the readout “First spiral starts at” says “0.503 ∠ −5.7°”. Its partner then draws, turning the opposite way, and “Partner starts at” says “0.503 ∠ +5.7°”. Last comes the sum, tagged “sum: real”, with the readout “Sum = gap 1 − y(t)”. In the step response, 6.2’s gap bar runs from up to 1 and is tagged “gap”.
One pole alone gives a complex signal: its spiral leaves the real line. Its mirror partner turns the other way, from the mirror-image start. With both, the sum is real, and it traces the length of the gap bar as the bar shrinks and changes sign.
Two spirals that turn opposite ways have imaginary parts that cancel, as the two arrows of a cosine did in 3.4. What is left is real, and it is the gap. A real system needs both poles of the pair, and a single complex pole alone would give a complex signal.
The gap has a closed form. With ,
with . For that is , whose length is and angle is . The start conditions say (the gap starts at 1) and (it starts flat), and this satisfies both.
The slope of the gap is , so it is first zero when . That instant is the peak time, . There the gap is , so the peak is past 1 by
This is the overshoot of the last section. For it is , so the peak is , at s. For other the time axis scales by and does not change.
How long until it settles? The ringing is wrapped in . That envelope reaches 2 % at , which is about . I use this only as a rule of thumb for an under-damped system.
Pushing at the right rhythm
So far the push was a steady force. Now push the mass with a sine instead: the push is , starting from rest. At first there is a start-up wobble, the natural part of 6.2, and it dies away. What is left is the forced part, and Properties of LTI systems (5.4) says what that must be for a system like this: a sine at the push’s own rhythm. The gain is how big that steady swing is compared with the swing a steady push of the same size would give.
Push the same lightly damped system, , at three rhythms. A child on a swing knows the result. Pushed at half its natural rate the system follows. Pushed at twice its natural rate it barely moves. Pushed at its natural rate, the swings pile up. This is resonance.
Here are three identical rigs with , pushed with a sine from rest. Each has rad/s, so its natural rhythm is one swing per second. Positions are measured in units of the swing a steady push of the same size gives. The swing size is the biggest distance from rest in the last second. Watch the middle rig’s swing size grow, then hold.
Three rigs, three rhythms
The same lightly damped rig (ζ = 0.1), pushed with a sine from rest.
Three identical rigs, pushed at half the natural rate, at the natural rate, and at twice it.
Swing size: the biggest distance from rest in the last second, in units of the swing a steady push gives.
Describe this picture
Three rows, one per rig: “pushed at half the natural rate”, “pushed at the natural rate” and “pushed at twice the natural rate”, each plotting position against time in seconds from rest; the picture has no control. In each row a shaded band shows the swing size, and dashed lines at plus and minus 1 are named “swing for a steady push of the same size”. At 5 s the middle rig’s swing size is 4.79 and still growing. At 6.49 s a plain mark on the middle rig says “from here on, steady”: its swing size has come within 2 % of its final size, and stays. Until then the readouts show ”–”. After the mark, the readouts “Half the natural rate”, “At the natural rate” and “Twice the natural rate” show the swing sizes, , and at the end, each beside the steady value it approaches: “steady 1.322”, “steady 5.000” and “steady 0.330”.
The middle rig is the biggest, and it keeps growing for a while: every push adds to the swing. From 6.49 s on it is steady, and the three swings are about 1.32, 5 and 0.33 times the swing of a steady push.
The middle rig reaches five times the swing of a steady push. That number is the quality factor . I state it without deriving it. Frequency response and Bode plots (8.4) derives the gain at every rhythm. A system with less friction has a larger and a sharper resonance.
The other two rigs show the gain at the other rhythms: a little above 1 at half the natural rate, and well below 1 at twice it. Why did the middle rig stop growing? Each push adds to the swing, but a bigger swing loses more energy to friction. The swing stops growing when the two balance.
The same ideas in samples
The first-order recursion of Difference equations (6.1), , has , a single decay. The number plays the part that played above, so I call it the pole of the discrete system. It is the discrete twin of . Decay needs , and 6.2 showed that sampling an RC circuit gives .
For ringing, use two delay boxes, as well as . Take
Here is the digital frequency in radians per sample, from Sinusoids (3.2), and is a number between 0 and 1. A plucked string simulated in code can look like this. Its impulse response is
Check the first two values. At it is . At it is , which is what the recursion gives.
This is the height of a spiral. Let
Its height is . It starts at angle , with length . At each sample it turns by and shrinks to of its length. Turning by and shrinking by is multiplication by , the rotate-and-scale of 3.3. That number and its mirror image are the poles of this system.
Take and , which is per sample. The picture shows only the plane of positions, because the spiral’s points are positions and not rates. Watch each new point’s height become the next stem.
A turning, shrinking point and its stems
h[n] of the pole pair 0.9 at ±30°: one sample per second.
The first point sits at angle Ω = 30° and its height is the first stem: 1.
Describe this picture
of the pole pair 0.9 at ±30°, one sample per second; the picture has no control. On the left, the plane of positions, with “real part” across and “imaginary part” up and a circle labelled “unit circle”; on the right, the stems of against sample . Each second a spiral point and its stem appear together, with a dotted line joining the point’s height to the stem. Readouts give “n”, “Length”, “Angle” and “h[n]”; the angle goes from 0° to 330°, so at it reads 0°. At the middle frame, , the last point is on the negative real axis at length 1.181. The clip ends at .
The first point sits at , angle , and its height is the first stem, 1. Each sample turns the point by 30° and shrinks it to 0.9 of its length, and its height is the stem. At the stems, to three decimals, are . The last point is on the negative real axis, at length , so its height is 0. The stem at is : the height rings and dies away. Look at where the stems cross zero. A turn of per sample means a half turn every six samples, so the stems cross zero at and , while the size shrinks by 0.9 at every sample.
Worked example
- First order, s. The 10 % point is at s and the 90 % point at s. The rise time is s. The 2 % settling time is s.
- Second order, rad/s and . The decay rate is and , so the poles are . The overshoot is , which is , so the peak value is . The peak comes at s. The 2 % settling time is about s. The quality factor is .
- Critical damping. The step response is with . At it is . It enters the 2 % band where , at .
- Three absorbers, rad/s. For the overshoot is . The response is , , and , and it settles for good at 11.23 s. For it settles at 5.834 s. For the poles are and , and gives , and , settling at 14.88 s.
- Mirror spirals, . The poles are . The gap is with . Its length is and its angle is . At the response is .
- Resonance, . The steady gain is , which gives at , at and at . The page only shows simulated readouts. The swing sizes at 10 s are , and .
- Discrete pair, and . With and , the recursion gives , , , , , and . For example . The spiral point is , and .
- Overshoot against . For and the overshoot is , , , , and .
- A mirror partner. A real second-order system has a pole at . Its other pole is the mirror image, . Only with both is its free motion real.
Where you’ll meet this
Many physical systems are one of these two families, or a few of them chained: a heating room, a loudspeaker cone, a suspension, a car seat, a pendulum, a tuned circuit in a radio. When a datasheet quotes a rise time, an overshoot or a quality factor, it is quoting the numbers on this page. The next chapters ask for the response to every rhythm at once, not only three, and for a way to find poles without solving the equation: Frequency response and Bode plots (8.4), The Laplace transform (9.1), Poles, zeros and the s-plane (9.3) and, for the discrete twin, Transfer functions, poles and zeros (16.3). Bandwidth, which belongs to the first-order system too, waits for 8.4 because it needs the response at every rhythm.
The maths behind it · eigenvalues in conjugate pairs
Write the second-order equation as a pair of first-order equations, and one step of the motion is a matrix, . Its eigenvalues are the two poles. A real matrix has complex eigenvalues only in conjugate pairs, for the same reason a real signal needs both spirals. A complex pair is a rotation and a shrink, exactly the rotate-and-scale of 3.3.
The maths behind it · averaging random noise
A first-order system is an averager. The leaky integrator of 6.1, , fed readings that are random, independent, average 0 and average squared size 1, ends with output average squared size . For that is . A larger is a larger time constant, because . It buys less noise and a slower response, the trade every smoother makes.
Reference card
| Quantity | Formula | Notes |
|---|---|---|
| First order | step response ; free motion | |
| Rise time (10 % to 90 %) | ||
| 2 % settling | 5 %: | |
| Second order | natural frequency , damping ratio ; mass and spring: , | |
| Poles (free motion) | try : | ; ; real if |
| Regimes | under-damped, critically damped, over-damped | critical: fastest without overshoot, not fastest to settle |
| Real system | the two poles are a mirror pair , | one complex pole alone gives a complex signal |
| Overshoot | ||
| Peak time | ||
| 2 % settling | rule of thumb, | |
| Quality factor | steady swing at relative to a steady push | |
| Discrete first order | , | pole ; decays if |
| Discrete pair | poles |