Substitute 2: the cube is 8, six times the side is 12, and the left hand side is 20 exactly — the first link. This is one of the standard cases del Ferro solved and Cardano printed in 1545. The second link substitutes 3 instead and gets 45, so the root is below 3; and because x³ + 6x only ever increases — its slope 3x² + 6 is never negative — one root is the only root there is.
The interesting part is the formula. Cardano writes x = ∛(10 + √108) + ∛(10 − √108), and the third link evaluates exactly that expression: the screen answers 2. It is an ugly road to a round number, and it looks worse, because 10 − √108 is negative, so a cube root of a negative appears in the middle of a calculation whose answer is real. Here the two cube roots are 1 + √3 and 1 − √3, and they add to the 2 on the screen — the link reaches it by subtracting √3 − 1 instead, so that the calculator never has to take a cube root of a negative. In general it cannot: when a cubic has three real roots the formula insists on square roots of negative numbers on the way, the casus irreducibilis that led Bombelli in 1572 to start doing arithmetic with √−1 as though it meant something.
Answer
2
How to read it
Cardano's two cube roots, evaluated on the workbench. The first two links check the answer by substitution.
Source
The case x³ + px = q solved by Scipione del Ferro and published by Gerolamo Cardano in Ars Magna (1545), with x = ∛(q/2 + √((q/2)² + (p/3)³)) + ∛(q/2 − √((q/2)² + (p/3)³)); Rafael Bombelli handled the negative square roots in L'Algebra, 1572
Work it in the calculator
These links open the right calculator with this problem's numbers already typed in. The line above is what the screen should show — check it yourself.