cos2x=0
x=pi/4 but how?
Remember that we are talking about radians and not degrees! Review the unit circle. You will see that wherever the circle crosses the y axis, the cosine of that value is always zero. If you type in [pi]/4 into your calculator and it is set in degrees, you will be very confused.