Prove that all ideals in the polynomial ring $\mathbb{Q}[x]$ are principal.
There is probably some elegant shortcut one can use for this proof, but I am only just beginning to study ring theory and would prefer a more straightforward approach if one is possible.
So far I've been thinking along these lines: consider an ideal $I$ that is generated by, let's say, two elements, call them $p(x)$ and $q(x)$. Then $I=\{a(x)p(x)+b(x)q(x)\mid a(x), b(x)\in\mathbb{Q}[x]\}$.
Now, I should like to prove that this ideal is in fact principal, so I want to find a single element that generates this ideal. How do I proceed from here? Or am I on the wrong track completely? Hints appreciated.