IB Syllabus Requirements for Competitive market equilibrium
2.3.1
Demand and supply curves forming a market equilibrium
2.3.2
Shifts in demand and supply and new market equilibrium
2.3.3
Functions of the price mechanism
2.3.4
Consumer and producer surplus
2.3.1
DEMAND AND SUPPLY CURVES FORMING A MARKET EQUILIBRIUM
A competitive market is a market structure with numerous buyers and sellers, none of whom can determine the market price alone. The demand curve shows buyers' willingness and ability to purchase. The supply curve shows sellers' willingness and ability to produce.
A market equilibrium occurs when quantity demanded equals quantity supplied, leaving no pressure for the price to change. On a diagram, this is where the demand and supply curves intersect. The price at this point is the equilibrium price; the amount bought and sold is the equilibrium quantity.
On a market diagram, the vertical axis shows , where is price per unit measured in currency units. The horizontal axis shows , where is quantity traded measured in units per period. Label the downward-sloping demand curve and the upward-sloping supply curve . Mark their intersection , the equilibrium price and the equilibrium quantity , where is the equilibrium price in currency units per unit and is the equilibrium quantity in units per period.

At , buyers want to purchase exactly , while firms want to sell exactly . The market therefore clears: every unit offered by sellers at that price can find a buyer. Equilibrium doesn't mean everyone is satisfied, nor does it mean the outcome is necessarily fair. It simply describes a situation in which the plans of buyers and sellers are mutually consistent at the prevailing price.
2.3.2
SHIFTS IN DEMAND AND SUPPLY AND NEW MARKET EQUILIBRIUM
An excess demand, or shortage, occurs when quantity demanded is greater than quantity supplied at the current price. When price sits below equilibrium, buyers compete for the limited output, pushing the price upwards. As it rises, quantity demanded contracts while quantity supplied extends. This continues until the two are equal again.
An excess supply, or surplus, occurs when quantity supplied is greater than quantity demanded at the current price. Above the equilibrium price, firms cannot sell all their output, so the price is pushed down. Quantity demanded then extends and quantity supplied contracts until the market returns to equilibrium.

Watch the terminology here. If the curves stay fixed, a price change causes movements along the demand and supply curves; neither curve shifts.
A non-price determinant of demand changes the position of the entire demand curve. Suppose preferences shift towards a product. Demand moves right from to : is the initial demand curve and is the new one. At the old equilibrium price, quantity demanded is now greater than quantity supplied, so excess demand appears. Price rises as a result, causing an extension of supply and a contraction of demand along the new curve. The new equilibrium has a higher price and a larger quantity.

For a decrease in demand, the chain works in reverse. A leftward shift creates excess supply at the old price, causing both equilibrium price and equilibrium quantity to fall.
Suppose better production methods lower firms' unit costs. Supply shifts right from to , with as the initial supply curve and as the new supply curve. At the old equilibrium price, quantity supplied is greater than quantity demanded. This excess supply pushes the price down. The new equilibrium has a lower price and a larger quantity.

A decrease in supply shifts the curve left. Excess demand then develops at the old price, raising equilibrium price and reducing equilibrium quantity.
For any applied change, work through the whole chain. Identify the relevant non-price determinant, then state which curve shifts and in which direction. Next, identify the imbalance at the old price and explain what happens to the new equilibrium price and quantity. On a market diagram, label both axes, every curve, both equilibria and the projected prices and quantities.
When demand and supply change at the same time, consider their effects separately. An increase in demand and a decrease in supply both raise equilibrium price, but they have opposing effects on quantity. Without knowing the relative size of each shift, the change in quantity is indeterminate. A decrease in demand combined with an increase in supply definitely lowers price, while the change in quantity remains indeterminate. If both curves shift in the same direction, the change in quantity is clear, but the effect on price depends on which shift is larger.
2.3.3
FUNCTIONS OF THE PRICE MECHANISM
The price mechanism is the market process by which changes in demand and supply alter prices and guide the allocation of scarce resources. It coordinates decisions made by separate consumers and producers. Consumers don’t tell firms what to produce, but their purchases influence prices and profitability.
Resource allocation refers to how factors of production are distributed among competing uses. Through the price mechanism, land, labour and capital tend to shift towards markets where demand and potential returns have risen. They move away from markets where demand and returns have fallen.
Three connected functions drive this process:

