The red curve is given as y = g(x). Take note that the average rate of change of y from point A to point B is
Drag point B to observe the change of the slope of secant (m is used to represent slope). As point B is getting nearer to point A, the value of the slope of secant is approaching to the value of the slope of tangent at point A.
Betty, Created with GeoGebra