by-hahn — Blog

Byoungyoon Hahn's Blog.

Part 1.3: The Right Place, The Wrong Way

Control x AI / System Response and Motion Quality

2026-05-05 · 10 min
📑 Table of Contents

This is the third article in Part 1 of the Automatic Control × AI series. The previous article, Part 1.2: The World as Equations, introduced mathematical models for physical systems and the transfer function. This article builds directly on that foundation.


A robotic arm is about to place a fragile component onto a circuit board. The control system sends a command: move to position X. The arm accelerates, reaches the target, and then keeps going. It overshoots by a few millimeters, swings back past the target, overshoots again in the other direction, and eventually settles into the correct position after several oscillations. The component lands crooked, if it lands at all.

This is not a failure of perception. The system knew exactly where it needed to go. It is not a failure of decision-making either. The command was correct. The failure was in the motion itself. The system arrived at the right destination in entirely the wrong way.

Coming from an AI background, my first instinct was to think of this as a solved problem. A system receives a target, reaches it, done. In most of what I had studied up to that point, when “path” came up at all, it meant something computational: finding the shortest route between nodes, minimizing the number of steps to convergence, reducing the cost of getting from A to B. The physical trajectory itself was never really the concern, because in software, how you arrive at an answer leaves no mark on anything. The answer is either right or it is not.

What I did not fully appreciate until studying control systems is that in physical systems, the path is not an abstraction. It is real motion, unfolding in time, subject to forces and inertia and the limits of hardware. A joint that overshoots does not simply arrive at the wrong position for a moment and then correct itself cleanly. It carries momentum. It stresses mechanical components. It may interfere with whatever the system is supposed to be doing. The motion itself has consequences, and that was a more unfamiliar way of thinking than I expected.


Asking a System a Question

One of the most useful ways to understand how a system behaves is to give it a specific kind of input and observe what happens. The input most commonly used in control theory is called the step input.

A step input is simple: the signal is zero, then at some moment, it instantly jumps to a fixed value and stays there. If you are controlling the position of a motor shaft, a step input might represent a sudden command to move from zero degrees to ninety degrees. If you are controlling a temperature, it might represent a target that suddenly changes from room temperature to a new setpoint.

The reason engineers use step inputs so often is that they are standardized and easy to compare. Any system you want to analyze gets the same kind of question, and the response it produces tells you a great deal about its character.

The shape of that response is called the step response, and it can look dramatically different depending on the system. Some systems accelerate smoothly and level off just below the target. Others race past the target, swing back, and oscillate several times before settling. Others climb so slowly that reaching the target takes far longer than it should. And some never actually reach the target at all.

Each of those patterns corresponds to real behavior in real systems. Understanding what they mean is the point of this article.


The Four Things We Look At

When engineers analyze a step response, they tend to focus on four characteristics. Each one captures something distinct about how the system behaves.

Rise Time

The rise time is how quickly the system climbs from its initial state toward the target. More precisely, it is usually defined as the time it takes for the response to go from ten percent to ninety percent of the target value, though this convention can vary slightly depending on the context.

A fast response is often desirable, but speed alone says very little about whether the motion is actually usable. A robot joint that reaches its target angle in half the time but overshoots and oscillates before settling may be slower in practice than one that rises more steadily, because the downstream task cannot begin until the motion has actually stopped.

Overshoot

Overshoot is how far the system exceeds its target before eventually settling. It is typically expressed as a percentage of the target value.

If a motor is commanded to reach ninety degrees and momentarily reaches one hundred and eight degrees before settling, the overshoot is twenty percent. For some applications, a small amount of overshoot is acceptable. For others, it is not acceptable at all. A robot placing a fragile component, a surgical tool, a satellite adjusting its orientation in space: in systems like these, overshoot is not just a performance concern. It is a safety concern.

Settling Time

The settling time is how long the system takes to stay close enough to the target that we consider it settled. Close enough is usually defined as within some tolerance, often two or five percent of the target value, and the system has to stay within that range from then on rather than just passing through it.

This is different from rise time. A system can reach the target quickly but then oscillate around it for a long time before finally settling. In that case, the rise time is short but the settling time is long. What matters for practical use is often settling time, because a system that keeps swinging back and forth is not actually doing its job, even if it got close quickly.

Steady-State Error

A fourth characteristic worth naming is steady-state error: the gap that remains between the target and where the system actually ends up, even after all the oscillation is over. Unlike rise time or overshoot, this is not a question of how the system gets to the target. It is a question of whether the system ever truly arrives at all. That distinction matters, and I will return to it in a later article.


The Shape Behind Everything: Damping

What determines whether a system overshoots a lot, a little, or not at all? Why do some systems oscillate while others slide smoothly into position? The answer involves a quantity called the damping ratio, which I will denote as $\zeta$ (the Greek letter zeta).

This quantity, along with the natural frequency of the system, shapes almost everything about the step response for a standard second-order system. And the best way to understand what it means is to look at what happens when it takes different values.

The term comes directly from the mass-spring-damper model introduced in the previous article. The damping coefficient, which represented how much the physical damper resisted rapid motion, is the physical origin of this idea. Damping ratio is the normalized version of that concept: a dimensionless quantity that tells you how much dissipation exists in the system relative to what would be needed to prevent any oscillation at all.

Underdamped: Fast but Oscillatory

