Determine the polynomial \(p(x) = a_0 + a_1 x + a_2 x^2\) whose graph passes through the points \((1, 4)\text{,}\) \((2, 0)\text{,}\) and \((3, 12)\text{.}\)
Solution.
The conditions \(p(1) = 4\text{,}\) \(p(2) = 0\text{,}\) and \(p(3) = 12\) give us:
\begin{align*}
a_0 + a_1(1) + a_2(1)^2 &= 4\\
a_0 + a_1(2) + a_2(2)^2 &= 0\\
a_0 + a_1(3) + a_2(3)^2 &= 12
\end{align*}
This simplifies to the linear system:
\begin{align*}
a_0 + a_1 + a_2 &= 4\\
a_0 + 2a_1 + 4a_2 &= 0\\
a_0 + 3a_1 + 9a_2 &= 12
\end{align*}
In matrix form: \(A\mathbf{a} = \mathbf{b}\) where
\begin{equation*}
A = \begin{bmatrix}
1 & 1 & 1\\
1 & 2 & 4\\
1 & 3 & 9
\end{bmatrix}, \quad \mathbf{a} = \begin{bmatrix}a_0\\a_1\\a_2\end{bmatrix}, \quad \mathbf{b} = \begin{bmatrix}4\\0\\12\end{bmatrix}.
\end{equation*}
