Text this: Introduction to variational methods in control engineering