Text this: Direct Methods in the Calculus of Variations