trapeze rule estimate error

Consider the integral

(a) Write the expression of the trapezoidal rule of integration for approximating I.

How do i find estimate of the error for this approximation in terms of h = (b − a).

(b) Write the formula for the composite application of the trapezoidal rule of integration. Use

n sub-intervals of integration. (c) Give an estimate for the total error associated with the composite integration formula of

Part(b). Give your estimate of the total error in terms of

h = (b − a)/n. Give also an estimate of the total error in terms of the number n of intervals.

Thanks for your help.