0

which of the following function are reimann integrable on the interval $[0,1].$?

$1)$ $f(x) =\begin{cases} 1, &\text{if x is rational }\\ 0, &\text{if x is irrational } \end{cases}$

$2)$ $f(x) =\begin{cases} 1, &\text{if x } \in \{\alpha_1,\alpha_2,.......,\alpha_n\}\\ 0, &\text{otherwise } \end{cases}$

i know that option $1) $ will not reimann integrable because it is not bounded.

im confused about option $2)$

Any hints/solution

jasmine
  • 14,457

1 Answers1

2

Clearly, for (1), f is bounded, since $|f| \leq 1$, so your reasoning is incorrect.

Hint: Take an arbitrary partition of [0,1] and show that $U(f,P) - L(f,P)$ can not be made smaller than $1$.

Alternatively, you can notice that the set of discontinuities does not have measure 0 ($f$ is discontinuous everywhere)

For (2), the function has finitely many discontinuities, so is integrable.