The table shows the cost of purchasing 1,2,3 or 4 T-shirts from souvenir shop.
Is the cost a function of the number of T-shirts purchased?
From the above diagram, we can see a well-defined one-to-one mapping from the domain onto the range .
Hence, the ordered pairs are .
We know a relation is a function only if it relates each element in its domain (input) to only one element in the range (output).
Here, each input has exactly one output. Then relation is a function.
Hence, the cost of the number of T-shirts purchased is a function.