Text this: Variational principles and free-boundary problems