On a class of polynomial Lagrangians