The Mathematics of Cities
Cities are not just random collections of buildings and people; they follow surprising mathematical regularities. From the distribution of city sizes to the pace of innovation, equations can describe the pulse of urban life.
Zipf’s Law and City Sizes
One of the most famous empirical regularities in urban science is Zipf’s Law. It states that the population of the -th largest city is proportional to of the largest city’s population.
Mathematically, if is the population of the city with rank , then:
Where:
- is the population of the largest city.
- is the rank of the city.
This power-law distribution implies a scale-invariant hierarchy in urban systems.
Urban Scaling Laws
Cities also exhibit allometric scaling. Many urban indicators (like GDP, road surface area, or crime) scale with population according to a power law:
Taking the logarithm of both sides, we get a linear relationship:
The exponent reveals the nature of the scaling:
- (Linear): Household water consumption typically scales linearly with population.
- (Sublinear): Infrastructure (roads, cables) often scales sublinearly (e.g., ), indicating economies of scale. A city twice as large needs less than twice the infrastructure.
- (Superlinear): Socio-economic outputs (wealth, patents, crime) often scale superlinearly (e.g., ), indicating increasing returns to scale. A city twice as large produces more than twice the wealth.
The Gravity Model of Trade
Modeled after Newton’s law of gravitation, the interaction (e.g., trade, migration, commuting) between two cities and is proportional to their populations and inversely proportional to the distance between them:
Where:
- are the populations of the two cities.
- is the distance between them.
- is a constant.
- is a distance decay parameter (often close to 2).
Modeling Traffic Flow
Traffic flow (vehicles per hour) is related to density (vehicles per km) and speed (km/h) by the fundamental equation:
A simple linear model for speed (Greenshields’ model) assumes speed decreases linearly with density:
Where:
- is the free-flow speed.
- is the jam density.
Substituting this back into the flow equation gives a parabolic relationship:
This helps urban engineers determine the optimal density for maximum traffic flow.
Conclusion
Mathematics provides a powerful language to decode the complexity of our cities. By understanding these underlying laws, we can design more efficient, resilient, and equitable urban environments.