(a) By expanding $(z+z^{-1})^7$, show that $$\cos^7\theta=\frac1{64}\{\cos7\theta+7\cos5\theta+21\cos3\theta+35\cos\theta\}.$$ [5]
Let $I_n=\int_0^{\pi/4}\cos^n\theta\,\mathrm d\theta$.
(b) Show that $$nI_n=2^{-n/2}+(n-1)I_{n-2}.$$ [4]
(c) Hence find $I_9$ exactly. [5]