# Minimum and maximum values

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.

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$.

• One question. Do I substitute $2y=x$ into $x^2+y^2-4=0$? – Artemisia Nov 19 '13 at 10:30
• Yes, you should find the intersection between the line $2y=x$, which gives you the condition for the Lagrange multipliers, and the locus you have, i.e. the circle – Stefano Nov 19 '13 at 10:32
• So I get $y=\sqrt{4/5}$ and $x=\sqrt{8/5}$ which gives function value of $7.20$. This is incorrect according to the key. – Artemisia Nov 19 '13 at 10:34
• The line intersects the circle in two points, try with a minus... $y=\pm \sqrt{4/5}$ and $x=\pm \sqrt{16/5}$. – Stefano Nov 19 '13 at 10:38
• But if it asks for maximum value... then won't addition give a higher value? The answer I get is $-0.8$ – Artemisia Nov 19 '13 at 10:41

I'm not sure where you got the $(0,0)$ from. It is not a critical point--and you should find for example that $f(0,-\frac12)<f(0,0)$. Your second point is the only critical point, and it lies in the given disc.

It remains to check the boundary of the disc--that is, the points $(x,y)$ such that $x^2+y^2=2^2$--for critical points. I suggest you use the substitutions $x=2\cos\theta$ and $y=2\sin\theta,$ to get a function $g(\theta)=f\bigl(x(\theta),y(\theta)\bigr).$ Then you can use that function to find the critical points on the boundary (if any). Once you've found all critical points on the interior and boundary, you can check to see what the maximum and minimum values of $f$ are.

• Oh so in order to obtain these values, I need to check the critical point and the boundary? I graphed the function and saw its behavior at the origin so I thought it could be considered. Also, the function expands into infinity. Does it have a boundary at all? – Artemisia Nov 18 '13 at 16:42
• I'm not sure what "behavior at the origin" you're talking about. We definitely need to check the boundary, too, though. Extreme values will occur at critical points on the interior of the region, or else they will occur on the boundary. – Cameron Buie Nov 18 '13 at 16:44