The question in my textbook was to find the minimum value of function, which was pretty simple, $0$. But that led me to thinking if we could find it's range.
I tried everything from AM-GM to differentiation to number theory and pure intuition.
The differentiation led me no where. By using AM GM and number theory, I was getting to $\left[0, \frac{3+2\sqrt{2}}{2}\right]$. I think this might be wrong, but I am writing my number theory solution here:
We know if $a+b=c$, then max value of $ab$ is when $a=b=c/2$. So max value of $ab= c^2/4$. If we say $(1 + \sin x) = a$ and $b=(1 + \cos x)$ and $(1 + \sin x)+(1 + \cos x)=c$, then max value of $ab$ would be $\frac{c^2}{4}$, we know max value of $c$ is $2 + \sqrt{2}$, so max value of $\frac{c^2}{4}$ would be on simplification $\frac{3 + 2\sqrt{2}}2$.
I had searched a lot for this on the internet but I could not find it, my solution seems right to me but I am not sure. Any help would be appreciated.
Let $y=(1+\sin x)(1+\cos x)=1+\sin x+\cos x+\sin x\cos x$
If $\sin x+\cos x=u, u^2=1+2\sin x\cos x\le2\implies u\le\sqrt2$
$y=1+u+\dfrac{u^2-1}2=\dfrac{u^2+2u+1}2=\dfrac{(u+1)^2}2$
Now $u+1\le\sqrt2+1$