sqrt(2)cos(theta - pi/4) + sqrt(cos(2(theta - pi/4))) = 2