NivaarExam PrepOfficial exam papers ↗

04-BS-5 · May 2017

Question 4 of 7: Newton’s Divided-Difference Interpolation

Nivaar worked solution (AI-drafted; not reviewed by a licensed engineer)

Notes on this paper

National Examinations, May 2017 — 04-BS-5 Advanced Mathematics, 3 hours, closed book (approved Casio/Sharp calculator and one double-sided aid sheet permitted). Any five of the seven questions constitute a complete paper and all questions are of equal value; all seven are answered below as a full study resource.

Reference texts: Kreyszig, Advanced Engineering Mathematics, 10th ed. (Wiley) — Ch. 5 (Series Solutions of ODEs), Ch. 11 (Fourier Series, Integrals and Transforms), Ch. 19 (Numerics in General: interpolation, integration, solution of equations by iteration), Ch. 20 (Numeric Linear Algebra). Supporting: Chapra & Canale, Numerical Methods for Engineers, 7th ed. — Ch. 5–6 (bracketing and open root-finding methods), Ch. 18 (interpolation), Ch. 22 (Romberg integration); Strang, Introduction to Linear Algebra, 6th ed. — Ch. 6 (eigenvalues, Cayley–Hamilton).

Question 4: Newton’s Divided-Difference Interpolation (20 marks)

Question text not reproduced: the examination questions are © Engineers and Geoscientists BC. Open the official past paper (linked at the top of this page) to read the question, then follow the worked solution below.

Given. Seven unequally spaced nodes and their function values:

$x$−4−2−10245
$F(x)$145−23−17−71193523

Find. The Newton divided-difference table for this data and the interpolating polynomial of highest possible degree, expanded in ordinary powers of $x$.

Approach. Build the divided-difference table column by column, read the leading diagonal as the Newton coefficients, then expand the nested product form. The highest possible degree is decided by the table itself: the last order whose difference is non-zero.

  1. Definition of the divided differences. The zeroth order entries are the data themselves, $F[x_i]=F(x_i)$, and each higher order is formed from two neighbours of the order below: $$F[x_i,\dots,x_{i+j}]=\dfrac{F[x_{i+1},\dots,x_{i+j}]-F[x_i,\dots,x_{i+j-1}]}{x_{i+j}-x_i}$$ Note the divisor uses the two outermost abscissae of the group, which is what makes the scheme work for unequal spacing — as here, where the gaps are 2, 1, 1, 2, 2, 1.
  2. First divided differences. For example $F[x_0,x_1]=\dfrac{-23-145}{-2-(-4)}=\dfrac{-168}{2}=-84$ and $F[x_5,x_6]=\dfrac{523-193}{5-4}=330$. The full column is $$-84,\quad 6,\quad 10,\quad 4,\quad 96,\quad 330$$
  3. Complete the table. Continuing the same rule upward through the orders:

    $x_i$$F[\,\cdot\,]$1st2nd3rd4th5th6th
    −4145−8430−7100
    −2−2362−110
    −1−1710−251
    0−742311
    219678
    4193330
    5523

    Two features decide the answer. The fourth-order column is constant at $1$, and consequently the fifth and sixth orders are identically zero. Seven points would in general support a degree-6 polynomial, but here $$\boxed{\text{the highest possible degree is }4}$$ because every coefficient beyond the fourth vanishes.

  4. Write the Newton form. Reading the leading diagonal $145,\,-84,\,30,\,-7,\,1,\,0,\,0$ as the coefficients, $$P(x)=145-84(x+4)+30(x+4)(x+2)-7(x+4)(x+2)(x+1)+1\cdot(x+4)(x+2)(x+1)x$$ The two omitted terms would carry the zero fifth and sixth differences, so nothing is lost by truncating here.
  5. Expand to standard form. Multiplying out each product, $$(x+4)(x+2)(x+1)x=x^4+7x^3+14x^2+8x,\qquad -7(x+4)(x+2)(x+1)=-7x^3-49x^2-98x-56$$ $$30(x+4)(x+2)=30x^2+180x+240,\qquad -84(x+4)=-84x-336$$ Collecting like powers, the cubic terms cancel ($7-7=0$), and $$\boxed{P(x)=x^4-5x^2+6x-7}$$
  6. Verify against every node. Substituting each abscissa reproduces the tabulated ordinate exactly: $P(-4)=256-80-24-7=145$; $P(-2)=16-20-12-7=-23$; $P(-1)=1-5-6-7=-17$; $P(0)=-7$; $P(2)=16-20+12-7=1$; $P(4)=256-80+24-7=193$; $P(5)=625-125+30-7=523$. All seven match, confirming both the table and the expansion.
Newton interpolant P(x) = x⁴ − 5x² + 6x − 7 through the seven nodes-4-2-102450200400600xF (x)7 data points, but the 5th and 6thdivided differences vanish -> degree 4
The quartic $P(x)=x^4-5x^2+6x-7$ drawn through all seven data points. Although seven nodes could support a degree-6 curve, the vanishing fifth and sixth divided differences show the data lie exactly on a quartic.
QuantityResult
Leading diagonal (Newton coefficients)$145,\ -84,\ 30,\ -7,\ 1,\ 0,\ 0$
Highest possible degree$4$ (5th and 6th differences vanish)
Newton form$145-84(x+4)+30(x+4)(x+2)-7(x+4)(x+2)(x+1)+(x+4)(x+2)(x+1)x$
Expanded polynomial$P(x)=x^4-5x^2+6x-7$