Derivative of a function

Derivative of a given function. Changing the position of Points A or B along the x-axis will show how the chord approaches the tangent of the function if [math]\Delta{x}[/math] tends to zero. Function [math]f(x)[/math] in algebra window can be changed to any other function.