Polynomial Interpolation Calculator
Fit the unique quadratic through three points with Lagrange interpolation, coefficients and residual verification. Free online calculator.
Calculator
Three Points
First node
First value
Second node
Second value
Third node
Third value
Interpolation Summary
Residual Check
f(0) = 1 vs y = 1 → residual 0
f(1) = 3 vs y = 3 → residual 0
f(2) = 7 vs y = 7 → residual 0
Results
Interpolant f(x)
1x² + 1x + 1
Unique quadratic through all three points
1
Curvature amount
1
Tilt component
1
Value at x = 0
0
Largest f(xᵢ) − yᵢ gap
True quadratic
Quadratic, line or constant
Coefficients come from Cramer's rule on the Vandermonde system and every node is verified with an explicit residual near machine zero.
Visualizations
|Coefficient| Sizes
Fit Completeness
Max Residual vs Tolerance 1e-9
Formula
Three constraints pin three coefficients; Cramer determinants extract each one from the Vandermonde system.
Alternative Form
Variables
| Symbol | Name | Unit | Description |
|---|---|---|---|
| xᵢ, yᵢ | Data points | pairs | Three nodes with distinct x |
| a, b, c | Coefficients | numbers | Solved via determinants |
| det | Vandermonde det | number | Nonzero ⟺ unique fit |
| residual | Fit error | number | f(xᵢ) − yᵢ, should be ~0 |
Explanation
Each Lagrange basis polynomial passes through exactly one node, so weighting by yᵢ threads the curve through all three.
Derivation
Substituting the nodes gives M·[a b c]ᵀ = y with Vandermonde M; det M = Π(xⱼ − xᵢ) ≠ 0 for distinct nodes, so Cramer yields the unique solution.
Step-by-Step Calculation
Follow each step to understand how the result is calculated from your inputs.
Write the system axᵢ² + bxᵢ + c = yᵢ.
Form the Vandermonde determinant.
Solve with Cramer's rule (replace each column by y).
Write the interpolant.
Verify at all three nodes.
Classify the fit.
Worked Examples
See how the calculator works with different scenarios.
Scenario
Classic quadratic data.
Inputs
Calculation
Solve → a=1, b=1, c=1
Result
f(x) = 1x² + 1x + 1
Interpretation
Check: f(2) = 4+2+1 = 7 ✓.
Understanding Your Result
Your Result: Interpolating quadratic with coefficients and residuals
Typical range: Residuals ~1e-15 (exact); a = 0 flags collinear data.
What This Means
The unique degree-≤2 curve threading all three points — exact at the nodes, smooth between them.
Why It Matters
It fills table gaps, animates keyframes, derives Simpson’s rule, and calibrates instruments from three readings.
Professional Interpretation
Trust interpolation between outer nodes; distrust extrapolation beyond them — quadratics run away fast.
Recommendations
- •Keep x-values distinct
- •Check residuals ≈ 0
- •Expect a = 0 for lines
- •Interpolate, avoid extrapolating
- •Plot to confirm shape
Educational Content
Introduction
This calculator fits the unique quadratic through any three non-degenerate points and proves the fit with residuals.
Concept Explanation
Three independent constraints determine three coefficients; determinants divide out each unknown cleanly.
Applications
Benefits
- •Unique-fit guarantee stated
- •Cramer steps transparent
- •Residuals auto-checked
- •Degenerate cases detected
- •Live curve plot
Limitations
- •Exactly three points
- •Degree ≤ 2 output
- •Distinct x required
Best Practices
- •Sort nodes for readability
- •Verify residuals
- •Watch for a = 0 lines
- •Stay inside the node span
- •Scale wild coordinates
Common Misconceptions
Practical Tips
- •Keep x distinct
- •Three points exactly
- •Read a as curvature
- •Check residuals ≈ 0
- •a = 0 means collinear
- •Stay between nodes
- •Re-plot after edits
Common Mistakes
Assumptions
This calculator makes the following assumptions to provide estimates:
Limitations
Be aware of these limitations when using this calculator:
Frequently Asked Questions
Answers to common questions about this calculator.
What is Lagrange interpolation?
Why do three points give a quadratic?
How do you solve for a, b, c?
What if the x-values repeat?
When does a line come out instead?
How do I verify the interpolant?
What is interpolation vs extrapolation?
Where is quadratic interpolation used?
Does order of points matter?
Related Calculators
Explore more calculators related to this topic.
Related Guides
Deepen your understanding with these educational resources.
Glossary
Technical terms used in mortgage calculations explained in plain language.
- Interpolation
- Estimating between known data nodes.
- Lagrange basis
- Polynomial 1 at one node, 0 at others.
- Vandermonde matrix
- System matrix [[xᵢ², xᵢ, 1]].
- Cramer's rule
- Determinant-ratio solution of linear systems.
- Residual
- Gap f(xᵢ) − yᵢ at a node.
- Node
- A given interpolation point.
- Degenerate fit
- Line or constant when a = 0.
- Extrapolation
- Estimating outside the node span.
Authoritative References
Trusted sources and standards referenced by this calculator.
Applicable Standards
Was This Calculator Helpful?
Page Information
2026-09-29
2.0.0
Free to use for educational and professional purposes.