Differential equations: Foundations and applications