3(x^2-1)^2+18(1-x^2)+27