(a) Starting from the definitions of $\tanh$ and $\operatorname{sech}$ in terms of exponentials, prove that $$1-\tanh^2\theta=\operatorname{sech}^2\theta.$$ [3]
The variables $x$ and $y$ are related by $$\tanh y=\cos\left(x+\frac{\pi}{4}\right),
\qquad -\frac{\pi}{4}<x<\frac{3\pi}{4}.$$
(b) Show that $$\frac{\mathrm{d}y}{\mathrm{d}x}
=-\operatorname{cosec}\left(x+\frac{\pi}{4}\right).$$ [4]
(c) Find the first three terms in the Maclaurin expansion of $$\tanh^{-1}\left(\cos\left(x+\frac{\pi}{4}\right)\right),$$ giving your answer in the form $\frac12\ln a+bx+cx^2$. [5]