Step 2) says the firm has to find the cost function . Cost Function – a function that returns the least cost way of producing q units of output. You plug in a quantity and get back the least cost way of producing that quantity. Cq The cost function can be found by solving the following program [] [ ], min subject to the constraint ( , ) KL wL r K