These functions work together. Suppose stronger demand raises the price. The new price signals an opportunity to producers and gives them an incentive to expand, while rationing the product for as long as output remains scarce. Firms then demand more factors of production, shifting resources towards that market. At the same time, the higher price changes consumer choices by encouraging substitution or reduced consumption.
2.3.4
CONSUMER AND PRODUCER SURPLUS
A demand curve shows the maximum price consumers will pay for each successive unit. Because some buyers would have paid more than the single market price, they gain from the exchange.
Consumer surplus is the welfare gain created by the difference between the highest price consumers are willing to pay and the price they actually pay. For one unit, it equals willingness to pay minus market price. Across the whole market, consumer surplus is the area below the demand curve but above the market price, up to the quantity traded. The entire area below demand does not count—only the part above the price line.
A supply curve shows the minimum price producers will accept for each successive unit. Some firms would have supplied their units at a price below the market price.
Producer surplus is the welfare gain created by the difference between the price producers receive and the minimum price they are willing to accept. Across the whole market, it is shown by the area above the supply curve and below the market price, up to the quantity traded.

Consumer surplus is the benefit buyers receive; producer surplus is the benefit sellers receive. Neither one is revenue. Producer revenue includes the amount needed to cover the minimum acceptable price shown by the supply curve, while producer surplus includes only the amount above it.
2.3.5
SOCIAL OR COMMUNITY SURPLUS
Social surplus, also called community surplus, measures total market welfare. It equals consumer surplus plus producer surplus, so it captures the combined gains consumers and producers receive from the units exchanged:
In a competitive market diagram, social surplus covers the whole area between the demand and supply curves, from zero output to the equilibrium quantity. The market price splits this area between consumers and producers. Moving the price line alone changes how the gains are distributed, not the combined area, as long as the same efficient quantity is traded.

Within this model, social surplus gives a specific measure of welfare. On its own, it doesn’t show whether the gains are distributed fairly. The diagram also includes only the benefits and costs shown by the demand and supply curves.
2.3.6
ALLOCATIVE EFFICIENCY AT COMPETITIVE MARKET EQUILIBRIUM
Allocative efficiency occurs when resources produce the combination and quantity of goods that gives society the greatest net benefit. In the competitive market model, this happens at the equilibrium quantity, where social surplus reaches its maximum.
Marginal benefit is the additional benefit society gains from consuming one more unit of a good. It is shown by , where is marginal benefit measured in currency units per additional unit. Since consumers’ willingness to pay reflects the benefit of an extra unit, the demand curve can be read as the marginal-benefit curve.
Marginal cost is the additional opportunity cost to society of producing one more unit of a good. It is shown by , where is marginal cost measured in currency units per additional unit. Firms require a price that covers the cost of supplying an additional unit, so the supply curve can be interpreted as the marginal-cost curve.
Allocative efficiency occurs where:

Below the equilibrium quantity, . An additional unit provides more benefit than it costs to produce, so a rise in output increases social surplus. The unproduced units between the current quantity and equilibrium represent mutually beneficial exchanges that have been missed.
Above the equilibrium quantity, . These additional units cost society more to produce than consumers value them, which reduces social surplus. The resources should instead move to uses where they provide greater benefits.
At the competitive equilibrium, demand intersects supply and . The market produces every unit whose benefit is at least as great as its cost, but not units whose cost would exceed their benefit. Social surplus is therefore maximized at the equilibrium quantity. This isn’t because each stakeholder receives an equal share; rather, no further change in output can raise the model’s total net benefit.
2.3.7
CALCULATING CONSUMER AND PRODUCER SURPLUS FROM A DIAGRAM
Consumer and producer surplus can be worked out as geometric areas. When the demand and supply curves are straight, each surplus will usually form a triangle. Use:
For consumer surplus, the base usually extends from zero to the equilibrium quantity. Its height is the gap between the demand curve's price-axis intercept and the equilibrium price. Producer surplus also has a base that extends to the equilibrium quantity, but its height runs from the supply curve's price-axis intercept to the equilibrium price.

A rectangular shaded region is found by multiplying base by height. For a trapezium, use the trapezium-area formula or divide the shape into a rectangle and a triangle. First, though, identify the correct surplus region. Choose the area formula afterwards.
Check the axis scales carefully. If quantity is given in thousands of units, a reading of 40 on the diagram represents 40,000 units. Multiplying a price per unit by a quantity recorded in thousands gives thousands of currency units, unless the quantity is converted first. Since surplus measures value rather than physical quantity, the final answer needs a monetary unit.
To find social surplus, add the calculated consumer and producer surpluses. Where the two shaded regions make a single triangle between demand and supply, calculating the combined area directly produces the same result.