(a) It can be shown that if \(g\) is \(n\) times differentiable at \(x\) and \(f\) is
\(n\) times differentiable at \(g(x),\) then the composite function \(h(x)=f(g(x))\)
is \(n\) times differentiable at \(x\) and
$$
h^{(n)}(x)=\sum_{r=1}^{n} f^{(r)}(g(x)) \sum_{r} \frac{r !}{r_{1} ! \cdots
r_{n} !}\left(\frac{g^{\prime}(x)}{1 !}\right)^{n_{1}}\left(\frac{g^{\prime
\prime}(x)}{2 !}\right)^{r 2} \cdots\left(\frac{g^{(n)}(x)}{n
!}\right)^{r_{n}}
$$
where \(\sum_{r}\) is over all \(n\) -tuples \(\left(r_{1}, r_{2}, \ldots,
r_{n}\right)\) of nonnegative integers such that
$$
r_{1}+r_{2}+\cdots+r_{n}=r
$$
and
$$
r_{1}+2 r_{2}+\cdots+n r_{n}=n .
$$
(This is Faa di Bruno's formula). However, this formula is quite complicated.
Justify the following alternative method for computing the derivatives of a
composite function at a point \(x_{0}\)
Let \(F_{n}\) be the \(n\) th Taylor polynomial of \(f\) about
\(y_{0}=g\left(x_{0}\right),\) and let \(G_{n}\) and \(H_{n}\) be the \(n\) th Taylor
polynomials of \(g\) and \(h\) about \(x_{0}\). Show that \(H_{n}\) can be obtained by
substituting \(G_{n}\) into \(F_{n}\) and retaining only powers of \(x-x_{0}\)
through the \(n\) th. HiNT: See Exercise \(2.5 .8(b)\).
(b) Compute the first four derivatives of \(h(x)=\cos (\sin x)\) at \(x_{0}=0,\)
using the method suggested by (a).