Difference quotient and slope of tangent lines