How do you solve #cos(pix)=0.5# between the interval #0<=x<2#?