D’Alembert and Lagrange and the inequality technique