Consider the $\mathbb{R}$-vector space $P_3(\mathbb{R})$ of real polynomials $$a_0+a_1X+a_2X^2,$$ of degree $\leq 2$. Which of the following collections of elements span $P_3(\mathbb{R})$?
$1,X,X^2$
$1,X,X^2-1$
$1-X,X-X^2,X^2-1$
$1,X^2-X$
My book doesn't explain span very well when it comes to polynomials, so I'm having some trouble here.. How do I solve this?
EDIT: $P_3(\mathbb{R})$, not $P_2(\mathbb{R})$ because that is the convention that our professor uses.
You can simply study the linear systems that need to be solved in order to get the coefficients on each base.
(1) obviously works and (4) obviously doesn't work. For instance for (2) what you want to know is if every polynomial $a_0+a_1 X + a_2 X^2$ can be written in the form $b_0+ b_1 X+ b_2(X^2-1)$, which amounts to solve the linear system $$ \begin{cases} b_0 - b_2 = a_0\\ b_1 = a_1 \\b_2 = a_2\end{cases}\Leftrightarrow \begin{cases} b_0 = a_0 + a_2\\ b_1 = a_1 \\b_2 = a_2\end{cases}. $$
Since the system has a single solution, you conclude that every second degree polynomial can be uniquely written as a linear combination of $1, X, X^2 -1$, which means that it forms a basis.