I don't see how to solve the following problem:
Let $R$ be a commutative and unitary ring. If there exists a monic polynomial $f(x) \in R[x]$ so that $R[x]/(f(x))$ is a field, show that $R$ is a field. What about if $f(x)$ isn't monic?
I don't have a clue about how proving it. I see that if $R$ is a field and $f(x)$ a monic and irreducible polynomial in $R[X]$ then $\frac{R[x]}{(f(x))}$ is a field, but that is not the question!
Thank you in advance for your help
Let's first remark that the degree of non-zero polynomials in the ideal $(f)$ is at least $\deg f$. Now let $a\in R$, $a\ne 0$. We want to prove that $a$ is invertible in $R$. The residue class of $a$ in $R[X]/(f)$, denoted in what follows by $\hat a$, is not zero: if $\hat a=\hat 0$, then $a\in(f)$ and since $0=\deg a<\deg f$ we get a contradiction. Since $R[X]/(f)$ is a field it follows that $\hat a$ is invertible in $R[X]/(f)$, so there is $g\in R[X]$ such that $\hat a\hat g=\hat 1$, that is, $ag-1\in(f)$. Now write $g=fq+r$ with $\deg r<\deg f$. Then $ag-1=a(fq+r)-1=afq+ar-1\in (f)$, so $ar-1\in (f)$. But $\deg ar\le\deg r<\deg f$, and therefore we get $ar=1$. In particular, $ar_0=1$ for some $r_0\in R$. (Of course, $r_0$ is $r(0)$.)
Then the result is false: take $R=\mathbb Z/6\mathbb Z$, and $f=2X-1$. We have $R[X]/(f)\simeq S^{-1}(\mathbb Z/6\mathbb Z)$, where $S=\{1, 2, 4\}$, and $S^{-1}(\mathbb Z/6\mathbb Z)\simeq \mathbb Z/3\mathbb Z$ which is a field.