cos(x-(pi/4))^2 -3cos(x) = 1 for x=0 to 2pi