Cost analysis and production theory