Extreme values for $f(x,y)=\cos^{2}(x)+\cos^{2}(y)$ over the restriction $x-y=\frac{\pi}{4}$.

197 Views Asked by At

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!

3

There are 3 best solutions below

3
On

If $$f(x)=\cos^2(x)-\cos^2(x-\frac\pi4)$$ Then: $$f'(x)=\cos(2x)-\sin(2x)$$ $$f'(x)=0\implies \tan(2x)=1$$

Use the $\cos(x-y)=\ldots$ formula then differentiate with the product rule to get this derivative.

2
On

This can be found without using calculus.

\begin{align*} f(x,y)&=\cos^2x+\cos^2\left(x-\frac{\pi}{4}\right)\\ &=\cos^2x+\left(\cos x\cos\frac{\pi}{4}+\sin x\sin\frac{\pi}{4}\right)^2\\ &=\cos^2x+\frac{1}{2}(\cos x+\sin x)^2\\ &=\frac{1}{2}(2\cos^2x+\cos^2x+2\sin x\cos x+\sin^2x)\\ &=\frac{1}{2}(\cos2x+1+1+\sin 2x)\\ &=\frac{\sqrt{2}}{2}\cos\left(2x-\frac{\pi}{4}\right)+1 \end{align*}

0
On

Using Prove that $\cos (A + B)\cos (A - B) = {\cos ^2}A - {\sin ^2}B$,

$\cos^2x+\cos^2y=1+\cos(x-y)\cos(x+y)=1+\cos\dfrac\pi4\cos(2y-\dfrac\pi4)$

Now for real $A,$ $$-1\le\cos A\le1$$