A first course in differential equations with applications