Let $f(x) = \max \{ \sin A : 0\le A \le x \}$ and $g(x) = \min \{ \sin A : 0\le A \le x \}$
and $h(x)= \lfloor f(x)- g(x)\rfloor$ , where $\lfloor\quad \rfloor$ denotes greatest integer function .
Then find the range of $h(x)$.
My Approach : I know that the range of $\lfloor \sin A\rfloor$ is $\{1,-1,0\}$ but I am not understanding how to solve $\max\{\sin A : \ 0\le A \le x\}$ and $g(x) = \min \{\sin A : 0\le A \le x \}$ and make cases of $\sin A$ ..
Please explain ……
Best Answer
Divide into cases.
If $x\in[0,\pi/2]$, then $f(x)=\sin x$ and $g(x)=0$
If $x\in(\pi/2,\pi]$, then $f(x)=1$ and $g(x)=0$
If $x\in(\pi,3\pi/2]$, then $f(x)=1$ and $g(x)=\sin x$
If $x>3\pi/2$, then $f(x)=1$ and $g(x)=-1$