The quasilinearity of a family of functionals in linear spaces with applications to inequalities