I am trying to solve exercise 5 of Chapter Integral dependence and valuations'' from the book of Atiyah and Macdonald
Introduction to Commutative algebra''.
Let $A$ be a subring of $B$ such that $B \setminus A$ is closed under multiplication. Show that $A$ is integrally closed in $B$.
My attempt to solve the problem:
Let $z \in B \setminus A$. We need to show that $z$ can not be a root of a polynomial $ f \in A[x]$. I can proof it if the degree of $f$ equals to $2$. Indeed, let $z^2 + az + b = 0$, where $a, b \in A$. Then $-a-z \in B$ is also a root of this polynomial and hence $a(-a-z)=b \in B$, however $B \setminus A$ is closed under multiplication that is the contradiction.