Trapezoidal Rule to Approximate Definite Integrals