The function is .
Rewrtite the function as .
Apply derivative on each side with respect to .
Apply product rule : .
.