Given that $W = \{f(x) \in P_n[x] \,| \,f(1) = 0\}$ is a subspace of $P_n[x]$. Find its dimension and a basis.
My attempts: I know that dimension of $P_n[x] = n + 1$
here constraints is that is $f(1) = 0$. that is only one constraints..
so dimension of $P_n[x] = n $ and basis will be $1,x,x^2,\ldots,x^{n-1}$.
is its true/false
Any solution/hints will be appreciated
Hint:
$W$ is a subspace of $P_n[x]$ so $\dim W \le \dim P_n[x] = n+1$. However, clearly $W \ne P_n[x]$ so actually $\dim W \le n$.
Now check that the set $$\{x-1, x^2-1, \ldots, x^n-1\} \subseteq W$$
is linearly independent and conclude that it is a basis for $W$.