The expansion of the universe is governed by its spatial curvature and energy density, both of which have specific ways of changing as the universe grows. These features are related to each other by Einstein's general theory of relativity, which can be used to model the past and possible future of the universe.