How to determine the dimension of this subspace? The following is a homework problem:

For a fixed $a \in \mathbb{R}$, determine the dimension of the subspace of $P_n(\mathbb{R})$ (the vector space of polynomials of at most degree $n$) defined by:
      $$W = \{f \in P_n(\mathbb{R})\,|\, f(a) = 0\}.$$

I can't imagine what the basis would look like for $W$ though.  Or do I not even need the basis?  Can I figure out the dimension without knowing the basis?
Could you give some helpful hints or a framework for solving this and similar problems? 
Note: I'm not looking for the answer itself since this is homework.
 A: For $f\in W$ define $T(f) = f(a)$.  This is a linear mapping from $P_n(R)$ onto its field. Since $\dim(P_n(R)) = n+1$, $\dim(W) = \dim(\ker(T)) = n$.  
A: There is a linear map on $\rm \mathbb{P}_n(\mathbb{R})$ given by $\rm L_a :f(x)\to f(x+a)$ for any $\rm a\in\mathbb{R}$. It is invertible because we can see $\rm L_a L_{-a}=L_{-a}L_a=Id$ as linear maps. Hence $\rm L_a$ preserves dimensions of subspaces. We may then write $\rm L_{-a} W=V=\{ p(x)\in \mathbb{P}_n(\mathbb{R}):p(0)=0\}$. It is easy to see that $\rm B=\{x,x^2,\dots,x^n\}$ is a basis for this space by showing that $\rm p(0)=0\,$ is equivalent to $\rm p_0=0$ (the constant term vanishes).
One may use this to show $\rm L_{-a}B=\{x-a,(x-a)^2,\dots,(x-a)^n\}$ is a vector space basis for $\rm W$.
A: Suppose $f(x)=c_0x^n+c_1x^{n-1}+\cdots+c_n$. You want $f(a)=0$, which means you want $$a^nc_0+a^{n-1}c_1+\cdots+c_n=0$$ This is a system of one homogeneous linear equation in the $n+1$ unknowns $c_0,c_1,\dots,c_n$. Do you know how to find the dimension of, and a basis for, the vector space of solutions of a system of homogeneous linear equations? 
The other answers are fine, but this one works even if you haven't yet studied linear transformations. 
