The function is .
Pythagorean identity :.
.
Substitute in the function .
Differentiate on each side with respect to .
Power rule of derivatives: .