cos^2 x + cos x - 1