Let $n \geq 4$ and $\mathbb{R_n}$[x] a vector space of all polynomials of degree n at most. There is given a set: $ U = \{p \in \mathbb{R_n}[x]; p(1) = p(-1), p''(0) = 2p(1)\} $
Find some basis of a vector subspace U and deterime $dimU$
My attempted solution:
$p(x) = a_nx^n + \dots + a_1x + a_0$
$p'(x) = na_nx^{n-1} + \dots + 2a_2x +a_1$
$p''(x) = n(n-1)a_nx^{n-2} + (n-1)(n-2)a_{n-1}x^{n-3} + \dots + 6a_3x +2a_2$
$p(1) = a_n + \dots + a_0$, if $n = 2k, k \in \mathbb{N}$: $p(-1) = a_n - a_{n-1} + \dots -a_1 +a_0$ $\rightarrow 2(a_{n-1} + a_{n-3} + \dots a_1) = 0$
$p''(0) = 2a_2 = 2p(1) = 2(a_n + \dots a_0) \rightarrow a_n + \dots + a_3 + a_1 + a_0 =0$
$$ a_1= -a_{n-1}-a_{n-3}- \dots a_3 \\ a_0 = -a_n - \dots - a_3 -a_1 $$
$p(x) = a_nx^n + \dots + a_2x^2 - x(a_{n-1} + a_{n-3} + \dots a_3) - a_n - \dots - a_3 - a_1 = \\=a_n(x^n-1) + a_{n-1}(x^{n-1}-x-1) + a_{n-2}(x^{n-2}-1)+ \dots + a_3(x^3-x-1) + a_2x^2 - a_1$
Not sure if the process is correct, because the polynomials by the coefficients, which should form a basis, seem different from the solution.