# Finding the local extrema of $f(x, y) = sin(x) + sin(y) + sin(x+y)$ on the domain $(0, 2 pi) times (0, 2 pi)$

Mathematics Asked on January 5, 2022

I am trying to find the relative extrema of
$$f(x, y) = sin(x) + sin(y) + sin(x+y), text{ where } (x, y) in (0, 2 pi) times (0, 2 pi)$$

Setting the partial derivatives equal to zero gives

$$frac{partial f}{partial x}(x, y) = cos(x) + cos(x+ y) = 0$$

$$frac{partial f}{partial y}(x, y) = cos(y) + cos(x+ y) = 0$$

Subtracting the equations gives $$cos(x) = cos (y)$$, and since $$0 < x, y < 2 pi,$$ we can see from the unit circle that this equation holds $$iff y = 2pi – x iff x+y = 2pi$$. Now using this information in the two equations above, we get

$$cos(x) + cos(2 pi) = 0 implies x = pi$$
$$cos(y) + cos(2 pi) = 0 implies y = pi$$

However, I graphed $$f$$, and this seems incorrect. In the pictures, we can see that there appears to be a local maximum around $$(1, 1)$$ and around $$(5.5, 5.5)$$. Could someone please tell me my mistake?

hint

The equation $$cos(x)=cos(y)$$ has a solution, other than the one you gave, which is simply $$x=y$$.

after replacing this in the two equations, one gets $$cos(x)+cos(2x)=0$$ or $$2cos^2(x)+cos(x)-1=0$$ thus $$cos(x)=frac{-1pm sqrt{9}}{4}$$ $$=frac 12 text{ or } -1$$

Answered by hamam_Abdallah on January 5, 2022

We have that

$$cos(x) = cos (y) implies x=y :lor: x=2pi-y$$

it seems you only have considered the second condition.

Answered by user on January 5, 2022

## Related Questions

### How do you take the derivative $frac{d}{dx} int_a^x f(x,t) dt$?

1  Asked on December 1, 2021 by klein4

### Uniqueness of measures related to the Stieltjes transforms

1  Asked on December 1, 2021

### Does there exist a function which is real-valued, non-negative and bandlimited?

1  Asked on December 1, 2021 by muzi

### Suppose $A , B , C$ are arbitrary sets and we know that $( A times B ) cap ( C times D ) = emptyset$ What conclusion can we draw?

3  Asked on November 29, 2021 by anonymous-molecule

### Can a nonsingular matrix be column-permuted so that the diagonal blocks are nonsingular?

1  Asked on November 29, 2021 by syeh_106

### Does ${f(x)=ln(e^{x^2})}$ reduce to ${x^2ln(e)}$ or ${2xln(e)}$?

3  Asked on November 29, 2021 by evo

### Proving that $(0,1)$ is uncountable

2  Asked on November 29, 2021 by henry-brown

### Understanding a statement about composite linear maps

1  Asked on November 29, 2021

### Assert the range of a binomial coefficient divided by power of a number

3  Asked on November 29, 2021 by vib_29

### What is the Fourier transform of $|x|$?

3  Asked on November 29, 2021

### Exists $t^*in mathbb{R}$ such that $y(t^*)=-1$?.

2  Asked on November 29, 2021 by user514695

### Proving $logleft(frac{4^n}{sqrt{2n+1}{2nchoose n+m}}right)geq frac{m^2}{n}$

2  Asked on November 29, 2021 by zaragosa

### Linearized system for $begin{cases} frac{d}{dt} x_1 = -x_1 + x_2 \ frac{d}{dt} x_2 = x_1 – x_2^3 end{cases}$ is not resting at rest point?

1  Asked on November 29, 2021 by user3137490

### Is it possible to construct a continuous and bijective map from $mathbb{R}^n$ to $[0,1]$?

3  Asked on November 29, 2021 by kaaatata

### If $lim_{ntoinfty}|a_{n+1}/a_n|=L$, then $lim_{ntoinfty}|a_n|^{1/n}=L$

2  Asked on November 29, 2021 by diiiiiklllllll

### Right adjoint to the forgetful functor $text{Ob}$

1  Asked on November 29, 2021 by alf262

### Always factorise polynomials

1  Asked on November 29, 2021 by beblunt

### Formulas for the Spinor Representation Product Decompositions $2^{[frac{N-1}{2}]} otimes 2^{[frac{N-1}{2}]}=?$ and …

0  Asked on November 29, 2021

### Connected and Hausdorff topological space whose topology is stable under countable intersection,

1  Asked on November 29, 2021

### Evaluating an improper integral – issues taking the cubic root of a negative number

1  Asked on November 29, 2021