A producer is a price-taker with cost function C(y)=6y330y2+100y. We determine the supply function.

The average cost function is given by AC(y)=6y230y+100. According to the first-order condition for an extremum the average costs are at a minimum at a stationary point of AC(y),
(AC(y)=)12y30=012y=30y=212.

Since AC(y)=12 it holds that AC(212)=12>0. Hence, according to the second-order condition for an extremum AC(212)=6212 is the minimum of AC(y).

Now we distinguish between two cases: p<minAC(y)=6212 and pminAC(y)=6212. For p<6212 the producer decides, based on the production rule, not to produce, which implies y=0. For p6212 the producer uses the marginal output rule to determine the supply that results in maximum profit.

The profit function of the producer is given by
π(y)=py(6y330y2+100y).
According to the first-order condition the most profitable output quantity is a stationary point of π,
π(y)=0p(18y260y+100)=018y2+60y100+p=0.
Hence,
y=606024(18)(100+p)36=123+13672p3600
and
y=60+6024(18)(100+p)36=12313672p3600.
Since π(y) is a quadratic function with a<0 we find the maximum profit for an output quantity of y=123+13672p3600, whenever p6212. We conclude that the supply function is defined by
y(p)={0if p<6212123+13672p3600if p6212.