I've found the following problem:
Let $R$ be a ring. Suppose that you can factor a polynomial $f(x)\in R[x]$ as a product of linear factors: $$f(x)=a(x-a_1)\cdots (x-a_n).$$ Show that $f$ does not have repeated factors if an only if $f(x)$ and $f'(x)$ are relatively prime.
Here two polynomials are relatively prime if they do not hay common factors.
First, I doubt that this can be done in arbitrary rings.
Second, if we assume that $R$ is a commutative ring, we can prove that if $f(x)$ and $f'(x)$ are relatively prime then $f$ does not have reapeted factors as is done here.
For the converse, we have $$f'(x)=a\sum_{k=1}^n \frac{f(x)}{x-a_k}.$$
Assuming that $R$ is such that $R[x]$ is a UFD I'm able to finish the proof of the converse but I haven't found counter examples to say that this are missed conditions in the statement of the problem. Otherwise, how can I solve it?