$f(x)=\begin{cases}\sin x & ; x\in \mathbb{R}/\mathbb{Q}\\ \cos x & ; x\in \mathbb{Q}\end{cases}$, discuss integrability of $f$ on $\left[0,\frac{\pi}{2}\right]$.
Shivam Kumar, AIR 19, 2023
$f(x)=\begin{cases}\sin x & x\in \text{[?] irrational}\\ \cos x & x\in \text{rational}\end{cases}$
$\left[0,\frac{\pi}{2}\right]$ consider partition
$\left[0,\frac{\pi}{2n},\frac{\pi}{3n}, ---, \frac{n\pi}{2n}=\frac{\pi}{2}\right]$
$I_r=\left[\frac{(r-1)\pi}{2n},\frac{r\pi}{2n}\right]$
$\delta_r=\left[\frac{\pi}{2n}\right]$
[a small sketch of a pair of axes with a few marks and dots near the origin, apparently showing the crossing of the sin and cos curves]
$M_r=\begin{cases}\sin x\ \cos x & 0<x<\pi/4\\ \sin x & \frac{\pi}{4}<x\le \pi/2\end{cases}$
[?] $m_r=\begin{cases}\sin x & 0\le x<\pi/4\\ \cos x & \pi/4\le x<\pi/2\end{cases}$
$\therefore$ $L(P,f)=\sum_{r=0}^{n/2}$ [?] $\sin ($ [?]
Lower Riemann integral
upper riemman integral
clearly upper reimann integral $\neq$ lower reimann integral
$\therefore$ $f(x)$ is not integrable