Source: https://www2.econ.iastate.edu/classes/econ501/Hallam/documents/ProfitFunctions_000.pdf