Applications of definite integral