I don't get it, as we aren't finding anything related to the velocity? The question involves maximum and minmum. Refer to a textbook, on finding maximum/minimum values using calculus.
A minimum or maximum for a differentiable function will only occur when the gradient is zero or in this context...