Exploring the Chain Rule (simple with ceiling & floor)

This construction shows graphs of y=sin(k*x) and its derivative with the ceiling and floor functions of the derivative. When k=1, as in the initial setup, you see the familiar (sinx)'=cosx. Explore the relationship between sin(k*x) and its derivative by varying k. Conjecture a formula for the derivative of sin(k*x).