Ordinary Differential Equations with Applications to Mechanics