algebraic to differential equation