Tangent line and instantaneous rate of change of a function