  We present a Green's function method for the evaluation of the particle
density profile and of the higher moments of the one-body density matrix in a
mesoscopic system of N Fermi particles moving independently in a linear
potential. The usefulness of the method is illustrated by applications to a
Fermi gas confined in a harmonic potential well, for which we evaluate the
momentum flux and kinetic energy densities as well as their quantal mean-square
fluctuations. We also study some properties of the kinetic energy functional
E_{kin}[n(x)] in the same system. Whereas a local approximation to the kinetic
energy density yields a multi-valued function, an exact single-valued
relationship between the density derivative of E_{kin}[n(x)] and the particle
density n(x) is demonstrated and evaluated for various values of the number of
particles in the system.
