Use of the distribution function method in field theory