The function is .
Apply derivative with respect to x .
Apply the chain rule of derivatives .
Find the derivative at extremes:
The derivative at a point is
and .