Calculus of Variations II: Direct Methods