Zaslat SMS: Differential equations, chaos and variational problems