Let $f$ and $g$ be functions on $\mathbb{R}^{2}$ defined respectively by
$$f(x,y) = \frac{1}{3}x^3 - \frac{3}{2}y^2 + 2x$$ and
$$g(x,y)=x−y.$$
Consider the problems of maximizing and minimizing $f$ on the constraint set $$C=\{(x,y)\in\mathbb{R}\,:\,g(x,y)=0\}.$$
Options:
$f$ has a maximum at $(1,1)$ and minimum at $(2,2)$
$f$ has a maximum at $(1,1)$, but does not have a minimum
$f$ has a minimum at $(2,2)$, but does not have a maximum
- $f$ has neither a maximum nor a minimum
I got a max at $(1,1)$ and min at $(2,2)$, by taking $g(x,y)=0\Rightarrow x=y$ and thus differentiating: $$\begin{align*} \underset{x,y\in\mathcal{R}}{\max(\min)} \frac{1}{3}x^3-\frac{3}{2}y^2+2x \ & \ st.\ x-y=0\\ \Leftrightarrow \underset{x\in\mathcal{R}}{\max(\min)} \frac{1}{3}x^3-\frac{3}{2}x^2+2x \end{align*}$$
but the correct answer is:
$f$ has neither a maximum nor a minimum.
How so?
You found a local maximum and a local minimum. There is no global maximum because for $x=y \rightarrow \pm\infty$ the objective function $f(x,y) \rightarrow \pm \infty$.
You may also spot this by taking the limits of $\frac{1}{3}x^3-\frac{3}{2}x^2+2x$ as $x \rightarrow \pm \infty$.