Generalized integral inequality and application on partial stability analysis