Central difference interpolation
Newton's forward and backward interpolation formulae are lopsided: each leans on differences taken from only one side of a chosen starting point, so they converge fast only when that point sits near an end of the table. What happens when the value you actually need lies somewhere in the middle? Pushing a one-sided formula through a mid-table point wastes accuracy — the series converges slowly because is forced to be large. Central-difference formulae fix this by centering the difference table on the tabulated point nearest and drawing symmetrically from both sides. Gauss's forward and backward formulae are the building blocks; averaging them gives Stirling's formula, the workhorse for mid-table interpolation. This article builds the idea, derives Stirling's formula from the Gauss pair, and reworks the syllabus example in full.
For a point near the middle of an equally spaced table, averaging Gauss's forward and backward formulae into Stirling's formula uses differences symmetric about the nearest tabulated point , keeping small and the series fast-converging.
The core idea
Why one-sided formulae struggle mid-table. Newton's forward formula fixes at the first row and marches forward through ; Newton's backward formula fixes at the last row and marches backward. Either way, if the interpolation point sits in the interior, is far from zero for whichever endpoint you anchor at, so the truncated polynomial needs many terms to be accurate. The fix is to anchor at the tabulated point nearest , so stays small (typically ), regardless of where in the table falls.
Gauss's forward formula (for , i.e. just ahead of ) uses one diagonal of differences that zig-zags outward from :
where: is the table value at the origin row, denotes the -th forward difference starting at the row steps from (negative means rows above ), and .
Gauss's backward formula (for , i.e. just behind ) uses the mirror-image diagonal:
Averaging the two gives Stirling's formula, which is symmetric about and is the standard choice whenever :
The differences needed — , , , , , — sit around in a diamond shape when written into a difference table, which is why picking the right origin row matters as much as picking the right formula. Like Newton's formulae, all three of these are still truncated polynomial fits through the tabulated points; nothing about the underlying mathematics changes. The only thing that changes is bookkeeping — which diagonal of the difference table is used, and where it is centred — chosen so that stays small and the series converges in as few terms as possible for a point that happens to sit mid-table rather than near an end.
The goal is to show that Stirling's formula is nothing new — it is simply the term-by-term average of Gauss's forward and Gauss's backward formulae, and to confirm that averaging is what makes each odd-order difference term appear as a symmetric average of two neighbouring differences rather than a single lopsided one.
Step 1. Write both Gauss formulae with matching term order. Gauss forward: . Gauss backward: . Both share the same constant term and the same second-order coefficient's difference .
Step 2. Average the two first-order terms. Forward contributes , backward contributes ; their average is — exactly the first-order term seen in Stirling's formula above.
Step 3. Average the second-order terms. Forward's coefficient is and backward's is ; both multiply the same difference , so averaging the coefficients gives , matching Stirling's second-order term.
Step 4. Average the third-order terms. Both share the coefficient , but forward attaches it to while backward attaches it to — different differences. Averaging gives , and writing reproduces the third-order term of Stirling's formula exactly. Higher-order terms follow the same pattern: even orders share one difference and their coefficients simply average; odd orders keep the same coefficient but the two differences themselves get averaged.
Worked example
Given the table with (spacing ), Stirling's formula centered at was used earlier to estimate . Here the same difference table is reused to estimate , confirming the near-symmetric behaviour predicted by the derivation above.
Step 1. The difference table centered at (built once, reused for any near 30) gives , , , ; , , ; , ; .
Step 2. Compute — small, as required for Stirling's formula to be accurate.
Step 3. Substitute term by term into Stirling's formula with : Term 1 is . Term 2 is . Term 3 is . Term 4 is (the two third differences cancel here, so this term vanishes regardless of the coefficient). Term 5 is .
Step 4. Sum the terms: .
Competitive stretch
Compare with from the same table (obtained with , same origin). Because and are mirror displacements, the odd-order terms (Term 2, Term 4) flip sign while the even-order terms (Term 3, Term 5) stay identical — a direct consequence of Step 2 and Step 4 of the derivation above, and a fast sanity check: and differ only in the sign of the odd terms, exactly as the symmetric structure predicts.
Common traps
- Choosing far from instead of the nearest tabulated point — this defeats the whole purpose of a central formula by making large again.
- Mixing up which diagonal a difference like belongs to — central formulae draw from both sides of , unlike Newton's one-sided formulae.
- Forgetting to average both the coefficients (even orders) and the differences themselves (odd orders) when deriving or applying Stirling's formula — skipping either average breaks the symmetry that makes it accurate.
- Applying Stirling's formula too close to a table edge, where there are not enough points on one side to build the required differences — fall back to Newton's forward or backward formula instead.
Ask the tutor: If building the difference diamond for a new table feels confusing, ask the AI tutor to walk through constructing it row by row for a fresh set of data points.
Why does Stirling formula need p between minus 0.25 and 0.25 while Gauss formulae only need p between minus 0.5 and 0.5?
Stirling's formula is built by averaging Gauss forward and Gauss backward, and that averaging cancels some error but does not remove the underlying truncation error of a polynomial fit. In practice the averaged series converges fastest, and stays most accurate, closest to the origin , so the tighter window is where Stirling's formula outperforms using either Gauss formula alone; outside that window Gauss forward or backward (whichever fits) is still fine up to .
If Term 4 in the worked example is zero does that mean the third-difference correction never matters?
No — it was zero here only because and happened to average to zero for this particular table. In general the two third differences will not cancel, and Term 4 contributes a real correction. Always compute both third differences and average them rather than assuming the term vanishes; this table's cancellation is a coincidence of the data, not a property of Stirling's formula.
How do I decide whether to center the difference table at x0 equal to 30 or some other row?
Pick the tabulated nearest to the interpolation point , so that has the smallest possible magnitude. For or in this table, gives , well inside Stirling's accurate range. If you instead anchored at , you would get or , far too large for a central formula to converge quickly — you would need many more terms for the same accuracy.