Skip to content
Infinitesimal Dynamics home
Notebook: 0 XP

Numerical Methods / Approximation and error

Polynomial Interpolation and Splines

Draw a smooth curve through data points, and learn why more points can make things worse.

3 min read · 1 sections · 1 checks

Contents 2 sections
  1. §1One polynomial through all the points
  2. ?Check yourself

By the end you can

  • Construct the Lagrange interpolating polynomial
  • Describe Runge’s phenomenon
  • Explain why cubic splines are preferred

Helps to know: Polynomials

§1One polynomial through all the points

Through n+1n + 1 points with distinct xx-values passes exactly one polynomial of degree at most nn. Lagrange’s form writes it as ∑yiLi(x)\sum y_i L_i(x), where LiL_i equals 1 at xix_i and 0 at the other nodes.

A cubic spline uses a separate cubic between each pair of points, matched in value, slope and curvature. It is what design software and font renderers draw.

Check yourself

  1. Q1
    The polynomial of least degree through (0,1)(0, 1), (1,3)(1, 3), (2,7)(2, 7) has degree at most…