Find the maximum and minimum values of the function $f(x,y) = 5x^2 + 2xy + 5y^2$ on the circle $x^2 + y^2 = 1$.
After substituting the equation of the circle in that of the function and then equating $f'(x) = 0$, I get the values of $y$ to be $\pm1\sqrt2$. Plugging these into the function, the resulting values are $\max(f) = 6$ and $\min(f) = 4$. However, the answer given is $\max(f) = \min(f) = 5$. I would like to know where I went wrong.
The given answer is wrong. For example $f(x,y) \leq 5x^{2}+(x^{2}+y^{2})+5y^{2} \leq 6$ and the value $6$ is attained when $x=y=\frac 1 {\sqrt 2}$. Hence the correct maximum value is $6$. Note also that minimum and maximum cannot be the same for a non-constant function.