y = x^3 + 4x^2 + 5x + 2 calculate min and max values