Let m=x∈[a,b]minf(x) and M=x∈[a,b]maxf(x).
Then φ(x)(f(x)−m)≥0 on [a,b] , so a∫bφ(x)(f(x)−m)dx≥0, that is ma∫bφ(x)dx≤a∫bφ(x)f(x)dx.
Similarly we can obtain a∫bφ(x)f(x)dx≤Ma∫bφ(x)dx
So we have 2 cases:
1)If a∫bφ(x)dx=0, then a∫bφ(x)f(x)dx=0=f(c)a∫bφ(x)dx for every c∈(a,b)
2)If a∫bφ(x)dx=0, then m≤a∫bφ(x)dxa∫bφ(x)f(x)dx≤M. Then by the intermediate value theorem there is c∈[a,b] such that a∫bφ(x)dxa∫bφ(x)f(x)dx=f(c), that is a∫bφ(x)f(x)dx=f(c)a∫bφ(x)dx.
Prove that if c∈{a,b}, then there is c′∈(a,b) such that a∫bφ(x)f(x)dx=f(c′)a∫bφ(x)dx. We need to consider 2 subcases:
2.1)c=a. Then we have a∫bφ(x)(f(x)−f(a))dx=0.
If there is c′∈(a,b) such that f(a)=f(c′), then a∫bφ(x)f(x)dx=f(c′)a∫bφ(x)dx
Suppose that there is not x∈(a,b) such that f(x)=f(a), then by the intermediate value theorem f(x)−f(a) does not change the sign on (a,b). Without loss of generality we can assume that f(x)>f(a) for every x∈(a,b).
So we have that φ(x)(f(x)−f(a))≥0 on (a,b). Then since a∫bφ(x)(f(x)−f(a))dx=0, we have φ(x)(f(x)−f(a))=0 almost everywhere on (a,b). Since f(x)−f(a)>0 on (a,b), we have that φ(x)=0 almost everywhere on (a,b), that is a∫bφ(x)dx=0.
By the point 1) we obtain that a∫bφ(x)f(x)dx=f(c′)a∫bφ(x)dx for every c′∈(a,b)
So we obtain that there is c′∈(a,b) such that a∫bφ(x)f(x)dx=f(c′)a∫bφ(x)dx
2.2)c=b. This case is similar to 2.1.
So for the case 2 we obtain that a∫bφ(x)f(x)dx=f(c′)a∫bφ(x)dx for some c′∈(a,b).
Therefore in every case we obtain that a∫bφ(x)f(x)dx=f(c)a∫bφ(x)dx for some c∈(a,b)
Comments