Sweep along a curve and plot its gradient at every point. Those gradients trace out a new curve, and that curve is the derivative: 2x, cos x, and so on.