The following generalization of the classical Grüss integral inequality is proved:
Let be a real or complex inner product space and , . If , , , are (real or complex) numbers and vectors such that , and , then . The constant is the best possible.
Some applications of this result for positive linear functionals and integrals are given.