Write and . By the extreme value theorem, attains a minimum and a maximum on . Because , the monotonicity of the Riemann integral gives
If , this forces , and every satisfies the required identity. This includes .
If , divide to obtain . The intermediate value theorem, applied between points where the continuous function attains and , supplies with . Hence the weighted mean value theorem for integrals gives
The continuous function attains a finite maximum on by the extreme value theorem. Additivity and the triangle inequality for the Riemann integral imply, for any ,
For reversed endpoints, reverse the orientation of the integral before taking its absolute value. Given , choose . Then implies . Thus is continuous on , including one-sided continuity at the endpoints; it is even Lipschitz continuous. If , the function is defined on one point and the conclusion is immediate.

There are unlisted articles, also show them or only show them.