You may be interested in reading Relativity Demystified by David McMahon. On page 161 the following problem is worked out: Consider the RobertsonWalker metric and suppose we take the Einstein equation with nonzero constant, find the Friedman equations.
