A derivative measures the slope at one point. Start with two points, then bring them together.
The secant slope measures average change over an interval. If its two-sided limit exists as the interval shrinks, that limit is the tangent slope. For |x| at zero, left slopes approach −1 and right slopes approach 1, so no derivative exists.
A secant at h = 0 is undefined, even when the derivative exists.
Drag A or B, or use the sliders. Keyboard arrows also move a focused point.