Move the slider h to reduce its value. You will see that as h gets closer to zero the red chord gets closer to becoming a tangent. The derivative of the function is the slope of the tangent at the point where h is zero.