I tried to explain cardano's method briefly but completely above. I.e. as Euler explains in his elementary algebra book, since (u+v)^3 = 3uv(u+v) + (u^3+v^3),
is true for every u and v, we can always solve X^3 = AX + B, provided we can find u and v with 3uv = A and u^3+v^3 = B. I.e. then we need only set X = u+v.
But we know we can always solve for two numbers with given sum p and product q, just by solving the quadratic Y^2 - pY + q = 0. (Since in a quadratic, with roots r and s, we have (Y-r)(Y-s) = Y^2 - (r+s)Y + rs = 0, so the constant coefficient is the product rs, and the linear coefficient Is (minus) the sum r+s.)
In our case the two numbers we want to solve for are u^3 and v^3, since we know their sum and product, i.e. since 3uv = A, we know (uv)^3 = u^3v^3 = A/27, and we are given u^3 + v^3 = B.
So the first step in finding u and v is to find u^3 and v^3 by solving Y^2 - BY + A/27 = 0. Taking one such solution for Y to be u^3, we take all three cube roots to find all three values of u, and then to find v we use the fact that 3uv = A, so v = A/3u.
Then finally X = any of the three values of u+v.
Thus to solve X^3 = 6X -2, just set 3uv = 6, or uv = 2, so u^3.v^3 = 8, and u^3+v^3 = -2, so then solve Y^2 +2Y + 8 =0, for u^3 = Y = -1 - sqrt(-7), (you only need one solution since the other one is v^3.)
Then the three solutions for u are the three cube roots of this solution, and given any one of them, the others are found by multiplying by the two non trivial cube roots of 1.
In each case the corresponding values of v are v = 2/u. so one solution is
X = u + 2/u = cubert(-1 - sqrt(-7)) + 2/cubert(-1 -sqrt(-7)), and if t is a non trivial cube root of 1, i.e. since t^3-1 = (t-1)(t^2+t+1) = 0, if t is a solution of t^2+t+1 = 0, the other two solutions for X are:
X = tu + 2/tu, and X = t^2u + 2/t^2u.
To compare to the solutions in post #1, note that the quadratic formula gives
t = (1/2)(-1 ± i.sqrt(3)).
do you see it now?