# 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

### Why are all linear maps that sends one basis to another basis or to 0 still linear?

3  Asked on December 9, 2020

### Total variation regularization superior to classical quadratic choice

1  Asked on December 9, 2020 by pazu

### Why can we not expand $(a+b)^n$ directly when $n$ is a fractional or negative index?

1  Asked on December 8, 2020

### Let $A, B$ be skew-symmetric matrices such that $AB = -BA$. Show that $AB = 0$

1  Asked on December 8, 2020 by carlos-andres-henao-acevedo

### A question on locally integrable function on $mathbb{R}^n$

1  Asked on December 8, 2020 by kevin_h

### How to show that the integral is convergent without actually evaluating it?

4  Asked on December 8, 2020 by sandro-gakharia

### Saddle Point Approximation for Multiple Contour Integrals

0  Asked on December 8, 2020 by motherboard

### Finding minimum value of observation for a given power in hypothesis testing.

2  Asked on December 8, 2020 by hachiman-hikigaya

### What is sum of the Bernoulli numbers?

2  Asked on December 8, 2020 by zerosofthezeta

### Composition of two power series. We can compose two power series and get one power series. But why?

1  Asked on December 8, 2020 by tchappy-ha

### How much land space is required to meet the energy needs of the United States with solar?

0  Asked on December 7, 2020 by dev-dhruv

### Outer measure question (disjoint set st $lambda^*(A cup B) < lambda^*(A) + lambda^*(B)$)

1  Asked on December 7, 2020 by julian-ven

### Show that $mathbb{Z}[sqrt{3}]$ is dense in $mathbb{R}.$

1  Asked on December 7, 2020 by confusion

### Row Rank and Column vectors of Matrix

1  Asked on December 7, 2020 by james-black

### Applying the M-L estimate

1  Asked on December 7, 2020

### Stuck on Mathematical Induction Proof

2  Asked on December 7, 2020 by e__

### Depleted batteries

0  Asked on December 7, 2020 by francesco-totti

### Sphere’s surface area element using differential forms

2  Asked on December 7, 2020 by cryo

### Why the orthogonal complement of 0 is V?

2  Asked on December 6, 2020 by ivan-bravo