The Cubic Formula

x = 2 b + ( 1 + 3 2 ) n 4 ( 2 b 3 + 9 a b c 27 a 2 d + ( 2 b 3 + 9 a b c 27 a 2 d ) 2 4 ( b 2 3 a c ) 3 ) 3 + ( 1 3 2 ) n 4 ( 2 b 3 + 9 a b c 27 a 2 d ( 2 b 3 + 9 a b c 27 a 2 d ) 2 4 ( b 2 3 a c ) 3 ) 3 6 a

The cubic formula gives the solutions of ax3+bx2+cx+d=0 for real numbers a, b, c, d with a0.

Directions: Take n=0, 1, 2. Use real cube roots if possible, and principal roots otherwise.