Demand and supply functions
A
demand equation or
demand function expresses demand $q$ (the number of items demanded—for example the number sold) as a function of the unit price $p$ (the price per item).
A
supply equation or
supply function expresses supply $q$ (the number of items a supplier is willing to bring to the market—for example the number manufactured) as a function of the unit price $p$ (the price per item).
It is usually the case that demand decreases and supply increases as the unit price increases.
Demand and supply are said to be in
equilibrium when demand equals supply. The corresponding values of $p$ and $q$ are called the
equilibrium price and
equilibrium demand. To find the equilibrium price, determine the unit price $p$ where the demand and supply curves cross (sometimes we can determine this value analytically by setting demand equal to supply and solving for $p$). To find the equilibrium demand, evaluate the demand (or supply) function at the equilibrium price.