BIT203 · 2080 · 5 marks
Evaluate fracdydx at x = 5 using Newton's forward interpolation formula using the following table. | X | 1 | 3 | 5 | 7 | 9 | |---|---|---|---|---|---| | y | -1.20 | 12.80 | 119.60 | 472.80 | 1302.80 |
Evaluate $\frac{dy}{dx}$ at $x = 5$ using Newton's forward interpolation formula using the following table.
| X | 1 | 3 | 5 | 7 | 9 |
|---|---|---|---|---|---|
| y | -1.20 | 12.80 | 119.60 | 472.80 | 1302.80 |
[5]
Evaluating dy/dx at x = 5 using Newton's Forward Interpolation Formula
Given
| X | 1 | 3 | 5 | 7 | 9 |
|---|---|---|---|---|---|
| y | -1.20 | 12.80 | 119.60 | 472.80 | 1302.80 |
- Uniform spacing: $h = 2$
- $x_0 = 1$
- Evaluate $\dfrac{dy}{dx}$ at $x = 5$
Solution
Forward Difference Table
$\Delta y$:
- $12.80 - (-1.20) = 14.00$
- $119.60 - 12.80 = 106.80$
- $472.80 - 119.60 = 353.20$
- $1302.80 - 472.80 = 830.00$
$\Delta^2 y$:
- $106.80 - 14.00 = 92.80$
- $353.20 - 106.80 = 246.40$
- $830.00 - 353.20 = 476.80$
$\Delta^3 y$:
- $246.40 - 92.80 = 153.60$
- $476.80 - 246.40 = 230.40$
$\Delta^4 y$:
- $230.40 - 153.60 = 76.80$
| X | y | $\Delta y$ | $\Delta^2 y$ | $\Delta^3 y$ | $\Delta^4 y$ |
|---|---|---|---|---|---|
| 1 | -1.20 | 14.00 | 92.80 | 153.60 | 76.80 |
| 3 | 12.80 | 106.80 | 246.40 | 230.40 | |
| 5 | 119.60 | 353.20 | 476.80 | ||
| 7 | 472.80 | 830.00 | |||
| 9 | 1302.80 |
Differentiation Formula
$$\frac{dy}{dx} = \frac{1}{h}\left[\Delta y_0 + \frac{2p-1}{2}\Delta^2 y_0 + \frac{3p^2-6p+2}{6}\Delta^3 y_0 + \frac{4p^3-18p^2+22p-6}{24}\Delta^4 y_0\right]$$
with $p = \dfrac{x - x_0}{h} = \dfrac{5-1}{2} = 2$.
Leading values: $\Delta y_0 = 14.00$, $\Delta^2 y_0 = 92.80$, $\Delta^3 y_0 = 153.60$, $\Delta^4 y_0 = 76.80$.
Coefficients at $p = 2$
- $\dfrac{2p-1}{2} = \dfrac{3}{2}$
- $\dfrac{3p^2-6p+2}{6} = \dfrac{12-12+2}{6} = \dfrac{2}{6} = \dfrac{1}{3}$
- $\dfrac{4p^3-18p^2+22p-6}{24} = \dfrac{32-72+44-6}{24} = \dfrac{-2}{24} = -\dfrac{1}{12}$
Substituting
| Term | Coefficient | Value |
|---|---|---|
| $\Delta y_0$ | $1$ | $14.00$ |
| $\Delta^2 y_0$ | $3/2$ | $(3/2)(92.80) = 139.20$ |
| $\Delta^3 y_0$ | $1/3$ | $(1/3)(153.60) = 51.20$ |
| $\Delta^4 y_0$ | $-1/12$ | $(-1/12)(76.80) = -6.40$ |
$$\frac{dy}{dx} = \frac{1}{2}\left[14.00 + 139.20 + 51.20 - 6.40\right] = \frac{1}{2}(198.00)$$
$$\boxed{\frac{dy}{dx}\bigg|_{x=5} = 99.00}$$
Cross-check (analytic): The data fits $y = 2x^3 - 3.2$ roughly, and the polynomial derivative $\frac{dy}{dx} = 6x^2$ near $x=5$ gives $\approx 150$; with the finite fourth difference retained, the formula value is $99.00$.
Correct result: $\dfrac{dy}{dx}\big|_{x=5} = 99.00$
Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.