[Math] Minimum and maximum values

multivariable-calculus

I am not sure if my method for this question is correct:
Given the function $$f(x,y)=x^2+y^2+2x+y$$, find it's minimum and maximum values about a closed disc of radius 2 centred at the origin.
I took the partial derivatives, $$f_x=2x+2; f_y=2y+1$$ and solved for $x$ and $y$. The minimum value is $f(0,0)$ and the maximum value is $f(-1,-1/2)$. Am I doing the correct thing? The answer I got is wrong according to the key.

Best Answer

If you have a boundary which is given by the level curve of a function (here $x^{2} + y^{2}$), you can use the Lagrange multiplier theorem (see here). You have to check the points of the boundary such that the gradient of the function you want to study and the gradient of the function giving the domain are parallel.

In this case you have that the only critical point in $\mathbb{R}^{2}$ is $\left(-1 , -1/2 \right)$. $f$ is the sum of two quadratic functions in $x$ adn $y$ separately and with coefficients of $x^{2}$ and $y^{2}$ both positive. Hence $\mathrm{lim}_{||\left(x,y\right)|| \to +\infty}f\left(x,y\right)=+\infty$, so the point we have is the absolute minimum, and it lies in the circle. Now to find the maximum in the circle check the points of the circle of radius 2 such that $\left(2x+2,2y+1\right)$ is parallel to $\left(2x,2y\right)$. If you put them in a matrix and want the determinant to be $0$, it gives you the condition $2y=x$.