Geometric application of the definite integral