Relation between a function and its derivative

Move the point A along the x-axis. Observe the relation between the points P which is on the given function and P' the corresponding position on the derivative function. You can change the expression of the function f(x) by key into the text box.

Observe the turning points on the given function and the corresponding derivative point on the derivative function.