Imagine an ant riding a tiny railroad car along your function. There are lights on the rail car pointing straight ahead and straight back. The lights always point in the direction of the tangent line at that point.
In the function below, the blue line is tangent to the function at the point shown. As the ant walks along the function, his lights point along the tangent line.