Trapezoidal Type Rules from an Inequalities Point of View