Solution
= Solution
The angle-subtraction identity gives $\sqrt3\cos\theta+\sin\theta=2\cos(\theta-\pi/6)$. Thus $\cos(\theta-\pi/6)=1/\sqrt2$, so $\theta-\pi/6=\pm\pi/4+2k\pi$. Keeping the two values in the specified interval gives
$$
\boxed{\theta=\frac{5\pi}{12},\quad\frac{23\pi}{12}.}
$$