Calculation and application of definite integrals