I need to prove that if $G$ is a finite group that acts on ring $A$, and $A^G$ is the subring consisting of elements of $A$ which are invariant under all $g\in G$, then $A$ is integral over $A^G$. (Atiyah and Macdonald, Chapter 5, Exercise 12)
The hint with the problem is to state that each $x\in A$ must be a root of the polynomial $\prod_{g\in g}(t - g(x))$, but this is only guaranteed to be in $A[t]$. I can't think of any reason why this product, or some important factor of it such as $t - x$ where the $g$ involved is the identity, would only have coefficients in $A^G$, which is the only way I know of to finish the proof. Is there a better way, or am I missing some obvious fact about the groups/rings involved here?