The function is
(Apply derivative with respect to x)
(Apply the sum and difference rule)
(The power rule:
)
(The product rule)
(Simplify)
(Simplify)
(Take out common terms
)
(Subtract
from each side)
(Divide each side by
)
Therefore the differentiate with respect to x is .