If $F$ is a field, then $F[x]$ is a principal ideal domain.
Conversely, if $F[x]$ is a principal domain does $F$ have to be necessarily a field?
My Thoughts: Suppose instead of $F$, we take the set of polynomials $R[x]$ over a commutative ring $R$ with unity.
Then, suppose $I$ is an ideal of $R[x]$. Let $g(x) \in I$ such that $g(x)$ is the polynomial of the lowest degree in $I$.
Then: $ \langle g(x) \rangle \subseteq I .......... (1)$
Let $f(x) \in I$. Then $f(x) = p(x)g(x) + r(x)~~|~~p(x),r(x) \in R[x], \deg r(x) < \deg g(x)$
Since, $I$ is an ideal $\implies f(x) - p(x)g(x) = r(x) \in I$
But, $g(x)$ is of the lowest degree in $I \implies r(x) = 0 \implies f(x) \in \langle g(x) \rangle \implies I \subseteq \langle g(x) \rangle ......(2)$
Then from $(1),(2) : I = \langle g(x) \rangle$
Does the Presence of zero divisors in $R[x]$ really make a difference? The only advantage I see is that if there are no zero divisors in $R[x]$ then $I=\{0\} \implies I= \langle 0 \rangle$.
But, every ideal contains the zero element. Why is there the condition of a field specifically given in textbooks for $F[x]$ to be a principal ideal domain?
Thank you for your help.