Show that the function $f(x)g(x)$ is integrable(2).

analysislebesgue-integrallebesgue-measuremeasure-theoryreal-analysis

As a completion of this question here Show that the function $f(x)g(x)$ is integrable. I do not know how to answer $(b)$ and $(c)$ below.

Let $A:=[a,b].$ Suppose that the function $f: A \rightarrow \mathbb{R}$ is continuous, $g: A \rightarrow \mathbb{R}$ is integrable and $g(x) \geq 0$ for almost all $x \in A.$

$(a)$ Show that the function $f(x)g(x)$ is integrable. (I got an answer for this in the previous question)

$(b)$ Show that there exists a point $p \in A$ such that $$\int_{A} f(x)g(x) dx = f(p) \int_{A}g(x) dx \quad \quad (1)$$

$(c)$ Is $(1)$ valid in the case $A = [a,b] \cup [c,d]$ if $[a,b] \cap [c,d] = \phi.$

My questions are:

1- What does question $(b)$ want to teach us?

2- What does question $(c)$ want to teach us?

3- How can I solve question $(b)$ and question $(c)$?

Could anyone help me in answering those questions, please?

Best Answer

Question b) teaches us that multiplying the integrand ($g(x)$) by a continuous function amounts to multiplying the integral ($\int_A g(x)dx$) by one of the values of the continuous function. Question c) warns us that the result is non longer true if $A$ consists of several segments.

For question b), you know that $f$ is bounded and that its supremum and infimum are reached, because $f$ is continuous on the segment $[a,b]$. With $m = \inf f$ and $M = \sup f$, and because g is non-negative you can write

$$ m = \frac{\int_A mg(x) dx}{\int_A g(x) dx} \leq \frac{\int_A f(x)g(x) dx}{\int_A g(x) dx} \leq \frac{\int_A Mg(x) dx}{\int_A g(x) dx} = M. $$

Now you can just apply the intermediate value theorem with $f$: there exists $p \in A$ such that

$$ \frac{\int_A f(x)g(x) dx}{\int_A g(x) dx} = f(p). $$

Of course, this proof only works if $\int_A g(x)dx > 0$, but if $\int_A g(x)dx = 0$ the result is immediate.

For question c), you can exhibit a counter-example. For instance take $A = [0,1] \bigcup [2,3]$, $g=1$ and $f|_{[0,1]} = -1$, $f|_{[2,3]} = 1$. All the hypotheses are verified but there is no way we can write $(1)$ because both $f(p)$ and the integral of $g$ are non zero, whereas the integral of $f$ is zero.