\(\nabla f=\langle2x,-2y\rangle\) vanishes at the origin, but \(f(x,0)=x^2>0\) and \(f(0,y)=-y^2<0\): it is not an extremum. Being critical is necessary, not sufficient.
A critical point of a function \(f\) of two variables is a point \((a,b)\) of its domain where the gradient \(\nabla f\) is the zero vector or does not exist.
\[\nabla f(a,b)=\mathbf 0\quad\text{or}\quad\nabla f(a,b)\text{ does not exist}\]
More practice problems: critical point of a multivariable function