Vector methods, applied to differential geometry, mechanics, and potential theory