Average Value of a Function in Application of Integration