Putting the average expansion into the coordinate ruler lets us calculate motion relative to that ruler. A box can keep its displayed size as the physical distance it represents grows. Deciding whether matter approaches requires both changes.
Write physical position as r and comoving position, with length units, as x. The scale factor a records expansion relative to a reference epoch. For a comoving box of length L=20Mpc, define dimensionless position y=x/L. Its displayed coordinates run from zero to one.
Matter following perfectly uniform expansion keeps the same y as its physical position changes. Comoving coordinates remove that shared expansion, exposing the migration relative to the average flow. A megaparsec is a length unit; the displayed box uses comoving lengths.
x=Ly,r=aLy
Doubling the scale factor doubles the physical separation represented by a fixed comoving interval. The reference epoch fixes this teaching model’s units independently of a fit to today’s universe.
Differentiating physical position gives a term from the growing ruler and a term from motion along it. Define H=a˙/a, with a dot denoting a cosmic-time derivative. The second term is the peculiar velocity vpec, measured relative to the average expansion.
A particle can move inward in comoving coordinates and still move physically away from the chosen origin. Inward peculiar motion must overcome outward expansion before the physical separation starts shrinking. The same distinction applies to neighbouring pieces of matter.
r˙=Hr+vpec,vpec=aLy˙
The origin follows the average expansion. These velocities are defined relative to it in a Newtonian box much smaller than the Hubble scale.
The saved u is dimensionless. Begin with canonical momentum per unit mass, p=a2x˙=avpec, then divide by the fixed velocity scale H⋆L. Canonical momentum is defined with the chosen coordinates and helps organise their equations of motion.
Our adopted H⋆=70kms−1Mpc−1 and box length give H⋆L=1400kms−1. The star marks a model reference value. Retaining both a and u is enough to recover peculiar velocity at each epoch.
The extra factor of a has a useful consequence. In the uniform-background limit with no peculiar gravitational force, peculiar velocity declines as 1/a, but u stays constant. The variable has absorbed the expansion-dependent part of that change.
u=H⋆Lavpec,vpec=aH⋆Lu
Multiplying the stored momentum by the velocity scale is insufficient: divide by the current scale factor too. Momentum per unit mass is also distinct from the momentum obtained after multiplying by the particle mass.
Consider a specified state at a=0.5: yx=0.25 and ux=−0.2 along a chosen axis. The negative sign points peculiar motion towards the origin. These are specified values for a conversion exercise.
The comoving distance is 20×0.25=5Mpc. Multiplying by 0.5 gives a physical distance of 2.5Mpc. Peculiar velocity is 1400×(−0.2)/0.5=−560kms−1.
In the flat matter-only Einstein–de Sitter (EdS) background adopted here, H(a)=H⋆a−3/2. At this epoch it is about 198kms−1Mpc−1, giving an outward expansion term near 495kms−1. The sum is approximately −65kms−1: the physical distance to the origin is shrinking.
r˙x≃(198)(2.5)−560=−65kms−1
The first term uses physical distance times the Hubble rate. The second is peculiar velocity. Their sum determines whether physical separation grows or shrinks.
The model keeps expanding, so its monotonic a can serve as an integration clock. Let ϕ be the physical peculiar potential, with units of speed squared, and define U=aϕ/(H⋆2L2). The vector ∇yU lists its rates of change along the three comoving directions; gravity points opposite to it.
Use a˙=aH=H⋆a−1/2 to change time derivatives into derivatives with respect to a in Newton’s equation. This gives the following pair. Expansion is already accounted for by the canonical momentum variable.
dady=a−3/2u,dadu=a−1/2(−∇yU)
These equations accompany an updated gravitational potential at every step. They assume the matter-only background, subhorizon Newtonian dynamics and collisionless particles.
Opposite box faces connect. For display, subtract an integer from yx to put it back between zero and one. Exports retain continuous positions for following a particle across that face. Coordinates separated by an integer describe periodic copies.
Crossing the displayed boundary loses no mass and is not escape from gravity. Shell crossing, in the next chapter, instead means that different material streams overlap at one location.
If y stays fixed and a doubles, what happens to physical separation and peculiar velocity?
Read the explanation
Physical separation r=aLy doubles. Peculiar velocity is zero because y˙=0. All the changing physical separation comes from the average expansion.
With no peculiar gravitational force, u is constant. What happens to peculiar velocity between a=0.5 and a=1?
Read the explanation
It halves, since vpec=H⋆Lu/a. Canonical momentum remains constant as peculiar speed declines.
Would the worked particle still physically approach the origin if ux=−0.1?
Read the explanation
Its peculiar velocity becomes −280kms−1. Adding expansion near 495kms−1 gives outward motion near 215kms−1, slower than pure expansion but still separating.
Focused reading: Section 2.1, equations 1–3; Section 3.2/3.2.1, equations 20–23; Section 4.1, equations 26–31, with original pages 3 and 11 viewed. Supplies cosmological momentum, PM windows and time-integration context. The teaching calculation specifies its own cutoff and finite gradient and adds no short-range tree force.
Original accepted kernel/linear, nonlinear and five-preset F64 calculations support the teaching figures and calibration. This small public ZIP contains only an exact current-state small-wave fixture, an independent NumPy/SciPy trajectory replay and expected output. The fixture was generated through the frozen model and canonical serializer in Node, not downloaded in a browser. Large raw preset archives remain separately retained; no Engine or source paper is included.
Keep reading
What this page links to directly
You are hereMeasuring Motion with an Expanding Ruler