Finite Difference Table & Newton Forward/Backward Lab
Edit equispaced tables to inspect Δᵏ/∇ᵏ diagonals, truncated degree behavior, and remainder bounds.
Build forward/backward difference triangles, evaluate non-uniform Lagrange cardinal basis polynomials L_k(x), and bound remainder error.
Steam/thermodynamic property table lookup, sensor calibration curves, CNC spline interpolation, and CFD staggered finite-difference stencils.
When an experiment gives only discrete sample points , how do we fit an exact passing polynomial—and measure how accurate it stays between samples?
Over equally spaced grids, Forward () and Backward () difference tables eliminate redundant matrix inversions: Newton Forward hugs the start while Newton Backward hugs the end , and at full degree both agree identically with Lagrange interpolation.
For arbitrary non-uniform nodes, cardinal basis functions equal at and at all , creating one unique interpolant governed by the Cauchy remainder error .
Why do truncated Newton Forward and Backward curves differ mid-table yet coincide at degree n—and why can high-degree uniform interpolation blow up near edges?
Edit y_i entries in the difference triangle to watch Δ^k diagonals shift, then test non-uniform nodes in the Lagrange basis explorer.
Once discrete samples are interpolated by quadratics or cubics, integrating those local interpolants yields the Trapezoidal and Simpson's 1/3 quadrature rules in Chapter 6.2.4.
Edit equispaced tables to inspect Δᵏ/∇ᵏ diagonals, truncated degree behavior, and remainder bounds.
Verify L_k(x_j) = δ_{kj}, partition of unity Σ L_k(x) = 1, and non-uniform polynomial curves.
Preparing interactive canvas & numerical solver…
wanna math drafting viewport
Preparing interactive canvas & numerical solver…
wanna math drafting viewport
Each forward difference acts like a discrete derivative scaled by : the -th column turns constant for degree- data.
At full degree , all three produce the exact same unique degree- polynomial! Truncated forms differ: use Newton Forward near , Backward near , and Lagrange whenever nodes have uneven spacing.
Zero at every data node , yet uniform high-degree grids grow near boundaries (the Runge phenomenon).
Edit equispaced tables to inspect Δᵏ/∇ᵏ diagonals, truncated degree behavior, and remainder bounds.
Verify L_k(x_j) = δ_{kj}, partition of unity Σ L_k(x) = 1, and non-uniform polynomial curves.
For any degree-3 polynomial, Δ³y is constant (0.75) and Δ⁴y₀ = 0 identically — degree-3 gives zero remainder!
| xᵢ | yᵢ | Δ¹ / ∇¹ | Δ² / ∇² | Δ³ / ∇³ | Δ⁴ / ∇⁴ |
|---|---|---|---|---|---|
| -1.0 | 2.625 | -1.750 | 0.750 | 0.000 | |
| -0.5 | 0.875 | -1.000 | 0.750 | — | |
| 0.0 | -0.125 | -0.250 | — | — | |
| 0.5 | -0.375 | — | — | — | |
| 1.0 | — | — | — | — |
Non-uniform spacings (0, 0.4, 1.3, 2.5) prevent finite-difference tables — Lagrange works directly with exact L_k(x).
| k | Node xₖ | Value yₖ | Basis Lₖ(x) |
|---|---|---|---|
| k=0 | -0.2570 | ||
| k=1 | 0.8348 | ||
| k=2 | 0.4495 | ||
| k=3 | -0.0273 |