A supply function represents the quantity of a certain good or service that producers are willing to supply at different prices level, as shown in the photo attached where a supply curve has been graphed.
The law of supply states that there is a direct relationship between price and quantity supplied (ceteris paribus, hence, if everything else remains equal). Therefore, when the market price increases, so does the amount that producers desire to supply.