Since is continous it attains its maximum and minimum.
This means there are so that .
Since multiplication does not reverse inequality, .
Now integrate both sides, this is possible since is continous.
And finally the last statement follows by indetermediate value theorem for continous functions.