The function is
.
(Apply derivative with respect to x)
(The sum rule)
(
)
(Apply the chain rule)
\
(Take out common term)
The differentiate the function is
.