Let $f(x,y)=\cos^{2}(x)+\cos^{2}(y)$ over the restriction $x-y=\frac{\pi}{4}$. I was wondering if there is some fast way to solve this problem?? The way im trying this is that over my given constrict $y=x-\frac{\pi}{4}$, this way
$$f(x,y)=f(x,x-\frac{\pi}{4})=\cos^{2}x+cos^2{x-\frac{\pi}{4}}.$$
But I dont clearly see how to proceed from here? Basically, Im trying to solve this in the fashion of the following answer as both functions are similar:
Find extreme values for $f(x,y)=\sin^2(x)+\sin^2(y)$ over the constraint: $(x^2-y^2)^3+(x^2-y^2)=0$.
Thanks!