The equations \(y=2\lambda x\), \(x=2\lambda y\) give \(x^2=y^2\), so \(x=\pm y\) and \(2x^2=8\). The points \((2,2)\) and \((-2,-2)\) give \(4\); the other two give \(-4\).
The method of Lagrange multipliers finds the extrema of a function \(f\) on the curve \(g=k\) among the points where the gradient of \(f\) is a multiple \(\lambda\) of the gradient of \(g\).