The Robertson-Walker (RW) metric ds² = -c²dt² + a(t)²[dr²/(1-kr²) + r²dΩ²] is the most general metric for a spatially homogeneous and isotropic universe. The scale factor a(t) encodes the expansion history of the universe, and the curvature parameter k takes values +1 (closed, spherical spatial geometry), 0 (flat, Euclidean spatial geometry), or -1 (open, hyperbolic spatial geometry). The coordinates are comoving: galaxies at rest in the cosmic expansion have fixed spatial coordinates (r, θ, φ), and the physical distance between them grows as a(t) increases. Cosmic time t is the proper time of comoving observers. The RW metric is the geometric foundation of all standard cosmological models — the Friedmann equations, which govern the evolution of a(t), are derived by inserting this metric into the Einstein field equations.
The cosmological principle — the assumption that the universe is homogeneous (the same at every point) and isotropic (the same in every direction) on large scales — constrains the spacetime geometry to a specific form. In 1935-1936, Robertson and Walker independently proved that the most general metric compatible with spatial homogeneity and isotropy is ds² = -c²dt² + a(t)²[dr²/(1-kr²) + r²(dθ² + sin²θ dφ²)], where a(t) is an arbitrary function of time (the scale factor) and k is a constant that can be normalized to +1, 0, or -1 (the curvature parameter). This result is purely geometric — it does not depend on the Einstein equations, only on the symmetry assumptions.
The coordinates have a direct physical interpretation. The time coordinate t is cosmic time — the proper time measured by clocks at rest in the cosmic expansion (comoving observers). The spatial coordinates (r, θ, φ) are comoving coordinates: a galaxy participating in the uniform Hubble expansion has fixed (r, θ, φ) for all time. The physical distance between two comoving galaxies separated by coordinate distance Δr is d(t) = a(t) × Δr, which changes with time as a(t) changes. The scale factor is conventionally normalized so that a(t₀) = 1 at the present time t₀. The redshift of a distant galaxy is directly related to the scale factor at the time of emission: 1 + z = a(t₀)/a(t_e) = 1/a(t_e).
The curvature parameter k determines the geometry of spatial slices (constant-t hypersurfaces). For k = +1, the spatial geometry is that of a 3-sphere — positively curved, finite in volume, with parallel lines eventually converging. For k = 0, space is flat Euclidean — the familiar geometry of everyday experience extended to cosmological scales. For k = -1, space is hyperbolic — negatively curved, with parallel lines diverging and the volume of a sphere growing faster than r³. Current observations constrain the universe to be very close to spatially flat: |Ω_k| = |k|/(aH)² < 0.002, consistent with k = 0. This near-flatness is one of the motivations for cosmic inflation, which dynamically drives the universe toward k = 0.
The Robertson-Walker metric is the input to the Einstein field equations. The matter content of the universe is modeled as a perfect fluid with energy density ρ(t) and pressure p(t) (both spatially uniform, by homogeneity). Inserting the RW metric and the perfect-fluid stress-energy tensor into the Einstein equations yields the Friedmann equations, which are ordinary differential equations for a(t). The metric itself does not determine the expansion history — that requires specifying the matter content (through the equation of state p = wρc²) and the cosmological constant Λ. But the RW metric provides the geometric framework within which all of homogeneous cosmology operates, from the Big Bang to the present accelerating expansion.