To understand three basic types of linear cost functions and to see the role of cost functions in business decisions, consider the negotiations between StoreBox, a technology startup, and Forest Web Services (FWS), which provides StoreBox with enterprise-class cloud computing and data analytic services.
Panel A in Exhibit 10-1 presents this variable cost for StoreBox. Under alternative 1, there is no fixed cost for cloud services. We write the cost function in Panel A of Exhibit 10-1 as

Y-axis shows total cost ranging from 0 to 2,000 dollars with increments of 1,000, and X-axis shows CPU hours used ranging from 0 to 8,000 with increments of 4,000. Details of each of the graph are as follows:
Panel A - Variable cost: A straight line graph starting from the origin or the intersection of X-axis and Y-axis and reaches the total cost of $2,000, at 4,000 CPU hours used. Slope coefficient of the line equal variable cost of $0.50 per hour used.
Panel B - Fixed cost: A constant line graph parallel to X-axis at $1,000 total cost. The graph has the constant or intercept of $1,000 on the Y-axis.
Panel C - Mixed cost: A straight line graph starting at $300 on Y-axis and reaches 8,000 CPU hours when the total cost is about $1900. The graph has the constant or intercept of $300 on the Y-axis. Slope coefficient of the line equals variable cost of $0.20 per hour used.
Unlike the graphs for alternatives 1 and 2, Panel C has both a constant value of $300 and a slope coefficient of $0.20. The total cost in the relevant range increases as the number of CPU hours used increases. However, the total cost does not vary strictly in proportion to the number of CPU hours used within the relevant range. For example, when 4,000 hours are used, the total cost equals and when 8,000 hours are used, the total cost equals Although the usage in terms of hours has doubled, the total cost has increased by only about 73% because some of the costs are fixed costs, which do not increase with the number of CPU hours.
StoreBox’s managers must understand the cost-behavior patterns in the three alternatives to choose the best deal. Suppose StoreBox expects to use at least 4,000 hours of CPU time each month. Its cost for 4,000 hours under the three alternatives are
Alternative 2 is the least costly. Moreover, if StoreBox expects to use more than 4,000 hours, alternatives 1 and 3 would be even more costly. StoreBox’s managers, therefore, should choose alternative 2.
Note that the graphs in Exhibit 10-1 are linear (straight lines). We simply need to know the constant, or intercept, amount (commonly designated a) and the slope coefficient (commonly designated b) to describe and graphically plot all values within the relevant range. The general form of this linear cost function is
Under alternative 1, and per CPU hour used; under alternative 2, and per hour used; and under alternative 3, and per hour used.