Let \(A \coloneqq f'(p)\) and \(B \coloneqq g'\bigl(f(p)\bigr)\text{.}\) Take a nonzero \(h \in \R^n\) and write \(q \coloneqq f(p)\text{,}\) \(k \coloneqq f(p+h)-f(p)\text{.}\) Let
\begin{equation}
r(h) \coloneqq f(p+h)-f(p) - A h .
\end{equation}
Then \(r(h) = k-Ah\) or \(Ah = k-r(h)\text{,}\) and \(f(p+h) = q+k\text{.}\) We look at the quantity we need to go to zero:
\begin{equation}
\begin{split}
\frac{\bnorm{F(p+h)-F(p) - BAh}}{\snorm{h}}
& =
\frac{\bnorm{g\bigl(f(p+h)\bigr)-g\bigl(f(p)\bigr) - BAh}}{\snorm{h}}
\\
& =
\frac{\bnorm{g(q+k)-g(q) - B\bigl(k-r(h)\bigr)}}{\snorm{h}}
\\
& \leq
\frac
{\bnorm{g(q+k)-g(q) - Bk}}
{\snorm{h}}
+
\snorm{B}
\frac
{\bnorm{r(h)}}
{\snorm{h}}
.
\end{split}
\end{equation}
We need both terms on the right to go to 0 as \(h\) goes to 0. First, \(\snorm{B}\) is a constant and \(f\) is differentiable at \(p\text{,}\) so the term \(\snorm{B}\frac{\snorm{r(h)}}{\snorm{h}}\) goes to 0. Next, if \(k=0\text{,}\) then \(\frac
{\snorm{g(q+k)-g(q) - Bk}}
{\snorm{h}} = 0\text{.}\) So suppose that \(k \neq 0\text{.}\) Then
\begin{equation}
\frac
{\bnorm{g(q+k)-g(q) - Bk}}
{\snorm{h}}
=
\frac
{\bnorm{g(q+k)-g(q) - Bk}}
{\snorm{k}}
\frac
{\bnorm{f(p+h)-f(p)}}
{\snorm{h}} .
\end{equation}
Because \(f\) is continuous at \(p\text{,}\) \(k\) goes to 0 as \(h\) goes to 0. Thus \(\frac
{\snorm{g(q+k)-g(q) - Bk}}
{\snorm{k}}\) goes to 0, because \(g\) is differentiable at \(q\text{.}\) We have,
\begin{equation}
\begin{aligned}
\frac
{\bnorm{f(p+h)-f(p)}}
{\snorm{h}}
&
\leq
\frac
{\bnorm{f(p+h)-f(p)-Ah}}
{\snorm{h}}
+
\frac
{\snorm{Ah}}
{\snorm{h}}
\\
&
\leq
\frac
{\bnorm{f(p+h)-f(p)-Ah}}
{\snorm{h}}
+
\snorm{A} .
\end{aligned}
\end{equation}
As \(f\) is differentiable at \(p\text{,}\) for small enough \(h\text{,}\) the quantity \(\frac{\snorm{f(p+h)-f(p)-Ah}}{\snorm{h}}\) is bounded. Hence, the term \(\frac
{\snorm{f(p+h)-f(p)}}
{\snorm{h}}\) stays bounded as \(h\) goes to 0. In other words, the term \(\frac
{\snorm{g(q+k)-g(q) - Bk}}
{\snorm{h}}\) goes to zero as \(h\) goes to 0. Therefore, \(\frac{\snorm{F(p+h)-F(p) - BAh}}{\snorm{h}}\) goes to zero, and \(F'(p) = BA\text{,}\) which is what was claimed.