Drag 4 blue points to build a Bezier curve

Derivative calculation

Place a point on the curve.

P0, P1, P2, P3 — control points of cubic Bezier