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.