The origins of the infinitesimal calculus