Duality and Differentiability in Production