An example of affine collineation in the Robertson–Walker metric

Abstract
An affine collineation for the Robertson–Walker metric is found. It implies a condition on the metric that is compatible with Einstein’s equations for a perfect fluid satisfying the Hawking–Ellis energy conditions. It is shown how the geodesics of the metric are obtained from the constant of motion associated to the affine collineation.