Starting from
take the first derivative using the power and chain rules:
Now take the second derivative:
Optionally, you can condense the second derivative a bit by factoring out , which gives
9.5m questions
12.2m answers