This problem is found in a past test.
Let $n$ be a positive integer. Find all polynomials P with real coefficients such that
$P(x^2 + x-n^2) = P(x)^2 +P(x)$
for all real numbers x.
I think that we should be comparing coefficients of certain terms. If we start by noting the degrees of the polynomials involved,
If P is a polynomial of degree d , the left-hand side $P(x^2 + x - n^2) $ has degree 2d . The right-hand side $ P(x)^2 + P(x) $ also has degree 2d.
If P is a constant polynomial c , then $c = c^2 + c $, leading to c = 0, so we have P(x) = 0.
If P(x) is linear and $ P(x) = ax + b $. Substituting into the equation, the coefficients lead to a contradiction unless n = 0 . If we have $ P(x) = ax^2 + bx + c $, substitution also rules this out.
Are there better ways of proceeding and coming up with a contradiction that may lead to the answer being $P(x)=0$ or are there other answers obtained in higher powers?
Thanks in advance.