Let $(\mathbb{R},\mathfrak{M},m)$ be the measure space whith $\mathfrak{M}$ is the $\sigma$-algebra of Lebesgue and $m$ Lebesgue measure.
$$f(x) = \begin{cases}\frac{1}{\sqrt[]{x}} & x\in(0,1] \\ 0 &x\notin (0,1]\end{cases}$$
Then we have $\int_{(0,1]}f=2$.
A suggestion of how to show this equality. Thanks
The Lebesgue integral agrees with the Riemann integral whenever the latter exists. In this case, the (improper) Riemann integral exists and it is computed in the following way.
$$\int f(x)\;dx=\int_0^1\frac{1}{\sqrt{x}}\;dx=\lim_{s\rightarrow 0}\int_s^1\frac{1}{\sqrt{x}}\;dx=\left.\lim_{s\rightarrow0}2\sqrt{x}\;\right|_s^1=\lim_{s\rightarrow0}(2-2\sqrt{s})=2.$$