How do you solve the equation on the interval [0,2pi) for #cos^2 theta - cos theta - 2 = 0 #?