Find the maximum value of the function $f(x,y)=x^2+y^2+2x+y$, on the closed disc (the circle together with the region inside the circle) of radius 2, centred at the origin.
What i tried
I know that i have to maximize the function
$f(x,y)=x^2+y^2+2x+y$
with a constrain of
$x^2+y^2<2$
which then give me a new function of $L(x,y,\lambda)=x^2+y^2+2x+y+\lambda(x^2+y^2-2)=0$ which i have to maximize.
Then finding critical points and equating to 0, it leads me to the system of equations
$$ 2x +2+ (2\lambda)x = 0 $$ $$ 2y +1+ (2\lambda)y = 0 $$ $$x^2+y^2=2$$
I got stuck at solving these equations and im unsure that after geeting the crticial points. Do have to substitute the critical points back to the original equation $f(x,y)$ or the equation $L(x,y,\lambda)$ to get the maximum value. Could anyone help. Thanks
Hint: The function is convex in both variables, so the maximum is on the boundary $x^2+y^2=4$. Now you can parametrise, or use $(x^2+y^2)(4+1)\ge(2x+y)^2$ by the Cauchy-Schwarz inequality to find the maximum.
PS: the max should be $4+2\sqrt5$ after simplifications.