Dynamic Slope of Derivative

The following graphic traces the equation of the derivative of the f(x) = x2. Drag the slider a to move the cursor around the curve and S will draw the equation of the derivative. You can check that the derivative is correct by entering g(x) = 2x into the input bar. If the line that is generated is the same as the trace generated by S, then our calculation is correct!