For which polynomials $f(x)$ does there exist a nonconstant polynomial $g(x)$ such that $g\big(f(x)\big)$ is an even function?
If $f$ is already even, then $g$ can be the identity. If $f$ is odd, then $g(x)=x^2$ works. $f$ can be neither; for instance, if $f(x)=x+1$ then we can take $g(x)=(x-1)^2$.
However, not all polynomials work. A friend of mine pointed out that if $f(x)=x^2+x+1$, then $f(x)^n$ will always contain an $x^{2n-1}$ term that can't be canceled by lower powers, so there's no $g$ such that $g(x^2+x+1)$ is even.
A reasonable conjecture would be that such a $g$ exists iff $f$ is odd, even, or differs by an odd or even function by a constant. Is this true?