I have a polynomial
$$f(x) = i(x^2-1)^3+(x^2+1)^3-8x^3$$
I want to check if this has repeated roots. To do so, I'll find greatest common divisor (euclidean algorithm) of $f(x)$ and its derivative $f'(x)$.
$$f(x) = i(x^2-1)^3+(x^2+1)^3-8x^3 = i(x^6-3x^4+3x^2-1)+(x^6+3x^4+3x^2+1)-8x^3$$
$$f'(x) = i(6x^5-12x^3+6x)+(6x^5+12x^3+6x)-24x^2$$
I know I should find the GCD as $(x-i)(x-1)$ but this is where I'm stuck. What would the next step be?