This is a really old question, but I'm leaving this here for people who have the same question in the future. @divanov has mentioned that there's no Bezier curve passing through N arbitrary points for N 4. I think the OP was asking how to compute the control points to join multiple bezier curves to produce a single curve that looks smooth. This pdf will show you how to compute the control points: which I found on this writeup from Square about how they render a smooth curve that passes through all the sampled points of a mouse drawn signature.
![Bezier Curve Generator Bezier Curve Generator](/uploads/1/2/5/4/125430060/552089183.png)
![Svg bezier curve generator Svg bezier curve generator](/uploads/1/2/5/4/125430060/857337202.jpg)
Bezier curves are used in computer graphics to draw shapes, for CSS animation and in many other places. They are actually a very simple thing, worth to study.