Please read the following:

Chapter 8.2: Production Choices and Costs: The Long Run (eText)