$f(n)= (\sin x)^n + (\cos x)^n$
I wanted to find the range of the values of this function in terms of n .
What I tried
I tried to use various inequalities like AM, GM ,HM but failed to derive s definite value due to the restriction on domain of sin x and cos x. I was hoping someone would help me derive an expression for range in terms of n or more specifically help me calculate it for n=4,6.

$f(x)=\sin^m x+\cos^m x$
I found the range is $[-1,1]$ if $n$ is odd
$\left[2^{1-\frac{m}{2}},1\right]$ if $n$ is even
Indeed
$f'(x)=m \cos x \sin ^{m-1} x-m \sin x \cos ^{m-1} x$
$f'(x)=0$ if $m \sin x \cos x \left(\sin ^{m-2} x-\cos ^{m-2} x\right)=0$
that is if $\sin 2x =0$ or $\tan^{m-2} x=1$
if $m$ is odd: $\quad 2x=k\pi\to x=k\dfrac{\pi}{2};\;x=\dfrac{\pi}{4}+k\pi;\;x=\dfrac{3\pi}{4}+k\pi$
if $m$ is even: $\quad 2x=k\pi\to x=k\dfrac{\pi}{2};\;x=\pm\dfrac{\pi}{4}+k\pi;\;x=\pm\dfrac{3\pi}{4}+k\pi$
Anyway when $m$ is even minimum is achieved when $x=\dfrac{\pi}{4}+k\pi$
because $f''(x)=m \left((m-1) \sin ^{m-2} x+(m-1) \cos ^{m-2} x-m \left(\sin ^m x+\cos ^m x\right)\right)$
and $f''\left(\frac{\pi}{4}\right)=2^{1-\frac{m}{2}} (m-2) m>0$ for $m>2$
$f\left(\frac{\pi}{4}\right)=2^{1 - \frac{m}{2}}$
While if $m$ is odd the absolute minimum is
$f\left(\frac{3\pi}{2}\right)=-1$
because $f''\left(\frac{3\pi}{2}\right)=(-1)^{m+1} m>0$ for odd $m$
To understand that local maxima/minima were or not global I helped myself with graphs