Mean value theorem for integrals