The extreme value theorem ensures that is finite. Since and , multiplication preserves the inequality. Monotonicity of the Riemann integral gives the required bound
To prove the weighted mean value theorem for integrals, put and . If , then , so any works. This includes .
If , the extreme value theorem gives and . Integrating gives . A continuous function on an interval takes every value between its minimum and maximum by the intermediate value theorem. Choose with . Consequently