Let $f,g:\mathbb{R}\to\mathbb{R_+}$ two real functions so that $\int f(u)g(u)du$ exists. Does $$\int f(u)g(u)du=\int fgd\mu \quad ?$$ where $\mu$ is the Lebesgue measure (if not, what conditions should be imposed to make it true?). Secondly, if I suppose $g$ with compact support, say $supp \ g=[-a,a]$, then $$\int f(u)g(u)du=\int_{-a}^a f(u)g(u)du=\int_{[-a,a]} fgd\mu \quad ?$$
Can you help me to clarify these points?
This question came from a book I'm reading. The author presented a Riemann integral and then stated results about $\mu$-almost everywhere related to that Riemann integral. So, it is clear that he treated the Riemann integral as Lebesgue integral. I just want to make the equivalence clear. It is important to mention that, in the case, $g$ is symmetric, bounded, nonnegative, has compact support, and $f$ is a polynomial.
Thanks in advance!
Any Riemann integrable function on $[a,b]$ is Lebesgue integrable and the two integrals are the same . However we cannot say the same about improper Riemann integrals. A well known example is $\frac {\sin x} x$ on $[0,\infty)$.