Finding the slope of a tangent line

Click and drag on the point "Q" and observe how the slope changes.