Cubic Graph with Secant and Tangent Lines

Move the red dot to see the slope of the secant line (dashed red). As the red dot moves closer to the blue dot on the tangent line notice that the slope of the secant line gets closer the slope of the tangent line. You can move the blue dot to change the slope of the tangent line. You can move the sliders to change the graph of the cubic.