- $y=|\cos x-\sin x|\quad\left[0, \frac{\pi}{4}\right]$
- $y=\cos x-\sin x,\quad\left[0, \frac{\pi}{4}\right]$
- $y^{\prime}=-\sin x-\cos x < 0,[0, \frac{\pi}{4}]$
- $\left[\frac{\pi}{4}, \frac{\pi}{2}\right] \rightarrow y=-(\cos x-\sin x)$
- $y^{\prime}=\sin x+\cos x>0,\left[\frac{\pi}{4}, \frac{\pi}{2}\right] $
- $y(0)=1, y\left(\frac{\pi}{4}\right)=0 $
- $y\left(\frac{\pi}{2}\right)=1$
![alt text](https://imagedelivery.net/YfdZ0yYuJi8R0IouXWrMsA/b5f0656d-170d-4166-67ab-6013bd8d9400/public)
![alt text](https://imagedelivery.net/YfdZ0yYuJi8R0IouXWrMsA/eb288602-638b-4160-db28-da5a9b255700/public)