Calculus and analytic geometry