Let $f:\mathbb{R}\to\mathbb{R}$ be a probability density function. Can the following be happened for $f$?
(1) $f$ is not integrable on an (some) interval of $\mathbb{R}$.
(2) $f$ is not integrable on every closed interval of $\mathbb{R}$. I know that if $f$ is a probability density function then
(1) $f(x)\geq0 \quad\text{for all} \; x$,
(2) $\int_{-\infty}^{+\infty}f(x)\,dx=1$.
but here we have Lebesgue integral not Riemann integral. Moreover if $f$ wants to be Riemann integrable on the whole $\mathbb{R}$, it must hold in the following conditions
(a) $f$ is integrable on every closed interval of $\mathbb{R},$
(b) the following integral is convergent
$$\int_{-\infty}^{+\infty}f(x)\,dx=\int_{-\infty}^{0}f(x)\,dx+\int_{0}^{+\infty}f(x)\,dx.$$
According the mentioned things, the most pdf are Riemann integrable, and I could not find any example as I asked. Would anyone help me to find that. thanks a lot.
It is known that there exists a measurable set $E$ in $\mathbb R$ such that $0<m(E\cap I) <m(I)$ for every open interval $I$. If $f=\frac {I_E} {m(E)}$ then $f$ is a density function but it is not continuous at any point so it is not Riemann integrable on any interval.
For the construction of such a set $E$ see Creating a Lebesgue measurable set with peculiar property.
It is easy give simpler examples where $f$ is almost everywhere equal to a Riemann integrable function but it is not itself Riemann integarble. In probability theory density function which are equal almost everywhere lead to the same distribution, so I tried to give a example which is not almost everywhere equal to a Riemann integrable function.