The Ricci tensor R_μν and the Ricci scalar R are contractions of the Riemann curvature tensor that extract the part of curvature directly coupled to matter. The Ricci tensor R_μν = R^λ_{μλν} is a symmetric (0,2) tensor that measures how volumes of small geodesic balls are deformed relative to flat space — it tells you whether nearby geodesics converge or diverge on average. The Ricci scalar R = g^{μν}R_μν is the trace of the Ricci tensor, a single scalar measuring the total curvature at a point. Together they form the Einstein tensor G_μν = R_μν - (1/2)g_μν R, which appears on the left side of Einstein's field equations. In vacuum (no matter), R_μν = 0, but the full Riemann tensor can still be nonzero — the remaining curvature is encoded in the Weyl tensor, which describes tidal forces and gravitational waves in empty space.
The Riemann curvature tensor R^ρ_{σμν} has 20 independent components in four dimensions and contains complete information about the curvature at each point. For the Einstein field equations, however, you do not need all 20 components — you need a (0,2) tensor that can be equated to the stress-energy tensor. The Ricci tensor R_μν = R^λ_{μλν} is obtained by contracting (tracing over) the first and third indices of the Riemann tensor. This contraction reduces the 20 components to 10 independent ones (the Ricci tensor is symmetric, R_μν = R_νμ, as a consequence of the Riemann tensor's symmetries). The Ricci scalar R = g^{μν}R_μν is the further contraction to a single number, giving the total curvature at a point.
Physically, the Ricci tensor measures how spacetime curvature focuses or defocuses bundles of geodesics — equivalently, how it changes the volume of a small freely falling ball of test particles. If you release a small spherical cloud of dust particles from rest, the initial rate of volume contraction is proportional to R_μν u^μ u^ν, where u^μ is the common four-velocity. In the presence of ordinary matter, this quantity is positive: gravity causes the ball to shrink, which is the attractive nature of gravity expressed geometrically. In vacuum, R_μν = 0, and the ball maintains its volume but changes its shape — it gets stretched in some directions and squeezed in others. The shape-changing part is encoded in the Weyl tensor, which is the trace-free part of the Riemann tensor.
The Einstein tensor G_μν = R_μν - (1/2)g_μν R is the specific combination of Ricci tensor and scalar that appears in the field equations. Its special property is the contracted Bianchi identity: ∇^μ G_μν = 0 holds as a mathematical identity, requiring no assumptions about the spacetime or the matter content. This is crucial because the stress-energy tensor on the right side of the field equations must satisfy ∇^μ T_μν = 0 (local energy-momentum conservation). If the geometric side of the equation were not automatically divergence-free, the field equations would impose additional constraints on the matter that would generally be inconsistent. The Einstein tensor is, up to the addition of a cosmological constant term Λg_μν, the unique symmetric, divergence-free (0,2) tensor constructible from the metric and its first and second derivatives.
The vacuum field equations R_μν = 0 are deceptively simple-looking — they are 10 coupled, nonlinear, second-order partial differential equations for the 10 independent metric components. Despite R_μν = 0, the spacetime can be highly curved because the Weyl tensor (the remaining 10 components of the Riemann tensor) can be nonzero. The Schwarzschild solution (the spacetime outside a spherical mass) satisfies R_μν = 0 everywhere outside the mass, yet it has nonzero Weyl curvature that produces tidal forces, bends light, and creates the event horizon of a black hole. Gravitational waves in vacuum are also propagating Weyl curvature — oscillating tidal distortions traveling at the speed of light with zero Ricci curvature.