The functional relationship between cost and output is called cost function. A cost function studies the functional relationship between cost and output. It spells out least cost combinations of inputs corresponding to different levels of output.
For a producer, the costs corresponding to different levels of output can be expressed like this :
C = f (Q)
Here, C = Cost of production
Q = Quantum of output.