The function to maximize and minimize is;
$$f(x,y) = \frac13x^3 - \frac32y^2 + 2x $$
The constraint is;
$$g(x,y) = x-y $$
such that $$g(x,y) = 0$$
I found the first order condition and found critical points at x = 2 and x = 1.
The second order condition at $x = 1$ is -ve and at $x = 2$ is +ve.
So they should be maximum and minimum respectively. But my textbook disagrees. It says that $f(x,y)$ neither has a maxima or minima. Can you please help ?
Observe that $x-y=0\implies x=y$. Thus $$\begin{align*}f(x,y)&=\frac13x^3 - \frac32y^2 + 2x\\&=\frac13x^3 - \frac32x^2 + 2x\\\end{align*}$$
which is a cubic equation. Thus $x\to\pm\infty\implies f\to\pm\infty$. Thus there are no global maximum or minimum...