The function is
.
First find the derivative of the function by using quotient rule.
\Quotient rule of differentiation :
.

.
The function is
.
Simplify the above function by performing division.
\
Differentiate the function with respect to
on each side.

In both the methods we are getting the same result.
\ \
.
Second method is preferable.