Solution 1:

This is a consequence of the fact that over a commutative ring with identity $A$, an element $a \in A$ is a zero of a polynomial $f \in A[x]$ if and only if $f(x) = (x - a)q(x)$ for some polynomial $q(x) \in A[x]$.

Solution 2:

It follows from the division algorithm, the fact that the evaluation maps gives a homomorphism from $R[x]$ to $R^R$ (functions from $R$ to $R$ with pointwise operations), and that $R$ is a domain. It is the exact same argument as for fields, with the division algorithm suitably restricted to certain kinds of polynomials over $R$ as divisors.