We can proceed by $$\frac{\int_0^{\pi/2}(\cos2wt+1)dt}{2}$$
(I hope you don’t mind if don’t write the limits for the next few steps, as it is becoming cumbersome)
So, $$\frac12\int \cos2wt+\frac12\int 1$$ $$\frac{1}{4w}\sin2wt+\frac t2$$ Putting in the limits, we end up with $$\frac12\Bigl[\frac{1}{2w}+\frac{\pi}{2}\Bigr]$$
That’s as far as I could go. The answer is $\frac{\pi}{4}$. So either I have gone wrong in one step or there is a way to proceed further. Thanks for helping!
+before the sine. – Bernard Aug 13 '19 at 15:38