The aggregate supply curve is derived from the production function and factor markets. In the short run, the AS curve can be upward sloping under wage rigidity or perfectly elastic under price rigidity. In the long run, with wage-price flexibility, the AS curve is perfectly inelastic as output is constant at the full employment level, while money wages and prices adjust to maintain full employment.