Stability and Lyapunov stability of dynamical systems: A differential approach and a numerical method