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