Title: Necessary conditions in the problem of Mayer in the calculus of variations