Inequalities involving integrals of functions and their derivatives