I need to prove that a polynomial $f \left( x \right) \in \mathbb{Q} \left[ X \right]$ is divisible by a square of a polynomial iff $f$ and $f'$ have a greatest common divisor of positive degree.
I have no idea where to start, except that I have to use the properties of Polynomial Rings as Euclidean Domain.
Hint: One direction is easy. For the other direction, note that $f$ and $f'$ have a greatest common divisor of positive degree iff $f$ and $f'$ have an irreducible common divisor.
Make sure to pinpoint where working over $\mathbb{Q}$ enters in your argument.