The function is .
Apply derivative on each side with respect to .
Apply product rule of differentiation: .
Apply formula: .
.