Analytic geometry and calculus