To solve $x^3 + px + q = 0$. I'm using Cardano's method, with the substitution $x = u + v$. In the special case that $3uv + p = 0$, I've derived $u$ and $v$ as the following:
$u = \sqrt[3]{-\frac{q}{2}+\sqrt{(\frac{q}{2})^2 + (\frac{p}{3})^3}}$
and
$v = \sqrt[3]{-\frac{q}{2}-\sqrt{(\frac{q}{2})^2 + (\frac{p}{3})^3}}$
The next step is to find $x$, which is $x=u+v$, but how would I go about finding all three values for x when there are 9 possible combinations for $u_1, u_2, u_3,$ and $v_1, v_2, v_3$?
EDIT: If it's of any relevance, this is the expression I'm trying to solve: $x^3 + \frac{7}{8}x- \frac{25}{16} = 0$.