The cosmological perfect-fluid continuity equation gives . In a flat universe the Friedmann equation then gives , where . Writing , the angular diameter distance obtained from the luminosity distance is
It is positive for , starts at zero and tends to zero as for every , including where the radial comoving distance itself is unbounded. Differentiation gives the constant-equation-of-state angular diameter distance maximum:
For the stationary equation is , which has exactly one solution greater than one. For the derivative has the sign of . Hence this stationary point is always the unique maximum.
To determine the sketch's shape, differentiate :
with limiting value at . The inequality follows because has its unique minimum zero at one. Thus decreases from infinity as to as . Useful points are at , at , and at . The endpoint is excluded: there increases to an asymptote and has no finite turning point.