I was doing a question on polynomials , where it was found that $P(x)=P(-x)$ in the interval $[-\sqrt2,\sqrt 2 ]$ It was then concluded that $P(x)=P(-x)$ holds for all values of $x$ ,"since it is a polynomial". Can someone help me understand why it could be generalized ?
Edit - $P(x)$ is a polynomial with real coefficients .