In this case, we need show that a general polynomial in
\(\mathcal{P}_2\) can be written as a linear combination of elements of the given set. That is
\begin{equation*}
c_1 (2+x) + c_2 (1) + c_3 (x+x^2) = a_0 + a_1 x + a_2 x^2
\end{equation*}
and if there is a solution for the
\(c\)βs, then that shows the the set spans
\(\mathcal{P}_2\text{.}\) To find the solution, use the technique of equating coefficients. Write down the coefficients for the constant terms,
\(x\) terms and
\(x^2\) terms respectively.
\begin{align*}
2 c_1 + c_2 \amp = a_0 \\
c_1 + c_3 \amp = a_1 \\
c_3 \amp = a_2
\end{align*}
This has a solution
\(c_3=a_2, c_1 = a_1-a_2\) and
\(c_2 = a_0 - 2(a_1-a_2)\text{,}\) which means that a linear combination of the three βvectorsβ can form any quadratic function, thus the given set spans
\(\mathcal{P}_2\text{.}\)