Applications of the calculus of variations