Let $R$ be an integral domain, $f, g \in R[x], a \in R$. Prove that if $a$ is a root of $fg$, then $a$ is a root of $f$ or $a$ is a root of $g$.
My attempt (edited):
pf. Let $R$ be an integral domain, $f, g \in R[x], a \in R$. If $a$ is a root of $fg$, then $fg(a)$ = 0. Since $R$ is an integral domain, a nonzero non-unit $r \in R$ is irreducible if for all $a, b \in R$ such that $r = ab$, either $a$ or $b$ is a unit. Hence if $a$ is a root of $fg$, $b$ must be a unit. Thus, $b^-1 \in R$ and so $b^-1fg = abb^-1$. Hence, $a = b^-1fg$. Thus, $fg \vert a$ so $a$ must divide $f$ or $g$.
I am not too sure about the last couple of statements. Would appreciate any feedback!
If $a \in R$ is a root of
$f(x)g(x) \in R[x], \tag 1$
then
$f(a)g(a) = fg(a) = 0; \tag 2$
now if
$f(a) \ne 0 \ne g(a), \tag 3$
then since $R$ is an integral domain we have
$f(a)g(a) \ne 0; \tag 4$
but this contradicts (2); thus (3) is false and hence
$f(a) = 0 \; \text{or} \; g(a) = 0; \tag 5$
that is, $a$ is a root of at least one of $f(x)$, $g(x)$.