When the damping ratio is between zero and one ($0 < \zeta < 1$), the system is called underdamped. This is the robot arm that overshoots and oscillates before settling.

The response rises quickly, crosses the target, swings back past it, crosses again, and so on, with each oscillation slightly smaller than the last. The system eventually settles, but the path to settling is unsteady. A lower damping ratio means more oscillation and more overshoot.

In many applications, some degree of underdamping is accepted in exchange for a fast rise time. The trade-off is real and unavoidable.

Critically Damped: The Boundary Case

When the damping ratio is exactly one ($\zeta = 1$), the system is called critically damped. This represents the boundary between oscillatory and non-oscillatory behavior: the fastest response that reaches the target without crossing it.

The response climbs toward the target, decelerates as it approaches, and settles without any ringing. Beyond this point, adding more damping only makes the system slower.

In practice, achieving perfect critical damping is difficult because it requires knowing the system’s parameters precisely and tuning against them. Real systems are rarely sitting exactly at this boundary.

Overdamped: Slow but Non-Oscillatory

When the damping ratio is greater than one ($\zeta > 1$), the system is called overdamped. The response climbs toward the target without overshooting, but more slowly than the critically damped case.

An overdamped system sacrifices speed in exchange for a guaranteed absence of oscillation. That trade-off can be worthwhile when overshoot would cause damage or when the cost of slow motion is lower than the cost of any ringing at all. A heavily overdamped system might be perfectly safe but frustratingly slow to use.


The Underlying Equation

These three behaviors all come from the same mathematical framework introduced in the previous article. The transfer function for a standard second-order system can be written as:

$ G(s) = \frac{\omega_n^2}{s^2 + 2\zeta\omega_n s + \omega_n^2} $

Where $\omega_n$ is the natural frequency of the system and $\zeta$ is the damping ratio. The natural frequency tells you how fast the system would oscillate if there were no damping at all, like a pendulum swinging freely. The damping ratio tells you how quickly those oscillations lose energy. Neither parameter is meaningful in isolation: the same damping ratio on a very fast system produces very different behavior than on a slow one.

Together, these two parameters fully determine the step response behavior for this class of systems. For standard second-order systems, rise time, overshoot, and settling time can all be approximated from $\omega_n$ and $\zeta$ alone. The mechanical or electrical details of a specific physical system matter for calculating what those values actually are, but once you have them, the shape of the response follows directly.


What This Has to Do with AI

When I first encountered these response metrics, I thought of them as a purely mechanical concern. But the more I have looked at AI systems that interact with the physical world, the more I see the same trade-offs appearing in different forms.

The Problem of Reward Design

In reinforcement learning (RL), an agent learns a policy by receiving rewards for behavior that achieves a goal. The design of that reward function has an enormous effect on the kind of behavior that emerges.

Suppose you are training a robotic arm to move to a target position. If you only reward the agent for reaching the correct position, without penalizing how it gets there, the resulting policy might be fast but highly oscillatory. The arm thrashes and overshoots because nothing in the training signal told it that overshooting was bad. From the reward function’s perspective, reaching the position at all was the only thing that mattered.

To get behavior that resembles a well-damped response, you often have to encode something like “settle smoothly” into the reward function directly. This might mean penalizing large velocities near the target, penalizing deviation from the target over time, or penalizing the total energy used during motion. In some sense, this begins to resemble the same trade-off a classical control engineer faces when tuning damping behavior: speed versus smoothness, and the cost of getting the balance wrong.

There is a practical reason this matters beyond aesthetics. A policy that looks successful in simulation can become problematic on real hardware if its motion is too aggressive or oscillatory. Actuators have limits. Joints that are commanded to reverse direction rapidly can saturate or wear out. A policy that chatters around the target, switching back and forth at high frequency, might achieve a good average position while causing mechanical stress that a classical controller would never produce. This gap between simulation performance and real-world behavior is a well-known problem in robotics, often called sim-to-real transfer, and the quality of learned motion is one of the places where it shows up most clearly.

Motion Quality as a Design Constraint

There is a broader point worth making. The step response metrics described in this article represent a vocabulary for describing the quality of motion, not just whether a system reaches its goal, but how it moves while doing so.

This vocabulary turns out to be directly useful when thinking about what to ask of a learned policy. A rehabilitation robot needs smooth trajectories because oscillatory motion causes discomfort. A manufacturing arm needs short settling times because it repeats the same motion hundreds of times per minute. A drone carrying fragile cargo needs minimal overshoot near the endpoint because the payload does not tolerate sudden reversals.

In each case, the performance criteria are not just “did it reach the target” but “how did it get there.” Control theory has been formalizing that question for decades. The more physical AI systems need to meet real-world deployment standards, the more that same vocabulary becomes relevant for evaluating what a learned policy is actually doing.


What Comes Next

Understanding how a system responds to a command tells us a lot. But there is a deeper question that the step response alone cannot answer.

What if the system does not just oscillate a little and settle, but oscillates more and more without ever stopping? What if increasing speed, load, or gain causes the system to completely lose control, not just undershoot or overshoot, but diverge entirely?

That is the question of stability. And it turns out that a system can appear perfectly well-behaved in some conditions and then become completely unstable in others, sometimes with almost no warning.

That is where the next article begins.

Menu

About

About Hahn, Byoungyoon

Custom SSG. Challenge to make a better structure than Jekyll using Github Actions. Posts URL: /category/slug/