All of the examples on the internet I could find are made so that you can somehow make the cubic equation into a first degree polynomial multiplied by a second degree polynomial. But what if you can't do that?
For example, how would you find the roots of the following equation:
$x^3+7x^2+16x+12=0$
I know the roots are $-2$, $-2$ and $-3$ but don't know how to get them. If I somehow guess them, is there a way to tell which one is the double root?
Start out by checking the positive and negative factors of 12. Once you find one factor that makes the polynomial equal to zero, say $x = -2$, divide the polynomial by the corresponding factor $x+2$. You can use synthetic division or long division. Once you do that you get the quadratic factor $x^2+5x+6$. Factor the quadratic to get $(x+2)(x+3)$, therefore:$$x^3+7x^2+16x+12=(x+2)(x+2)(x+3)=0$$ This means $x = -2$, $-2$, and $-3$ as you pointed out but now you can see clearly that one factor repeats.