Formal Methods for Dynamical Systems