Let $R$ be any commutative ring, and consider the polynomial ring $R[x]$. Prove that $x$ is not a zero divisor in $R[x]$ and generalise the argument to prove that a monic polynomial $f=x^n + a_{n-1}x^{n-1}+ \dots +a_0$ is not a zero divisor in $R[x]$.
If $x$ was a zero divisor of $R[x]$, then there would exist a nonzero $g \in R[x]$ for which $xg = 0.$ This would mean that $$x(c_nx^n+\dots+c_0)=c_nx^{n+1}+ \dots + c_0x = 0$$ and since this is only zero when all of the coefficients are zero it would imply that $g$ is zero that's a contradiction.
Now if $f \in R[x]$ is a monic and a zero divisor then there would exist nonzero $p \in R[x]$ for which $fp=0$. That is $$(x^n+a_{n-1}x^{n-1}+ \dots+ a_0)(b_mx^m + \dots+ b_0)=0.$$ I'm having issues on grouping terms in $(x^n+a_{n-1}x^{n-1}+ \dots +a_0)(b_mx^m + \dots+ b_0)$, I think I should have no constant terms in this expression in order to conlcude a contradiction on $p$ being nonzero?