Model theory, algebra and differential equations