Suppose $A \subset B$ are integral domains, and $f = b_0 + b_1 x + \ldots + b_m x^m$, where $b_k \in B$. Is it true that if $f$ is integral over $A[x]$ then all the coefficients $b_k$ are integral over $A$?
Note that the other way is obvious, i.e. if all the coefficients $b_k$ are integral over $A$, then $f$ is integral over $A$ (e.g. see the proof here).
Below are some observations that I made.
Since $f$ is integral we have $f^n + f_{n-1} f^{n-1} + \dots + f_0 = 0$, $f_k \in A[x]$.
- Plugging in $0$ we immediately obtain that $b_0$ is integral over $A$. Hence $f - b_0$ is integral over $A[x]$.
- Similarly plugging in $1$ we obtain that $b_0 + \dots + b_m$ is integral over $A$.
- Expanding $f^n$, it's clear that coefficient in front of $x^{kn}$ has the form $b_k ^ n + $ (terms of lower degree in $b_k$). The coefficient in front of $x^{kn}$ coming from $f_l f^l$ will be homogenous polynomial in $\{b_k\}$ of degree $l$. Thus equating the coefficient to zero from our original expression will give us a monic polynomial in all the other coefficients which vanishes at $b_k$.
Edit: see here for the definition of integral element. In particular, a polynomial $f \in B[x]$ is integral over $A[x]$ if there exist polynomials $f_0, \ldots, f_{n-1} \in A[x]$ such that $f^n + f_{n-1} f^{n-1} + \dots + f_0 = 0$
To add to @Rodion Zaytsev's answer, the statement for an arbitrary ring $A$ can readily be reduced to the Noetherian case, so the Noetherian case is really the essential one. If $S$ is a ring and $R$ is a subring, we will write $\mathrm{int}_R(S)$ for the integral closure of $R$ in $S$.
Recall we have to show that if $S = \mathrm{int}_B(A)$ is the integral closure of $A$ in $B$ and $S_1 = \mathrm{int}_{B[x]}(A[x])$,then $S_1 = S[x]$. The containment $S[x]\subseteq S_1$ is easy, so the main point is to show $S_1\subseteq S[x]$. This statement is "local" in that it can be checked at each element of $S_1$, i.e., we just need to show that any $f\in B[x]$ which is integral over $A[x]$ must have its coefficients integral over $A$. For convenience, we will write $\mathrm{co}(f)\subset B$ for the set of coefficients of a polynomial $f \in B[x]$. Thus if $f = \sum_{k=0}^N b_kx^k$ where $b_N \neq 0$ so that $\deg(f)=N$, then $\mathrm{co}(f) = \{b_0,b_1,\ldots,b_N\}$.
Now fix such an $f$, then we may choose a $g\in A[x][t]$, monic as a polynomial in $t$, with $g(f)=0$. Suppose $g = t^d+ \sum_{k=0}^{d-1} c_k(x).t^k$. Then each $c_k \in A[x]$ and so $C=\bigcup_{k=0}^{d-1} \mathrm{co}(c_k)$ is a finite subset of $A$. Let $A_g = \mathbb Z[x:x \in C]$. This is a Noetherian ring because if $N=|C|$ then we may write $A_g$ as a quotient of $\mathbb Z[x_1,\ldots,x_N]$ (and Hilbert's basis theorem shows that a polynomial ring over $\mathbb Z$ is Noetherian).
Now $A_g \subseteq A \subseteq B$ and hence the integral closure of $A_g$ in $B$ is contained in $S$. But $g \in A_g[x][t]$ by defintion, hence $f\in B[x]$ is integral over $A_g[x]$. Using the Noetherian case Rodion established in his answer, it follows that $\mathrm{co}(f) \subseteq \mathrm{int}_B(A_g)\subseteq \mathrm{int}_B(A) = S$ as required.
Finally, it might be worth noting that the argument above is in the same spirit as the proof that if one has rings $R_1\subseteq R_2 \subseteq R_3$, then if $R_2$ is integral over $R_1$ and $R_3$ is integral over $R_2$ then $R_3$ is integral over $R_1$.