Define $P[x]$ as the set of polynomials with coefficients in $P$.
Let $$f(x)=\sum_{i=0}^m a_i x^i,\quad g(x)=\sum_{j=0}^n b_j x^j$$ where $a_i, b_j \in R$ (so $f,g\in R[x]$)
Let $f*g \in P[x]$.
I want to show that either $f$ or $g$ has to be in $P[x]$.
$$f*g =(a_0 b_0 + a_0 b_1 x + a_0 b_2 x^2 + \cdots + a_0 b_n x^n) +(a_1 b_0 x + a_1 b_1 x^2 + \cdots + a_1 b_n x^{n+1}) +\cdots + (a_m b_0 x^m + a_m b_1 x^{m+1} + \cdots a_m b_n x^{m+n})$$
Obviously if $f$ or $g$ was in $P[x]$, $f*g$ would be in $P[x]$. But what if the odd coefficients of a and the even coefficients of $b$ were in $P$, while no other coefficients are in $P$. Would that be a counterexample? I'm struggling with showing that if $a_i b_j \in P$ $\forall i,j$ then $a_i \in P$ $\forall i$ or $b_j \in P$ $\forall j$.
I'm also concerned about the coefficients that aren't just a product of coefficients from $f$ and $g$ (e.g. $a_0b_1+b_0a_1$ or $a_0b_2 +a_1b_1+a_2b_0$). If all $a_ib_j \in P$ then these coefficients are still in $P$, but I don't see why it couldn't be that none of the terms in one of these coefficients are in $P$, but still add to an element of $P$.