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?