Find the conditional extrema of $$f(x,y)=\cos^2x+\cos^2y,\quad g(x,y)=x-y+\frac{\pi}{4}=0.$$
I have a problem with finding a solution to this problem. Using Lagrange multipliers i come up with a system of three equations which i don't know how to solve: \begin{align} F_x &=-2\sin x\cos x+1=0\\ F_y &=-2\sin y\cos y-1=0\\ F_\lambda &=x-y+\frac{\pi}{4}=0 \end{align}
Any help will be appreciated.