The function is .
From the definition of derivative
\
(The sum of cosine)
(Rewrite the expression)
(
and
)
Therefore .