Tekstiviesti: The calculus of variations