A topic in the Open Knowledge Graph — a free, open map of 15,290 topics and the order to learn them in.

Cubic Spline Interpolation

Graduate Depth 101 in the knowledge graph I know this Set as goal
574prerequisites beneath it
See this on the map →
Interpolation Error AnalysisChebyshev Nodes and Optimal Interpolation
splines cubic interpolation

Core Idea

Cubic spline interpolation uses piecewise cubic polynomials with continuous first and second derivatives at the nodes. This approach avoids Runge's phenomenon and produces smooth, stable interpolants without oscillation. Cubic splines are widely used in computer graphics, CAD, and numerical analysis because they balance smoothness with computational efficiency.

Explainer

If you've studied interpolation error analysis, you've seen one fundamental problem with high-degree polynomial interpolation: adding more data points can actually *worsen* the fit, particularly near the endpoints. This is Runge's phenomenon — oscillations that grow unboundedly for uniformly spaced nodes as the polynomial degree increases. The fix is not to use a single high-degree polynomial, but to break the domain into pieces, fit a low-degree polynomial on each piece, and stitch them together smoothly. This is the spline idea.

A cubic spline on n+1 nodes x₀ < x₁ < ... < xₙ is a piecewise cubic polynomial S(x) satisfying three conditions: (1) S(xᵢ) matches the data value at each node, (2) the pieces join continuously at interior nodes, and (3) the first and second derivatives also match at each interior junction. The C² smoothness condition — continuous up to the second derivative — is what makes the result look visually smooth: no kinks and no sudden changes in curvature. A physical analogy: a thin elastic rod forced through the data points naturally minimizes bending energy, which corresponds mathematically to minimizing ∫[S''(x)]² dx. The natural cubic spline achieves exactly this minimum, making it the shape a drafting spline would take.

Setting up the spline requires solving a tridiagonal linear system for the second derivatives at interior nodes. This system is sparse, symmetric, and diagonally dominant — properties that make it extremely fast to solve (O(n) time using the Thomas algorithm) and numerically stable. Two boundary conditions must be specified to close the system, since n−1 interior second derivatives give n−1 equations but you have n cubic pieces requiring 4n − 3 constraints. The most common choices are the natural spline (S'' = 0 at the endpoints, minimizing curvature there) or the clamped spline (specify S' at the endpoints when derivative data is available).

The payoff is that cubic splines achieve near-optimal interpolation accuracy — O(h⁴) error on n intervals with spacing h — without the endpoint blowup of global high-degree polynomials. This makes them the default choice in computer graphics (smooth Bézier-style curves through control points), CAD/CAM (smooth tool paths in numerical machining), and scientific computing (interpolating tabulated data like thermodynamic properties). The key insight is that smoothness and stability come not from higher-degree polynomials globally, but from enforcing derivative continuity locally across piecewise low-degree pieces. The tradeoff you paid — solving a linear system instead of evaluating a single formula — is minimal, and the gain in stability is enormous.

Practice Questions 5 questions

Prerequisite Chain

Understanding ZeroThe Number ZeroCounting to FiveCounting to 10Counting to 20Counting a Set of Objects Up to 20Cardinality: The Last Number CountedMatching Numerals to QuantitiesSubitizing Small QuantitiesAddition Within 10Number Bonds to 10Addition Within 20Doubles and Near DoublesDoubles Facts Within 10Near Doubles Facts Within 20Mental Math Strategies for AdditionMental Math: Adding and Subtracting TensAddition Within 100Repeated Addition as MultiplicationMultiplication as Equal GroupsMultiplication: ArraysBasic Multiplication Facts (0s, 1s, 2s, 5s, 10s)Multiplication Facts Within 100Division as Equal SharingDivision as Grouping (Measurement Division)Division: Grouping (Repeated Subtraction) ModelDivision: Fair Sharing ModelDivision as Equal SharingDivision as GroupingBasic Division FactsDivision Facts Within 100Multiplication and Division Fact FamiliesRelationship Between Multiplication and DivisionDivision Facts as Inverse of MultiplicationRemainders and Quotients in DivisionDivision Word ProblemsMulti-Step Word ProblemsSolving Multi-Step Word ProblemsMultiplication Word ProblemsDivision Word ProblemsIntroduction to Long DivisionFactors and MultiplesPrime and Composite NumbersEquivalent FractionsRelating Fractions and DecimalsDecimal Place ValueIntegers and the Number LineComparing and Ordering IntegersAbsolute ValueAdding IntegersSubtracting IntegersMultiplying IntegersDividing IntegersUnit RatesProportionsPercent ConceptConverting Between Fractions, Decimals, and PercentsOperations with Rational NumbersTwo-Step EquationsSolving Multi-Step EquationsEquations with Variables on Both SidesAngle Pairs: Complementary, Supplementary, and VerticalParallel Lines and TransversalsCorresponding AnglesAlternate Interior AnglesTriangle Angle Sum TheoremExterior Angle TheoremTriangle Inequality TheoremSimilar Triangles: AA SimilaritySimilar Triangles: SSS and SAS SimilarityProportions in Similar TrianglesRight Triangle Trigonometry IntroductionSine, Cosine, and Tangent RatiosTrigonometric Ratios ReviewRadian MeasureConverting Between Degrees and RadiansThe Unit CircleGraphing Sine and CosineGraphing Tangent and Reciprocal Trigonometric FunctionsDerivatives of Trigonometric FunctionsAntiderivativesIndefinite IntegralsBasic Integration RulesRiemann SumsDefinite Integral DefinitionFundamental Theorem of Calculus Part 1Fundamental Theorem of Calculus Part 2U-SubstitutionPartial Fraction Decomposition for IntegrationImproper Integrals - ConvergenceIntegral TestP-SeriesComparison TestLimit Comparison TestSeries Convergence Test StrategyPower SeriesRadius and Interval of ConvergenceTaylor SeriesInterpolation Error AnalysisRunge's PhenomenonChebyshev Nodes and Optimal InterpolationCubic Spline Interpolation

Longest path: 102 steps · 574 total prerequisite topics

Prerequisites (2)

Leads To (0)

No topics depend on this one yet.