Integrals and Average Value of a Function