Differential equations, stability, and chaos in dynamic economics