# 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 for Newton-divided differences.

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

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, and b2.

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).

#### How to estimate the value of b1?

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 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. We can plug in the values of x0, and 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.

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 final expression for the polynomial using Newton-divided differences.

The final expression for the polynomial using Newton-divided differences is shown in the next slide image.

The last requirement is the estimation of the value y value for a new point of a given x value =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 of the two Solved problems for Newton-divided differences.

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, and b3.

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

#### How to estimate the value of b1?

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 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 equations of b0,b1,b2, and b3 are shown in the slide image.

#### How to estimate the value of b3?

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

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

#### Using a table to get the Newton-divided differences.

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

Once we have obtained the three values of b0,b1,b2, and b3.

#### The final expression for the polynomial using Newton-divided differences.

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 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.

This is a link to the previous post-What is Newton-divided difference interpolation?

Scroll to Top