Integral inequalities and spectral theory