Brief description of post 2d-Interpolation.

2d-Solved problems for Newton-divided differences

Solved problems for Newton-divided differences.

We have discussed the Newton-divided difference interpolation in a previous post. In this post we have two solved problems are introduced as practice problems for Newton-divided differences.

You can click on any picture to enlarge then press the small arrow to review all the other images as a slide show.

The first solved problem.

Three points where x and y values are given, it is required to get the expression for the polynomial based on Newton-divided differences and also to get the value of a new point that has x=2.70.

The next equation will use for obtaining the polynomial, but we need to estimate the values of b0,b1,b2.

[latexpage]\begin{equation}
\mathrm{Q}(\mathrm{x})=\mathrm{y}_{0}+f\left[\mathrm{x}_{0}, \mathrm{x}_{1}\right](\mathrm{x}-\mathrm{x}_0)+f\left[\mathrm{x}_{0,}, \mathrm{x}_{1}, \mathrm{x}_{2)}\right]\left(x-x_{0}\right)\left(\mathrm{x}-x_{1}\right)
\end{equation}

We know that b0=y0, from the given table the first point y value or y0=3.
To get the b1 we need to estimate the first divided difference between x0,y0, and(x1,y1).

You can click on any picture to enlarge, then press the small arrow at the right to review all the other images as a slide show.

How to estimate the value of b1?

Solved problem-1 Newton divided differences.

The difference between(y1 and y0) divided by the difference between x1 and x0 will give the value of the first divided difference.

How to estimate the value of b2?

The second divided difference is given by the shown equation in the next slide image.

The value of b2.

The first divided difference between points (x1,y1) and ( x2,y2) is estimated as the difference between (y2 and y1)/the difference between x2 and x1.

While the first divided difference between points (x1, y1) and ( x0,y0) is estimated as the difference between (y1 and y0)/the difference between x1 and x0. After estimating the two first differences the value of these differences will be divided by the difference between(x2-x0) to get the second divided difference.

Once we have obtained the three values of b0,b1,b2. We can find out the polynomial as we can see from the next slide image.

Solved problem-1 Newton divided differences.

We can plug in the values of x0,x1, together with the values of b0,b1,b2, The final expression of the polynomial can thus be found.

Using a table to get the Newton-divided differences.

The table of the divided differences.

We can create a table for the divided differences and perform the necessary calculation as we can see from the next slide image. The same results are obtained.

The last requirement is the estimation of the value y value for a new point of a given x value =2.70

The function value P(2.70)

Before we can substitute the value of x=2.7 in the polynomial expression, it is preferred to check the y values of the given three points via the table, by the values obtained by using the polynomial expression for (x0,x1,x2).

From the shown calculations, we can substitute the value of x=2.70, and get the P(2.70), which will be found to be equal to 6.995.

The second solved problem.

Four points where x and y values are given, it is required to get the expression for the polynomial based on Newton-divided differences. since we have four points, then we have to determine the values of 4 b’s, b0,b1,b2, b3.

The equation in this time will be expanded to account for the four values of b’s.

How to estimate the value of b1?

The second solved problem of the two Solved problems for Newton-divided differences.

The value of b0 is the same value of y0 for the first point which is equal to 1. For the value of b1, it will be estimated as the first divided difference between points (x0,y0) and (x1,y1).

How to estimate the value of b2?

The value of b3 in the second solved problem.

The b2 values can be estimated in two stages, the first stage is the get the first divided difference between points (x2,y2) and ( x1,y1).

The second stage is to get the first divided difference between points (x0,y0) and ( x1,y1). The estimated differences will be divided by (x2-x0).

This is the table used to get the differences for the 4 given points in the case of a cubic polynomial. A cubic polynomial is a polynomial of degree 3.

The table form is used to get the divided differences.

The equations of b0,b1,b2,b3 are shown in the slide image.

How to estimate the value of b3?

The second solved problem of the two Solved problems for Newton-divided differences.

The given calculation for the value of b3 is given in the next slide image for more details.

The value of b3 in the second solved problem.

The final value of b3 is shown to be=-1/12.

Using a table to get the Newton-divided differences.

The detailed table for the different divided differences.

As we can see it is much easier to estimate the divided differences and get the different values of b0,b1,b2,b3 by using the table.

Once we have obtained the three values of b0,b1,b2, b3. We can find out the polynomial as we can see from the next slide image. it is preferred to check the y values of the given four points via the table, by the values obtained by using the polynomial expression for (x0,x1,x2,x3).

The value of P at x=4.

The expression of the cubic function is shown. All the y values of the given four points, estimated by plugin the polynomial expression, are compared by the given table and found to match.

This is a link for the pdf file used in the illustration of this post.

Scroll to Top