anemone said:
Solve the equation $\cos^k x-\sin^k x=1$, where $k$ is a given positive integer.
[sp]
Let $f_k(x) = \cos^k x-\sin^k x$. This is periodic, with period $2\pi$, so it will be sufficient to find solutions of $f_k(x) = 1$ in the interval $x\in [0,2\pi).$
If $k=1$ then $f_1(x) = \cos x - \sin x = \sqrt2\cos\bigl(x + \frac\pi4\bigr)$. That takes the value $1$ when $\cos\bigl(x + \frac\pi4\bigr) = \frac1{\sqrt2}$, in other words $x + \frac\pi4 = \frac\pi4 \text{ or }\frac{7\pi}4.$ Thus the solutions to $f_1(x) = 1$ are $x=0,\frac{3\pi}2.$
The case $k=1$ is anomalous, because that is the only value of $k$ for which $|\,f_k(x)|$ can ever be greater than $1$. One way to see this is by calculus, using the method of Lagrange multipliers. Suppose that $k\geqslant2$. If we let $u = \cos x$ and $v = \sin x$, then we want to find the extreme values of $u^k - v^k$ subject to the constraint $u^2+v^2 = 1$. The Lagrange method gives the equations $$ku^{k-1} - 2\lambda u = 0, \qquad -kv^{k-1} - 2\lambda v = 0.$$ Therefore either $u=0$ or $u^{k-2} = \frac{2\lambda}k$, and similarly either $v=0$ or $v^{k-2} = -\frac{2\lambda}k$. Combining those values with the fact that $u^2+v^2=1$, it follows that if $u=0$ then $v = \pm1$, and if $v=0$ then $u = \pm1$. If both $u$ and $v$ are nonzero then $u^{k-2} = -v^{k-2}$. In the case when $k$ is odd, the $(k-2)$-th roots are unique and it follows that $u=-v$, so that $(u,v) = \pm\bigl(\frac1{\sqrt2},-\frac1{\sqrt2}\bigr)$. But when $k$ is even there are two (real) $(k-2)$-th roots, so there is the additional possibility that $u=v=\pm\frac1{\sqrt2}$.
This shows that the only possible extreme values of $(u,v)$ are $(\pm1,0)$, $(0,\pm1)$ and $\bigl(\pm\frac1{\sqrt2}, \pm\frac1{\sqrt2}\bigr)$. In terms of $x$, with $(u,v) = (\cos x,\sin x)$, this means that the only extreme values of $f_k(x)$ must occur when $x$ is a multiple of $\frac\pi4$. It is easy to check that $|\,f_k(x)| \leqslant1$ at all those points (and hence everywhere), and that the only points in $[0,2\pi)$ where $f_k(x) =1$ are $x=0$, together with $x=\pi$ (if $k$ is even) and $x = \frac{3\pi}2$ (if $k$ is odd). So the solutions found by kaliprasad are the only ones.
[/sp]