When a poor monsoon cuts the onion harvest, prices spike and households switch to other vegetables. Within days the market has rebalanced itself without anyone planning it. Topic 2.4 of Cambridge AS Level Economics 9708 shows how. This page covers equilibrium and disequilibrium (excess demand and excess supply), the effects of shifts in demand and supply on equilibrium price and quantity, how markets are linked through joint, competitive and derived demand, and the functions of price in allocating resources. Diagrams and exam practice are included. It builds on 2.1 Demand and Supply Curves.

Analysis chain (AO2): Price above equilibrium → excess supply → unsold stock → firms cut prices → quantity demanded extends and quantity supplied contracts until the market clears; price below equilibrium → excess demand → shortages → prices are bid up.
The price at which quantity demanded equals quantity supplied, so there is no shortage or surplus and no pressure for the price to change.
Above equilibrium there is excess supply (a surplus), so sellers cut the price. Below equilibrium there is excess demand (a shortage), so the price rises. Either way the price moves back towards equilibrium.
A rightward shift of demand raises both price and quantity and a leftward shift lowers both. A rightward shift of supply lowers price and raises quantity, and a leftward shift raises price and lowers quantity.
Joint demand is for goods used together, such as cars and petrol. Competitive demand is for substitutes, such as tea and coffee. Derived demand is demand for something because of the product it helps to make, such as construction labour.
Price rations scarce goods, signals where resources are needed, and gives buyers and sellers an incentive to change their behaviour.
2.1 Demand and Supply Curves · 2.2 Price Elasticity, Income Elasticity and Cross Elasticity of Demand · 2.5 Consumer and Producer Surplus · 3.1 Reasons for Government Intervention in Markets · 3.2 Methods and Effects of Government Intervention in Markets · All AS Level Economics topics