I am stuck with this,any help would be appreciated
In vector space $P_{ \leq 4}$ the following set $M$ is given
$M=$ { $p \in P_{4} : p'(0)=p(1)$ , $p''(0)=2p(-1)$
Prove that $M$ is a subspace, find basis and dimension
Okay,for the subspace i need to prove that: $\alpha p$ $+ \beta g \in M$, where $\alpha,\beta \in \mathbb{R}$, and $p,g\in M$. So we have $p'(0)=p(1), g'(0)=g(1)$
$\alpha p'$ $+$ $\beta g' (0)= \alpha p'(0)+\beta g'(0) = \alpha p(1)+\beta g(1) \in M $
Is this step correct?, and how can I find basis of this kind of polynomias? I know how to find it with any other vectors, but I'm stuck here
To check that it is a subspace we can apply the definition for $p_1(x),p_2(x) \in M$
To find basis and dimension we have that
$$p(x)=ax^4+bx^3+cx^2+dx+e$$
and then
$p'(0)=p(1) \implies d=a+b+c+d+e \implies a+b+c+e=0$
$p''(0)=2p(-1) \implies 2c=2a-2b+2c-2d+2e \implies a-b-d+e=0$
and summing up and subtracting the equations
$2a+c-d+2e=0\implies c=-2a+d-2e$
$2b+c+d=0\implies 2b=2a-2d+2e \implies b=a-d+e$
and therefore
$$p(x)=ax^4+(a-d+e)x^3+(2a+d-2e)x^2+dx+e=\\=a(x^4+x^3-2x^2)+d(-x^3+x^2+x)+e(x^3-2x^2+1)$$
thus a basis is
$$\{(x^4+x^3-2x^2),(-x^3+x^2+x),(x^3-2x^2+1)\}$$
and the dimensiion is $3$ (indeed we had two conditions).