Solve for x 0<=x<=pi/2