(a) By considering the binomial expansion of $(z+z^{-1})^6$, where $z=\cos\theta+i\sin\theta$, express $\cos^6\theta$ in the form $$\frac1{32}(p+q\cos2\theta+r\cos4\theta+s\cos6\theta),$$ where $p,q,r,s$ are integers. [6]
(b) Hence find exactly $$\int_{-\pi/2}^{\pi/2}\cos^6\left(\frac x2\right)\,\mathrm dx.$$ [4]