Given \(\displaystyle \sin x+\sin y=p\) and \(\displaystyle \cos x+\cos y=q\), find a formula for \(\cos(x-y)\) in terms of \(p\) and \(q\).
(a) By writing \(3\theta = 2\theta+\theta\), show that \[ \cos 3\theta \equiv 4\cos^{3}\theta-3\cos\theta . \] (b) Hence solve, for \(0^\circ\le \theta \le 180^\circ\), \[ \cos 3\theta+\cos\theta\cos 2\theta=\cos^{2}\theta . \]
(a) Given that \[ \sin\!\left(x+\tfrac{\pi}{6}\right) -\sin\!\left(x-\tfrac{\pi}{6}\right) \;=\; \cos\!\left(x+\tfrac{\pi}{3}\right) -\cos\!\left(x-\tfrac{\pi}{3}\right), \] find the exact value of \(\tan x\).
(b) Hence find the exact solutions of \[ \sin\!\left(x+\tfrac{\pi}{6}\right) -\sin\!\left(x-\tfrac{\pi}{6}\right) \;=\; \cos\!\left(x+\tfrac{\pi}{3}\right) -\cos\!\left(x-\tfrac{\pi}{3}\right) \] for \(0\le x\le 2\pi\).
\(\displaystyle \cos(\theta-60^\circ)=3\sin\theta\) for \(0^\circ\le \theta \le 360^\circ\).