$p(x)$ be a polynomial of degree 7 with real coefficients such that $p(π) = √3$ and $$\int_{-π}^{π} x^{k}p(x) = 0, \text{ for} \; 0\leq k \leq 6. $$ I have to find the value of $p(-π)$ and $p(0).$
My initial thoughts were to suppose that $p(x) = a_0 + a_1x + a_2x^2 + \dots + a_7x^7$ and solve it for the coefficients but it was very tedious and like impossible to solve.
Any insight. Thank you.
Hint: What can be said about similar integrals of polynomial $q(x) = -p(-x)$?
Also helpful: https://en.wikipedia.org/wiki/Legendre_polynomials
Ok, a more thorough solution.
For polynomial $r(x) = \frac12[p(x)+p(-x)]=a_0+a_2x^2+a_4x^4+a_6x^6$, we have: $$ 2\int_{-\pi}^{\pi} x^kr(x)dx = \int_{-\pi}^{\pi} x^kp(x)dx + (-1)^{k+1} \int_{-\pi}^{\pi} x^kp(x)dx = 0,\qquad \text{for }0\le k\le6. $$
Consider integral of non-negative function $r^2(x)$: $$ \int_{-\pi}^{\pi} r^2(x) dx = a_0\int_{-\pi}^{\pi} x^0r(x) dx + \ldots+a_6\int_{-\pi}^{\pi} x^6r(x) dx = 0. $$ It can be only if $r(x)\equiv 0$. So all even coefficients are zero and p(x) is an odd function. Thus, $p(0)=0$ and $p(-\pi)=-p(\pi) = -\sqrt3$