Source: http://harribey.u-bordeaux.fr/cours/fonction-production.pdf