Level 0: Foundation
★☆☆☆☆ Introductory⏱ 5 minGeneral audience. No mathematics required.Connect the dots, smoothly
You have a few dots on a page and want a smooth curve through all of them. A ruler gives straight segments with sharp corners. One big curvy formula might wiggle wildly between dots. The engineer’s answer is a spline, named after the flexible strips of wood shipbuilders bent through pegs: gentle curves, joined so smoothly you can’t see the seams.
Robot arms and drones follow splines through waypoints, because corners would demand infinite acceleration. Spacecraft ephemerides (SPICE kernels) store planetary positions as piecewise Chebyshev polynomials. Sensor calibration curves, CAD surfaces and camera lens-distortion maps are all interpolants.
- 1. An interpolant must…
- 2. Straight segments between waypoints give a robot…
- 3. A spline is made of…
Level 1: Beginner
★★☆☆☆ Basic⏱ 20 minSecondary-school mathematics: arithmetic and elementary algebra.Polynomial interpolation
Through points with distinct there is exactly one polynomial of degree ≤ n. In Lagrange form,
The barycentric form , with , evaluates it in per point and is numerically stable (Berrut and Trefethen, 2004).
Piecewise linear
Simple and robust, with error , but the derivative jumps at every node.
- 1. How many polynomials of degree ≤ 2 pass through 3 points with distinct x?
- 2. The Lagrange basis ℓⱼ(xᵢ) equals…
- 3. Piecewise-linear error scales like…
Level 2: Intermediate
★★★☆☆ Intermediate⏱ 40 minUndergraduate students and practising engineers.Interpolation error and the Runge phenomenon
For equispaced nodes the node polynomial is huge near the ends. For the error grows with n (Runge, 1901). Chebyshev nodes minimize and give geometric convergence for analytic f. That’s the basis of Chebfun and of JPL ephemeris storage.
Cubic splines
Use one cubic per interval, matching values and requiring continuous first and second derivatives. With second derivatives at the nodes, continuity of gives a tridiagonal system
End conditions:
- natural: ;
- clamped: prescribed end slopes, e.g. zero velocity at rest;
- not-a-knot.
The error is .
- 1. The Runge phenomenon is cured by…
- 2. Cubic splines solve a linear system that is…
- 3. A clamped spline prescribes…
Level 3: Advanced
★★★★☆ Advanced⏱ 40 minGraduate level, with full derivations and proofs.Proof of the error formula
Fix not a node and let , with chosen so that . Then has zeros. By Rolle, has a zero , and . ∎
Minimum curvature of the natural spline
Among all functions interpolating the data, the natural cubic spline minimizes . Write with . Integration by parts on each interval gives (it uses piecewise constant and zero at the ends). So . ∎ (de Boor, 1978.) The clamped spline has the same property among interpolants with the same end slopes.
Chebyshev optimality
over the Chebyshev nodes has the smallest maximum, , of all monic degree- polynomials on [−1, 1].
Exercise 3.1: quadratic through (0, 1), (1, 3), (2, 7)
, so .
- 1. The interpolation error proof uses…
- 2. The natural spline minimizes…
- 3. max|∏(x − xₖ)| over Chebyshev nodes on [−1, 1] equals…
Level 4: Expert
★★★★★ Expert⏱ 35 minResearchers: original papers and open problems.Rest-to-rest joint trajectory through waypoints
A robot joint must pass through 10 waypoints at 1-second intervals, starting and stopping at rest. The clamped cubic spline with zero end velocities is (continuous acceleration, so no torque jumps). It hits every waypoint, and its peak acceleration is about 4× lower than a single degree-9 polynomial’s, which also can’t satisfy the rest conditions. Linear interpolation is worse still: velocity jumps at every waypoint mean impulsive torques. Industrial and space manipulators use cubic or quintic splines (C⁴ for jerk-limited motion) or B-splines with time-optimal parametrization.
Interpolation in AI, robotics and aerospace
- Trajectory generation: cubic and quintic splines and minimum-snap polynomials for quadrotors (Mellinger and Kumar, 2011); B-splines in motion planners.
- Ephemerides: JPL DE ephemerides and SPICE kernels store positions as Chebyshev series over fixed time intervals.
- Calibration and lookup tables: thruster curves and aerodynamic tables are interpolated in flight software (often with linear or monotone cubic interpolation to avoid overshoot).
- Machine learning: kernel and RBF interpolation, and neural implicit representations as learned interpolants.
References
- J.-P. Berrut, L. N. Trefethen (2004). “Barycentric Lagrange interpolation.” SIAM Review, 46(3).
- L. N. Trefethen (2019). Approximation Theory and Approximation Practice, extended ed. SIAM.
- C. de Boor (1978). A Practical Guide to Splines. Springer.
- C. Runge (1901). “Über empirische Funktionen und die Interpolation zwischen äquidistanten Ordinaten.” Zeitschrift für Mathematik und Physik, 46.
- D. Mellinger, V. Kumar (2011). “Minimum snap trajectory generation and control for quadrotors.” ICRA.
- B. Siciliano, L. Sciavicco, L. Villani, G. Oriolo (2009). Robotics: Modelling, Planning and Control. Springer. Ch. 4.
- C. Acton (1996). “Ancillary data services of NASA’s Navigation and Ancillary Information Facility.” Planetary and Space Science, 44(1).
- F. Fritsch, R. Carlson (1980). “Monotone piecewise cubic interpolation.” SIAM J. Numerical Analysis, 17(2).