Let $\mathbb{F}[X]$ be the vector space of all polynomials over the field $\mathbb{F}.$ I'm trying to determine whether the following set is a subspace: $$W=\{p:p(0)=p(1)\}$$ where $p$ is a polynomial.
My working:
Let us write $p(x)=a_0+a_1x+a_2x^2\cdots+a_nx^n$. Then $$ \begin{cases}p(0)=a_0 \\ p(1)=a_0+a_1+a_2+\cdots +a_n \end{cases} $$ Now, $P(0)=p(1) \iff a_0=a_0+a_1+\cdots+a_n \iff a_1+a_2+\cdots +a_n=0$.
Therefore, we can write $W$ as $$W=\left\{a_0+a_1x+\cdots+a_nx^n:a_1+a_2+\cdots+a_n=0\right\}.$$ Note that this is independent of $a_0.$ Now, the question is: is $W$ closed under addition and scalar multiplication?
Let $$b=b_0+b_1x+\cdots+b_nx^n \in W$$ and let $$c=c_0+c_1x+\cdots+c_nx^n \in W \quad .$$
Then (as we've just shown): $$\begin{cases} b_1+b_2+\cdots+b_n=0 \\ c_1+c_2+\cdots+c_n=0\end{cases} \quad .$$
Now, $b+c=(b_0+b_1x+\cdots+b_nx^n)+(c_0+c_1x+\cdots+c_nx^n)$.
Is this right so far? What should I do now?