Calculus: Theorems and pathological functions