Loading…

Polynomial Interpolation

Math Algebra • Polynomial and Rational Functions

View all topics

Enter up to 10 points \((x_i,y_i)\). Choose a method, then press Calculate. You can also paste CSV points like 0,1 per line. The tool outputs the polynomial and a graph.

Points (case builder)

# \(x_i\) \(y_i\) Remove
Tip: numeric expressions allowed (e.g. pi/2, sqrt(2)).

Graph window

Error check (optional)

Ready
Probe (evaluate at \(x_0\))
\(x_0\):
\(x_0=0\)
Enter points and press Calculate. The solver will:
  • Compute the unique interpolating polynomial \(p(x)\) through your points.
  • Show Lagrange/Newton/barycentric forms (with tables).
  • Plot the points and the interpolating curve.

Drag to pan. Mouse wheel zooms (cursor-centered). Shift = y-zoom, Ctrl = gentler zoom. Double-click resets view. Points are plotted as dots; the curve is the interpolating polynomial.

Rate this calculator

0.0 /5 (0 ratings)
Be the first to rate.
Your rating
You can update your rating any time.

Frequently Asked Questions

What is polynomial interpolation?

Polynomial interpolation finds a polynomial p(x) that matches a set of data points exactly. With n points that have distinct x-values, there is a unique polynomial of degree at most n-1 such that p(x_i) = y_i for every point.

How do Lagrange and Newton interpolation differ?

Lagrange form expresses p(x) as a sum of basis polynomials that each match one data point, while Newton form builds p(x) incrementally using divided differences. Newton form is often convenient when adding points because coefficients come from a divided-difference table.

Why use barycentric interpolation weights?

Barycentric interpolation evaluates the interpolant in a numerically stable way without fully expanding large polynomial expressions. The weights can be defined as w_i = 1 / product_{j != i}(x_i - x_j) and are used to compute p(x) from weighted sums.

What happens if two points have the same x-value?

Interpolation formulas require distinct x-values. If two points share the same x but have different y-values, no single-valued function p(x) can pass through both points, so the interpolant is not well-defined.

Can I use the interpolating polynomial for extrapolation?

Extrapolation outside the data range can be unreliable because the polynomial can grow or oscillate rapidly beyond the input interval. Interpolation is most trustworthy within the span of the provided x-values.