You have the derivatives, both the second and the first.

Now, if the second derivative is negative for the x-value at which the function attains an extremevalue, then you have a maxima.

If the second derivative is positive, you have a minima.

So you evaluate the second derivative for .

This is sometimes called the second-derivative test.