Text this: Generalization of the Schwarz-Jensen formula