A production function shows the relationship between the amount of output produced and the inputs used. It models total product, average product, and marginal product as inputs vary. Total product is the amount of output from given inputs. Average product is total product divided by inputs, showing output per unit of input. Marginal product is the additional output from an extra unit of input.