The following is a proposition in Artin's Algebra:
Proposition 11.5.5 Let $R$ be a ring, and let $f(x)$ be a monic polynomial of positive degree $n$ with coeeficients in $R$. Let $R[\alpha]$ denote the ring $R[x]/(f)$ obtained by adjoining an element satisfying the relation $f(\alpha)=0$. Then
the set $(1,\alpha,\cdots, \alpha^{n-1})$ is a basis of $R[\alpha]$ over $R$: every element of $R[\alpha]$ can be written uniquely as a linear combination of this basis, with coefficients in $R$.
I don't understand the polynomial $f(x)$ in the theorem here. Consider $R={\Bbb Z}$. Let $f(x)=x^2+1$ and $g(x)=(x^2+1)^2$. Then we have $$ f(i)=g(i)=0. $$ Then by the theorem above, ${\Bbb Z}[i]$ is not only ${\Bbb Z}[x]/(f)$ with basis $(1,i)$, but also ${\Bbb Z}[x]/(g)$, with basis $(1,i,i^2,i^3)$. What is wrong here?
When $R$ is a field $F$, and if $\alpha\in E$ is algebraic over $F$ where $E$ is an extension field of $F$, then we do have $$ F[\alpha]\cong F[x]/(f) $$ where $f$ is the minimal polynomial of $\alpha$. But in Proposition 11.5.5, there seems to be no requirement for the degree of $f$. (I thought this might be implicitly in the phrase "the relation $f(\alpha)=0$". But I'm not sure.)
[Added:] Does one have any other references about this proposition? (It seems that some assumption in the proposition is missing according to the comments.)