Equation of a curve and slopes of tangent lines