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?
Write $f(x) = a_m x^m + \cdots + a_0$ and $g(x) = b_n x^n + \cdots + b_0$, where $a_m, b_m \neq 0$, and suppose that $g \circ f$ is even. Let $h_k(x) = f(x)^{k} - f(-x)^k$. Then
$$\sum_{k \leq n} b_k h_k(x) = 0,$$
implying that $\deg h_n = \deg \, (b_0h_0 + \cdots + b_{n-1}h_{n-1}) \leq \max_{k < n}(\deg h_k)$. The degree of $h_k$ can be found in three different cases:
Hence, if $f$ is not even, we get two potential inequalities:
In conclusion, we must either have that $f$ is even, or that $f - a_0$ is odd.