solve x^3 - 6 x^2 + 4 x + 12 using Newton's method with x0=2