First Principle Formula Differentiation