Critical Point Calculus