Let $D = \text{det} \begin{pmatrix} f_{x x} & f_{x y}\\ f_{y x} & f_{y y} \end{pmatrix} = f_{x x} \cdot f_{y y} - f_{x y}^2 $.
If $D > 0$ and $f_{x x} > 0$ at a critical point, then it is a minimum.
If $D >0$ and $f_{x x} < 0$ at a critical point, then it is a maximum.
If $D < 0$, at a critical point, it is a saddle point.