Demand equation is
,
.
Where
\
is a price of certain product in dollars.
is the quantity sold.
Cost
of the product for producing
units is
.
Solve for
.

Substitute
in
.


Cost
as a function of the price
is
,
.
Cost
as a function of the price
is
,
.