One early use of calculus was to study 