Solution
= Solution
The double-angle identity for the <sine> factors the equation as $2\cos\theta(\sin\theta-\cos\theta)=0$. The first factor gives $\theta=\pi/2$ in the specified interval; the second gives $\tan\theta=1$ and hence $\theta=\pi/4$. Thus
$$
\boxed{\theta=\frac\pi4,\quad\frac\pi2.}
$$
Keeping the first factor avoids losing the solution where division by $\cos\theta$ would be invalid.