# Find all $p\in\mathbb{R}[x]$ such that $p\circ q=q\circ p$ for all $q\in\mathbb{R}[x]$

Find all polynomials $p(x)$ such that $p(q(x)) = q(p(x))$ for every polynomial $q(x)$.

Thanks

-
Yes,I have.I have made as far as the answers were given.But wasnt able to proof if more than the solutions i have provided exist! – Sai Krishna Deep Oct 16 '12 at 7:13

HINT: Consider what happens if $q(x)$ is a constant polynomial, say $q(x)=a$: $$p(a)=p\big(q(x)\big)=q\big(p(x)\big)=a\;.$$
But there’s a constant polynomial for every $a\in\Bbb R$, so ... ?
@Sai: What I did in the hint tells you exactly what polynomial $p(x)$ has to be, because it tells you the value of $p(x)$ at every real number. – Brian M. Scott Oct 16 '12 at 7:20