The function is .
Apply derivative on each side with respect to .
.
Apply second derivative on each side with respect to .
Substitute in the above equation.