Solving differential equations and finding equations of curves