The function is .
Apply derivate on each side with respect to .
Apply product rule of differentiation: .
In this case and .
Apply formula: .
.