to find the max/min, you basically have to equate the first derivative
to zero. that will give you a value of "x". now after having done
that, find the second derivative. if it is grater than zero, it will
have min. value, if it is less than zero, it will have max. value