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