Activity 7.4.1.
Calculate this derivative.
\begin{equation*}
\frac{d}{dx} \sin (x^2 + 1)
\end{equation*}
Solution.
This is a composition, so I use the chain rule. I’ll label the pieces: I’ll call the outside function \(f(u) = \sin
u\text{,}\) using the temporary variable \(u\text{.}\) The inside function is \(g(x) = x^2 +1\text{.}\) Then I proceed with the chain rule.
\begin{equation*}
\frac{d}{dx} \sin (x^2 + 1) = \frac{d}{du} \sin u
\Bigg|_{u=x^2+1} \frac{d}{dx} (x^2+1)
\end{equation*}
The derivative of sine is a known derivative, and linearity and the power rule give the derivative of the polynomial term.
\begin{equation*}
= \cos u \Bigg|_{u=x^2+1} (2x+0)
\end{equation*}
After I’ve done the derivative, I replace \(u\) as the evaluation bar reminds me to do. I’ll also change the order of the terms, since convention is to usually write the polynomial term before the trigonometric term.
\begin{equation*}
= 2x \cos (x^2+1)
\end{equation*}