Differentiation From First Principles Examples