The function $\cos^{-1}(x)$ is defined for $-1\leq x\leq1$ and $0\leq y\leq \pi$ by the equivalence
$$y=\cos^{-1}(x)\Leftrightarrow x=\cos y$$
(a) Compute $\dfrac{dy}{dx}$ as a function of $y$ by differentiating the second equation in $(1)$.
(b) Use the identity $\sin y=\sqrt{1-\cos^2 y}$ and make the substitution $x=\cos y$ in (a) to prove that
$$\dfrac{d}{dx}\cos^{-1}(x)=\frac{-1}{\sqrt{1-x^2}}$$