A conveyor that stops 5 mm past its mark crushes a carton against the guide, and a pressure loop that swings above and below its setpoint six times after every change wears the valve and trips the relief. A first-order model cannot explain either fault, because a first-order process never overshoots. The cause is a second store of energy, or a feedback loop that adds one, and two numbers describe the result completely. This lesson shows where those two numbers come from, what they predict, and how to read them from a recording of a machine that already rings. #SecondOrderSystems #DampingRatio #StepResponse
Learning Objectives
By the end of this lesson, you will be able to:
Explain why a system with two stores of energy, or a loop closed around a lag and an integrator, can overshoot when a first-order process cannot
Classify a response as overdamped, critically damped, underdamped or undamped from its damping ratio
Calculate percent overshoot, peak time, rise time and settling time from the damping ratio and the natural frequency
Choose a controller gain that gives a stated overshoot
Estimate the damping ratio and the natural frequency from the peaks of a recorded response
Real-World System Problem: An indexing conveyor that must stop on its mark
An indexing conveyor moves a carton forward by one fixed step, stops, waits for a filling head, and moves again. A DC motor drives the belt, an encoder on the drive shaft measures position, and a proportional controller sets the motor voltage from the position error. When the error is large the motor runs fast. When the error reaches zero the voltage is zero, but the motor and belt are still moving, so the carton passes the mark and the controller must pull it back.
How far it passes the mark is the overshoot. A low gain makes the conveyor creep to its mark and the line loses output; a high gain makes it arrive sooner but overshoot more and swing several times before it rests. The filling head needs the carton inside a tolerance band before it can start, so the settling time decides the cycle rate of the whole line.
Position loop of the indexing conveyor
The motor is a first-order lag from voltage to speed. Position is the integral of speed. A loop closed around a lag and an integrator is the most common source of second-order behaviour in control, and the same mathematics describes a mass on a spring, a flexible belt and a pressure loop that rings.
Fundamental Theory: Damping ratio and natural frequency
Two stores of energy
A first-order process has one store: a tank of water stores heat, a rotating motor kinetic energy. When the input changes, the store fills or empties toward its new level, more slowly as it gets closer, and it cannot pass the new level because nothing is left to push it.
A second-order system has two stores that pass energy to each other, as in a mass on a spring: the spring stores energy in its stretch, the mass in its speed. At the rest position the spring force is zero but the mass is at its highest speed, so it continues. Energy moves from speed to stretch and back, and only friction, which is the damping, removes it. A door closer is such a damper: it brings the door to rest without a bounce.
The position loop behaves in the same way although it has no spring. The proportional controller acts as the spring: it pushes in proportion to the distance from the target. The motor inertia is the mass. The motor’s own speed-dependent losses are the damper.
The standard form
Every linear second-order system without dead time can be written in one standard form, with input and output :
The three parameters
is the steady-state gain: the final change in for each unit of change in .
is the natural frequency in rad/s: the frequency at which the system would swing if it had no damping at all. It sets the speed of the response.
(zeta) is the damping ratio, with no units: the damping present as a fraction of the damping that just prevents overshoot. It sets the shape of the response.
As a transfer function the same system is
To use the standard form, write the equation of your system so that the coefficient of the second derivative is 1. Then the coefficient of is and the coefficient of the first derivative is . A common mistake is to read these coefficients before dividing through, which gives a wrong natural frequency.
The four cases of damping
Try a solution in the equation with . It fits only if satisfies the characteristic equation , whose roots are
These roots are the poles of the system. The sign under the square root decides the shape of the response.
Damping ratio
Name
Poles
Step response
Overdamped
Two real, different
No overshoot, slow, two time constants
Critically damped
Two real, equal
Fastest response with no overshoot
Underdamped
A complex pair
Overshoots and rings, the ringing decays
Undamped
On the imaginary axis
Swings for ever at
A negative damping ratio means the swings grow. That is an unstable system, and it is the subject of the stability lesson of this course.
Most control loops are tuned to be underdamped with between about 0.5 and 0.8. A small overshoot is the price of a faster arrival. Critical damping is chosen where any overshoot causes damage, for example a machine tool axis that would cut too deep.
The underdamped step response
For and a step in the input of size , the output is
with two derived quantities:
is the damped frequency, the frequency of the ringing you see on a trend. It is always lower than . The term is the envelope: it sets how quickly the ringing dies. So the product decides the decay, and decides the period of the swings, .
Marks on an underdamped step response
Four numbers that describe the response
Step response of an underdamped second-order system
Percent overshoot, the height of the first peak above the final value, as a percentage of the final change:
Peak time, the time of the first peak, which is half of one damped period:
Settling time, the time after which the output stays within 2 percent of the final value:
Rise time, the time to first reach the final value (0 to 100 percent), with in radians:
Overshoot depends on alone, not on . This is why is called the shape number: two systems with the same have responses of the same shape, and only stretches or compresses the time axis.
0.1
0.2
0.3
0.4
0.5
0.6
0.7
0.8
Overshoot (percent)
72.9
52.7
37.2
25.4
16.3
9.5
4.6
1.5
The settling time formula comes from the envelope. The envelope has fallen to 2 percent when , which gives , rounded to 4. The quantity is the time constant of the envelope, so the rule is the same “four time constants” rule as for a first-order process.
Reading the damping ratio from a recorded response
Often the task runs in the other direction. You have a trend recording of a loop that rings and you need and . There are two methods.
From the overshoot. Measure the first peak above the final value and divide by the final change. Then invert the overshoot formula:
This needs the size of the step and a clean final value.
From the logarithmic decrement. Measure the heights and of two peaks on the same side of the final value, full periods apart, both measured from the final value. The logarithmic decrement is
This method needs no knowledge of the step size, so it also works on the ringing after a disturbance. With either method, the time between the two peaks gives the damped period , then and .
Poles in the s-plane as a picture
The two poles of an underdamped system are the complex pair
Plot them on a plane with the real part on the horizontal axis and the imaginary part on the vertical axis. This plane is called the s-plane, and the position of the poles shows the whole response in one picture.
Pole pair of an underdamped system in the s-plane
The distance of each pole from the origin is . Poles farther from the origin give a faster response.
The angle between the pole and the negative real axis satisfies . All poles on one ray from the origin have the same damping ratio, so the same overshoot. A ray at 45 degrees is .
The real part is . Poles farther to the left decay faster, so a vertical line is a line of constant settling time.
The imaginary part is , the frequency of the ringing. Poles on the real axis do not ring.
A design specification becomes a region of the s-plane. “Overshoot below 10 percent” means the poles must lie inside the two rays for . “Settling time below 2 s” means the poles must lie to the left of the vertical line at . The controller’s task is to move the poles into the region where both are true.
Application 1: Conveyor position loop, gain for 5 percent overshoot
Step 1: Write the closed loop in standard form
Click to reveal the closed-loop equation
Motor equation in position. Speed is , so the motor equation becomes ✅
Close the loop. Substitute and collect the terms in on the left: ✅
Make the leading coefficient 1. Divide every term by 0.5: ✅
Compare with the standard form. and , so ✅
Notice what the gain cannot change. The product for every value of . It is fixed by the motor time constant of 0.5 s. ✅
Step 2: Find the damping ratio for 5 percent overshoot
Click to reveal the damping ratio
Invert the overshoot formula with : . ✅
Damping ratio: ✅
Sense check. The table gives 4.6 percent at and 9.5 percent at , so 0.690 for 5 percent is consistent. ✅
Step 3: Find the gain and the natural frequency
Click to reveal the gain
Gain from the damping ratio. From : ✅
Natural frequency: ✅
Damped frequency: ✅
Poles.. ✅
Step 4: Predict the times and the peak position
Click to reveal the predictions
Peak time: ✅
Rise time., so ✅
Settling time (2 percent): ✅
Peak position for a 2.0 rad step. The overshoot is 5 percent of 2.0 rad, which is 0.10 rad, so the shaft reaches 2.10 rad at 3.00 s and then returns toward 2.00 rad. ✅
First voltage. At the instant of the step the error is 2.0 rad, so . This is far below any drive limit, so the linear model holds for this step. ✅
Step 5: Check with a numerical step response and with other gains
Click to reveal the check
Numerical step response. The Python script below computes the step response with scipy.signal.step and measures it. It finds 5.00 percent overshoot, a peak at 3.00 s and a first crossing of the final value at 2.22 s. All three match the formulas. ✅
Settling time. The measured 2 percent settling time is 4.14 s against the estimate of 4.0 s. The difference of 3.5 percent is the expected error of the envelope rule. ✅
Try a higher gain. With : , , overshoot 35.1 percent, peak at 1.05 s, measured settling time 3.54 s. ✅
Try critical damping. needs . There is no overshoot and the measured settling time is 5.83 s. ✅
Limiting case. Because at every gain, the estimate is 4.0 s at every gain. The measured values of 4.14 s and 3.54 s agree with this: nearly five times the gain bought only 15 percent in settling time. ✅
Application 2: Reading a pressure loop that rings
Step 1: Damping ratio from the first overshoot
Click to reveal the overshoot method
Final change:. ✅
First overshoot:, which is . ✅
Invert the overshoot formula., so ✅
Step 2: Damping ratio from the logarithmic decrement
Click to reveal the decrement method
Choose two peaks on the same side. The 1st peak and the 2nd peak are one full period apart, so . ✅
Heights above the final value: and . ✅
Logarithmic decrement: ✅
Damping ratio: ✅
The two methods agree at . ✅
Step 3: Natural frequency from the period
Click to reveal the frequencies
Damped period, from the 1st peak to the 2nd peak: . ✅
Damped frequency: ✅
Natural frequency: ✅
Cross-check with the peak time. The first peak should arrive at . The trace shows 1.60 s. The difference of 0.01 s comes from reading the period to two decimal places. ✅
Step 4: Settling time and a second check
Click to reveal the settling time and the check
Settling time (2 percent): ✅
Number of swings. full periods pass before the pressure stays within 0.01 bar of the setpoint (2 percent of the 0.50 bar change). ✅
Second check, over two periods. Use the 1st and 3rd peaks, : , so and . The period is . ✅
The model behind the trace. The recorded values were generated from a second-order model with and , then rounded to 0.01 bar and 0.01 s. Your estimates of 0.204 and 2.00 rad/s differ from the model only by that rounding. ✅
Verify It in Python
The script reproduces both applications. For the conveyor it compares the formulas with a numerical step response. For the pressure loop it repeats the calculation from the recorded extremes.
second_order_damping.py
import numpy as np
from scipy import signal
import matplotlib.pyplot as plt
defclosed_form(zeta, wn):
"""Overshoot (percent), peak time, 0 to 100 percent rise time, 2 percent settling time."""
check over two periods: zeta = 0.200, period = 3.21 s
Saved second_order_damping.png
The script keeps full precision, so its settling time of 9.79 s differs in the last digit from the hand value of 9.8 s, which used the rounded 0.204 and 2.00.
Common Mistakes
Reading and from an equation whose leading coefficient is not 1. Divide the whole equation by the coefficient of the second derivative first.
Using the ringing frequency seen on a trend as . The trend shows the damped frequency . Divide by to get . At the two differ by 2 percent, at by 29 percent.
Measuring overshoot from zero or from the starting value. Overshoot is the height of the first peak above the final value, divided by the change from start to final value.
Using a peak and a trough in the logarithmic decrement formula as if they were one period apart. They are half a period apart. Use two peaks, or two troughs, and count the full periods between them.
Expecting a higher proportional gain to shorten the settling time. In the position loop it raises and lowers by the same factor, so the decay rate does not change.
Applying the formulas to a response in which the motor voltage or the valve reached its limit. A saturated output is not linear and the response is slower than the formulas predict.
Summary
Overshoot needs two stores of energy, or a feedback loop around a lag and an integrator. A first-order process cannot overshoot.
The natural frequency sets the speed of the response and the damping ratio sets its shape.
For an underdamped system, overshoot depends on alone, peak time is , and the 2 percent settling time is about .
From a recording, the first overshoot or the logarithmic decrement gives , and the period between peaks gives and then .
In the s-plane, the distance of the poles from the origin is , their angle gives , and their real part gives the decay rate.
For the conveyor, gives 5 percent overshoot, a peak at 3.00 s and settling in about 4 s, and no proportional gain settles much faster.
Exercises
1. A system obeys . Find , , , the type of damping and the poles.
Answer
, , . Underdamped. Poles at , because .
2. The conveyor position loop of the first application is run with . Find , , the percent overshoot, the peak time and the estimated 2 percent settling time.
Answer
and . Overshoot percent. , so . .
3. A machine axis must not overshoot at all. For the same conveyor motor, find the largest that gives no overshoot, and the two poles at that gain.
Answer
No overshoot needs . The largest gain is at : , with . Both poles are at .
4. A flow loop is given a setpoint step. The recording shows a first peak 12 percent above the final change, 0.80 s after the step. Find , and the estimated 2 percent settling time.
Answer
, so . and . .
5. A belt tension roller is knocked and its displacement is recorded. One peak is 8.0 mm from rest and the peak three full periods later is 1.0 mm from rest. The three periods take 0.75 s. Find and .
Answer
and . , so and .
6. A specification asks for overshoot of at most 10 percent and a 2 percent settling time of at most 2.0 s. State the two conditions on the poles. Then decide whether the conveyor position loop with proportional control alone can meet the specification.
Answer
Overshoot of at most 10 percent needs , so the poles must lie within about 53.8 degrees of the negative real axis. Settling in 2.0 s needs , so the poles must lie to the left of . The conveyor loop has at every gain, so its poles stay on the line at . It can meet the overshoot condition (any ) but never the settling condition. A proportional controller alone is not enough.
References
K. Ogata, Modern Control Engineering, 5th edition, Prentice Hall, 2010. Chapter on transient and steady-state response analyses.
N. S. Nise, Control Systems Engineering, 7th edition, Wiley, 2015. Chapter on time response.
K. J. Åström and R. M. Murray, Feedback Systems: An Introduction for Scientists and Engineers, 2nd edition, Princeton University Press, 2021.
Predict first
A conveyor position loop has a proportional gain of 0.105 V/rad. It overshoots by 5 percent and settles in about 4 s. You raise the gain almost five times, to 0.50 V/rad. What happens to the settling time?
See it: where the poles are, and what the response does
Poles
Distance from the imaginary axis
Angle β from the negative real axis
Overshoot
Peak time
Ringing frequency ωd
Settling time, 4 ÷ distance
Settling time on this curve
The distance of the poles from the imaginary axis sets the settling time, and the angle β of the poles sets the overshoot. For a complex pair that distance is ζωₙ, so 4 ÷ distance is the lesson's estimate 4/(ζωₙ). The gold line in the left drawing is that distance, and the gold dashed line on the response is the estimate. The small dark dot is where this curve really enters the 2 percent band for the last time. Move ζ alone and the poles travel round a circle: the shape of the response changes. Move ωₙ alone and the poles slide along one ray: the overshoot stays the same and only the time changes. The faint rays are lines of constant damping ratio. With a mouse you can also drag a pole in the left drawing.
Check yourself
Three questions. Each wrong choice is a mistake people really make, so read the note after you answer.
1. Loop A has poles at −1 ± j1. Loop B has poles at −2 ± j2. How do their step responses compare?
2. A system obeys 2 d²y/dt² + 8 dy/dt + 32 y = 32 u. What are its natural frequency and damping ratio?
3. Two systems have the same natural frequency of 2 rad/s. One has ζ = 1 and the other has ζ = 2. Neither overshoots. Which one is inside the 2 percent band first?
Watch it build: reading a pressure loop that rings
A booster pump loop stepped from 4.00 to 4.50 bar rings before it settles.
First peak 4.76 bar: 0.26 bar over a 0.50 bar step, an overshoot of 52 percent.
Inverting the overshoot formula: 52 percent overshoot means ζ = 0.204.
Second peak 4.57 bar: δ = ln(0.26 ÷ 0.07) = 1.31, which also gives ζ = 0.204.
Peak to peak is one period, 3.21 s: ωd = 1.96 rad/s and ωn = 2.00 rad/s.
Position loop of the indexing conveyor
Marks on an underdamped step response (the conveyor at Kp 0.25)
Found this useful?
Discussion
No comments yet. Questions, results from your own build, a better way to explain it: all welcome.
Text size
←→
Previous and next card. On a turned card: Not yet, I knew it
SpaceEnter
Turn the card, show the answer
123
Overview, Recap, Test me
HomeEnd
First and last card
Esc
Close
← → or scroll · N notes · F full screen · B blank0:00
My notes on this page
Kept on this device only. Nothing is sent anywhere.
Tip: select words in the lesson, or tap a figure or an equation, to put a note right there.
Notes on earlier wording
The lesson has changed and these words are no longer in it. Your notes are kept, with the words you chose.