What is the plot of this implicit function: $|\sin x|^y+|\cos x|^y = 1$

219 Views Asked by At

I'm trying to manually plot the following function: $$ |\sin x|^y+|\cos x|^y = 1 $$ My basic approach for implicit functions is to try to express $y$ in terms of $x$ and plot it, or $x$ in terms of $y$ and then plot the inverse. Sometimes it's clear from the first glance if the equations is in some special form (for example a circumference).

For the above I couldn't find an explicit expression. I've tried to manipulate the expression in different ways in order to take logarithms and get rid of the $y$ power. It's even harder to get an insight since neither W|A nor desmos is able to plot it.

Below is the output from Mathematica which I don't really understand:

enter image description here

I'm interested in the ways I could transform the equation above so that it's easier to see what the graph looks like.

upd:

As pointed in the comments the above graph shows various contours. Below is the one which reflects the initial function: enter image description here

Here is a Mathematica snippet for copy and paste:

ContourPlot[Abs[Cos[x]]^y + Abs[Sin[x]]^y == 1, {x, -1, 1}, {y, -1, 10}]

Just to be complete I'm adding the final plot from Mathematica (with some discrepancies which I assume are caused by the way Mathematica calculates the values) which reflects the answer by Michael Seifert.

final-plot

1

There are 1 best solutions below

2
On BEST ANSWER

We can see an obvious solution for the contour: if $y = 2$, we have $|\cos x|^2 + |\sin x|^2 = 1$, which is satisfied for all values of $x$. So the line $y = 2$ is part of the solution set.

If $y > 2$, then since $0\leq |\cos x| \leq 1$, we have $|\cos x|^y \leq |\cos x|^2$, with equality iff $|\cos x| = 0$ or $|\cos x| = 1$. A similar relation holds for $|\sin x|$. Thus, $$ |\cos x|^y + |\sin x|^y \leq |\cos x|^2 + |\sin x|^2 = 1. $$ Since equality only holds if both $|\cos x|$ and $|\sin x|$ are either 0 or 1, we cannot have $|\cos x|^y + |\sin x|^y = 1$ unless this is so. This occurs when $x = n \pi/2$ for some integer $n$.

A similar argument can be made for when $y < 2$; in this case, we have $|\cos x|^y \geq |\cos x|^2$ and similarly for $|\sin x|$. Thus, $x = n \pi/2$ is a solution when $y < 2$ as well. The only exception is that $0^0$ is indeterminate, so we cannot say that the points $x = n \pi/2$, $y = 0$ are part of the contour.

Thus, the solution to the problem is the union of the sets $\{y = 2 \}$ and $\{x = n\pi/2, y \neq 0\}$ for $n \in \mathbb{Z}$.