Calculus with analytic geometry