Text this: Calculus of variantions with applications