How do you solve #sin(1/2x)+cos(x)=1# in the interval [0, 2pi]?