Theorem 6.6 in Hungerford's Algebra book: Let $R$ be a commutative ring with identity and $f \in R[x]$. Then $c \in R$ is a root of $f$ is and only if $x-c$ divides $f$.
Here is the proof he offers:
We have $f(x) = q(x)(x-c) + f(c)$ by corollary 6.3. If $x-c \mid f(x)$, then $h(x)(x-c)=f(x)=q(x)(x-c)+f(c)$ with $h \in R[x]$, whence $(h(x)-q(x))(x-c)=f(c)$. Since $R$ is commutative, Corollary 5.6 (with $\varphi = 1_R$) implies $f(c) = (h(c)-q(c))(c-c)=0$. Commutativity is not required for the converse; use Corollary 6.3
Here is corollary 5.6:
If $\varphi : R \to S$ is a homomorphism of commutative rings and $s_1,s_2,...,s_n \in S$, then the map $R[x_1,...,x_n] \to S$ given by $f \mapsto \varphi f(s_1,...,s_n)$ is a homomorphism of rings.
This seems more complicated than it ought to be. If $x-c \mid f(x)$, then $f(x) =h(x)(x-c)$. Evaluating $f$ at $c$ (i.e., applying the homomorphism $x \mapsto c$), we get $f(c)=h(c)(c-c)=0$, and we are done. What's wrong with doing that?