I want to check if this constitutes a proof for the following:
Let $f\in F[X]$ with $f=\sum_{k=0}^n a_kX^k$ and let $f'=\sum_{k=0}^na_kkX^{k-1}$ denote the formal derivative of $f$. Show that if $f$ has a non simple root in a field extension $E\supset F$ iff $\text{gcd}(f,f') \neq 1$.
Proof: let $f\in F[X]$ have a root $a$. Then with the euclidean algorithm $f(X)=(X-a)g(X)$ with $g\in F[X]$. If $a$ is not a simple root then $$(X-a) | g(X) \iff g(X)=(X-a)h(X),~h(X) \in F[X]$$
With the product rule $$f'(X)=g(X)+(X-a)g'(X)$$ and $$f'(X)=(X-a)h(X)+(X-a)g'(X)$$ So $(X-a)\ |\ f'$ and $\gcd(f,f')\neq 1$.
What you did proves that if $f$ has a multiple root, then $\gcd(f,f')\neq1$. In order to prove the reverse implication, you could observe that if all roots of $f$ are simple, then $f$ and $f'$ have no common root and that therefore (although this is not trivial) $f$ and $f'$ are relatively prime.