Let $V=\mathbb{P_4}$ and $W=\{p(x)\in V: p(1)=p'(1)=0\}$. Assuming that $W$ is a subspace of $V$, find a basis for $W$ and thereby determine the dimension of $W$.
I think that $\dim(W)=3$ as there are two restrictions enforced upon $W$ $($ $p(1)=1$ and $p'(1)=0$$)$ and $\dim(\mathbb{P_4})=5$
However, I'm unsure of how to find a basis for $W$. I have tried to create components for my basis that satisfy the conditions of $W$, but is there a more concrete/routine way of finding my basis? I could not find solutions on this problem, so it is difficult to work backwards from a solution.
EDIT:
My solution is as follows.
Let $p(x)\in\mathbb{P_4}$, then $p(x)=a_0+a_1x+a_2x^2+a_3x^3+a_4x^4$. Now \begin{align*} p(1)&=a_0+a_1+a_2+a_3+a_4\\ p'(1)&=a_1+2a_2+3a_3+4a_4\\ \end{align*} Hence $a_0=a_2+2a_3+3a_4$. Substituting this back into $p(x)$, we find $p(x)=a_1x+a_2(1+x^2)+a_3(2+x^3)+a_4(3+x^4)$. Do the coefficients form my basis? If so, why?
Hint
Let $p(x)\in \mathbb P_4$, i.e. $$p(x)=a_0+a_1x+a_2x^2+a_3x^3+a_4x^4+a_5x^5.$$
Find condition on $a_i$ to have $p(1)=p'(1)=0$, and you'll find a basis (or at least a generating list), and you'll be able to find a basis as well.