but it doesn't matter what quadrant right? you are looking for values of x from 0 to 2pi you said? then cosx=0 gives you x=pi/2 and 3pi/2