I need help with the restriction of the problem, because i cannot find the function to optimize.
The problem: Find the maximum and minimum distances from the origin to the curve $g\left(x,y\right)=5x^{2}+6xy+5y^{2}=8$
I do not want to solve the problem, just help me find the function to optimize.