I am to find the derivative of $y=\sin\left(t+\cos\left(\sqrt{t}\,\right)\right).$ This is what I have so far. \begin{align*} y&=\sin(t+\cos(\sqrt{t}\,)) \\ y'&=(\sin(t+\cos(\sqrt{t}\,)))' \cdot (t+\cos(\sqrt{t}\,))' \qquad \text{(chain rule)}\\ y'&= \cos(t+\cos(\sqrt{t}\,)) \cdot ( (t)' + (\cos(\sqrt{t}\,))' )\qquad\text{(sum rule)}\\ y'&= \cos(t+\cos(\sqrt{t}\,)) \cdot ( 1 -\sin(\sqrt{t}\,))\\ \end{align*} How do I proceed from here? At first I tried to FOIL, but that didn't work out:
\begin{align*} y'&= \cos(t + \cos(\sqrt{t}\,)) \cdot (-\sin(\sqrt{t}\,) + 1)\\ y'&= \cos(t + \cos(\sqrt{t}\,)) + \cos(t+\cos(\sqrt{t}\,)) \cdot (-\sin(\sqrt{t}\,) + 1)\\ y'&= \cos(t+\cos(\sqrt{t}\,)) + \cos(t+\cos(\sqrt{t}\,)) + (\cos(t+\cos(\sqrt{t}\,))) \cdot (-\sin(\sqrt{t}\,))\\ y'&= 2\cos(t+\cos(\sqrt{t}\,)) + (\cos(t+\cos(\sqrt{t}\,))) \cdot (-\sin(\sqrt{t}\,)) \end{align*}
Did I make a mistake somewhere? What am I missing here?
You simply forgot that $\;(\cos\sqrt t)'=-\sin \sqrt t\,(\sqrt t)'=-\dfrac{\sin \sqrt t}{2\sqrt t}$, so the final result should be $$\Bigl(\sin\bigl(t+\cos\sqrt t\bigr)\Bigr)'=\cos\bigl(t+\cos\sqrt t\bigr)\biggl(1-\dfrac{\sin \sqrt t}{2\sqrt t}\biggr).$$