Source: https://math.jhu.edu/~cmese/lagrangian.pdf