Finding the equation of a curve given dy/dx