The equation is .
Apply derivative on each side with respect to .
.
Quotient rule of derivatives: .
Substitute in the above function.