Let $k$ be a field and let $f\in k[x]$. Let's say that there are some $g, h\in k[x]$ such that $\gcd(g, h)=1$, $g|f$ and $h|f$. I want to show that $gh|f$.
Since $g|f$ and $h|f$, we may write $f=gu$ and $f=hv$ for some $u, v\in k[x]$. Now, $\gcd(g, h)=1$ implies that there are some $\alpha, \beta \in k[x]$ such that $\alpha g+\beta h=1$.
We may now write that $gu=hv\implies \alpha gu=\alpha hv \implies (1-\beta h)u=\alpha h v\implies u=h(\alpha v +\beta u)$. Thus, $f=gh(\alpha v + \beta u)$, so $gh |f$.
Is this correct? I remember hearing this fact in high school, but in my abstract algebra course from this year the lecturer never mentioned it, even though it would have made some things easier. This is why I tried to prove this myself.