A curve can pass through every recorded point and still create a peak that none of those points supports. Smoothness does not prevent this: even one ordinary quadratic polynomial can overshoot a flat part of a nondecreasing data set.
For robot measurement records or lookup data, interpolation needs an explicit objective. Matching knots, retaining monotonicity, and making derivatives continuous are different mathematical requirements. None alone establishes the unknown physical behavior between observations.
SciPy's PchipInterpolator documentation describes monotonicity preservation and continuous first derivatives. MathWorks' pchip documentation likewise distinguishes its shape objective from other spline choices. The constructions below are original algebraic examples, not executed library outputs or a validated robot trajectory.
Three points define a smooth overshoot
Take dimensionless input x and response y, with data points (0, 0), (1, 1), and (2, 1). Their response values never decrease. The second interval has equal endpoint responses.
Seek one quadratic q(x) = ax² + bx + c passing through all three points. The first point gives c = 0. The next two give a + b = 1 and 4a + 2b = 1.
Subtracting twice the first equation from the second gives 2a = −1. Therefore a = −0.5 and b = 1.5, so:
q(x) = 1.5x − 0.5x².
It matches all three supplied values exactly. At x = 1.5, however, q = 2.25 − 1.125 = 1.125. The curve rises 0.125 above the plateau's endpoint value.
The derivative q'(x) = 1.5 − x becomes zero at 1.5 and negative afterward. Thus the interpolant increases and then decreases within [1, 2], even though the two data values there are equal.
This is interpolation inside the supplied domain, not extrapolation. The overshoot also requires no measurement noise, floating-point error, or large number of knots.
Smoothness does not settle the interpretation
The quadratic has continuous derivatives of every order. Its extra peak is not caused by a join between pieces.
If the true response between the three points were exactly this quadratic, the interpolant would be correct and the sparse data would simply conceal the peak. If independent knowledge instead established a nondecreasing response, the quadratic would violate that additional condition.
The three points alone do not decide between those physical stories. Calling the peak an artifact requires a justified expectation about the intended shape, rather than a rule that every curve above sampled values is physically impossible.
This is why shape preservation is a modeling choice. It retains specified properties of the supplied data without proving that the data fully describe the underlying process.
Piecewise linear interpolation gives another answer
Connect the first pair by a line and the second pair by a horizontal line:
L(x) = x for 0 ≤ x ≤ 1.
L(x) = 1 for 1 ≤ x ≤ 2.
This curve also matches every data point. At x = 1.5 it gives 1, with no peak. Within each interval it stays between the endpoint responses.
At the middle knot, however, its slope changes from 1 to 0. The function is continuous but its first derivative is not continuous there.
The quadratic and piecewise linear curves therefore satisfy different additional requirements while agreeing at every knot. More accurate arithmetic would not make their intermediate values converge to the same answer; their constructions differ.
A monotone cubic can also join a plateau
Construct a third curve independently:
H(x) = 1.5x − 0.5x³ for 0 ≤ x ≤ 1.
H(x) = 1 for 1 ≤ x ≤ 2.
The first piece gives H(0) = 0 and H(1) = 1. Its derivative is 1.5(1 − x²), which is nonnegative throughout [0, 1] and reaches zero at the middle knot.
The constant second piece also has derivative zero. This construction matches both value and first derivative at x = 1 while remaining nondecreasing. It gives H(1.5) = 1.
Its second derivative approaches −3 from the left and is zero on the right. The join is not twice continuously differentiable. That is a property of this invented curve, not a reported test of an interpolation package.
At x = 0.5, the three interpolants give different results: q = 0.625, L = 0.5, and H = 0.6875. All match the same three knots. Even requiring a plateau and no decrease does not identify every intermediate value on the rising interval.
What the PCHIP objective contributes
PCHIP means piecewise cubic Hermite interpolating polynomial. It chooses local slopes to preserve the data's monotonic shape rather than simply selecting one global polynomial.
SciPy documents a zero internal slope when neighboring secant slopes differ in sign or either is zero. For these data, the secant slopes are 1 and 0, so that documented internal rule selects zero at the middle knot. Its endpoint rules are additional parts of the algorithm.
This article's H construction is presented through its explicit formula; it is not claimed as output from a particular software execution. The official references explain why preserving a plateau and maintaining first-derivative continuity can be deliberate algorithmic goals.
On an interval whose endpoints both equal 1, any nondecreasing interpolant must remain exactly 1: a larger interior value would require a later decrease, and a smaller one would require an earlier decrease. That conclusion follows from monotonicity and the endpoints alone.
Shape constraints retain limits
Preserving monotonicity does not remove errors in the knots or reveal an unobserved narrow feature. If a process genuinely has a peak between equal samples, a monotone reconstruction will suppress that possibility by assumption.
Likewise, interpolating a noisy record exactly is different from estimating an underlying trend through noisy observations. A fitted model and an interpolant need not answer the same question.
The inside-domain properties discussed here also do not automatically apply to extrapolation beyond the first or last knot. Nor does a shape-preserving lookup curve establish acceptable robot acceleration, jerk, or actuator behavior.
For robot data, retain the knots, interpolation definition, domain, and intended shape constraints together. The original three-point example makes the tradeoff concrete: matching every point and drawing a smooth curve do not uniquely determine what should happen between them.
Sources checked October 23, 2026: SciPy documentation displayed as v1.18.0, PchipInterpolator, especially monotonicity and derivative rules: https://docs.scipy.org/doc/scipy/reference/generated/scipy.interpolate.PchipInterpolator.html
MathWorks, pchip, R2026b documentation, Shape-Preserving Piecewise Cubic Interpolation: https://www.mathworks.com/help/matlab/ref/pchip.html
Illustration note: A generic robot sensor or monitoring concept image may accompany this explanation. It does not show measured knots, an executed interpolator, or a validated robot motion.