Show that $$\int_0^{\pi/3} \frac{1}{(\cos\theta + \sqrt{3}\sin\theta)^2}\,d\theta = \frac{\sqrt3}{4}$$
So I have attempted this, but have got a different answer so I have obviously done something wrong but i can't spot it. My workings are as shown. Any help will be great.
I started by writing $\cos\theta + \sqrt{3}\sin\theta$ as $2\cos(\theta - \frac \pi 3)$. This means that integral becoems, $$\int_0^{\pi/3} \frac{1}{2\cos^2(\theta - \frac\pi3)}d\theta = \int_0^{\pi/3} \frac12\sec^2(\theta - \frac\pi3)d\theta = \left[\frac12 \tan(\theta-\frac\pi3)\right]_0^{\pi/3} $$ $$ = \frac12\tan(0) - \frac12\tan(-\frac\pi3) = 0 - \frac12\sqrt3$$ So I get a final answer of $-\sqrt3/2$ any help will be great.