I am trying to prove the following result. I have outlined my attempt at a proof but I get stuck.
Any help would be welcome!
Theorem:
Let $R$ be a UFD and let $K$ be its field of fractions.
Suppose that $f \in R[X]$ is a monic polynomial.
If $f=gh$ where $g,h \in K[X]$ and $g$ is monic, then $g \in R[X].$
Proof Attempt:
Clearly we have $gh=(\lambda \cdot g_0)(\mu\cdot h_0)$ for some $\lambda,\mu \in K$ and $f_0, g_0 \in R[X]$ primitive.
Write $\lambda=a/b$ and $\mu=c/d$ for some $a,b,c,d \in R$.
Clearing denominators yields $(bd)\cdot f = (ac)\cdot g_0f_0$ where both sides belong to $R[X]$.
By Gauss's lemma $g_0f_0$ is primitive and so taking contents yields $\lambda\mu=1$.
This proves that $f=g_0h_0$ is a factorization in $R[X]$ but not necessarily that $g \in R[X]$.
I can't seem to get any further than this - any help greatly appreciated?