Answer:
The interpolating polynomial is
.
Explanation:
We want to find a quadratic polynomial
such that
,
and
. In order to do this let us write
.
Now, evaluating the polynomial in the points -1, 1 and 2 we get
![\begin{cases} 8 = p(-1) &= a_0-a_1+a_2\\ 0 = p(1) &= a_0+a_1+a_2\\ 5 = p(2) &= a_0+2a_1+4a_2\end{cases}](https://img.qammunity.org/2020/formulas/mathematics/college/b6kby6z0jeasveykcy8sab4u0bkxmv445r.png)
This relations give us a linear system of equations:
![\begin{cases} 8 &= a_0-a_1+a_2\\ 0 &= a_0+a_1+a_2\\ 5&= a_0+2a_1+4a_2\end{cases}](https://img.qammunity.org/2020/formulas/mathematics/college/k1exihoc30xo520qhacn1e0g9pxdpp7v95.png)
where the
,
and
are the unknowns.
The augmented matrix of the system is
![\begin{pmatrix}1 & -1 & 1 & 8\\ 1 & 1 & 1 & 0\\ 1 & 2 & 4 & 5\end{pmatrix}](https://img.qammunity.org/2020/formulas/mathematics/college/e8lq37s4ybicjw3g17883p75vyjggo23i0.png)
In this matrix it is easy to eliminate the 1's of the first column and get
![\begin{pmatrix} 1 & -1 & 1 & 8\\ 0 & 2 & 0 & -8\\ 0 & 3 & 3 & -3\end{pmatrix}](https://img.qammunity.org/2020/formulas/mathematics/college/ta9es648tqmse9a9iy796pbjq7flzvyqo7.png)
From this matrix we can find the values of each unknown. Notice that the second row gives us
that yields
.
Then, the third row means
that gives
. So,
.
Finally, the first row is
and substituting is
that yields
.
Therefore, the interpolating polynomial is
.