I am reading the book "Electronic Structure" by Richard Martin which poses the following problem:
Show that the expectation value of an operator $\hat O$ in a system of identical, non-interacting Fermions (i.e. electrons with the independent particle approximation) has the following form:
$$ \left<\hat O\right> = \sum_{i,\sigma} f_i^\sigma \left<\psi_i^\sigma|\hat O|\psi_i^\sigma\right>$$
Where, $f_i^\sigma = \frac{1}{e^{\beta(\epsilon_i^\sigma - \mu)} + 1}$ and $\psi_i^\sigma$ is the eigenvector of the ith single particle state with spin $\sigma$.
I have begun the derivation thusly (j is the jth eigenstate of the multibody system):
$$ \left<\hat O\right> = Tr\left(\hat \rho \hat O \right) = \sum_j \left<\Psi_j|\hat \rho \hat O |\Psi_j \right>$$
Since $\hat \rho$ is Hermitian:
$$ \sum_j \left<\Psi_j|\hat \rho \hat O |\Psi_j \right> = \sum_j \left<\hat \rho\Psi_j| \hat O |\Psi_j \right> $$
In the Grand Canoncial Ensemble: $\hat \rho = \frac{1}{Z}e^{-\beta(\hat H - \mu\hat N)} $
Further, considering that the jth eigenstate of the multibody system will be composed of N single particle wave functions, one can write:
$$ \sum_j \left<\hat \rho\Psi_j| \hat O |\Psi_j \right> = \sum_{\{n_i,\sigma_i\}} \frac{1}{Z}e^{-\beta(\sum_i n_i\epsilon_i^{\sigma_i}-\mu \sum_i n_i)}\left<\Psi_j| \hat O |\Psi_j \right> $$
Based on my understanding of the other quantum mechanics reference I have been using, if $\hat O$ was simply the operator which returns the number of particles in the ith single particle state with spin $\sigma$, the sum reduces to the $f_i^\sigma$. So my guess as how to obtain the general result is to suppose that $\hat O$ is the combination of N single particle operators $\hat O = \sum_i \hat O_i$.
Hence,
$$\left<\Psi_j| \hat O |\Psi_j \right> = \left<\Psi_j| \sum_i \hat O_i |\Psi_j \right> = \sum_i \left<\psi_i^\sigma | \hat O_i | \psi_i^\sigma \right>$$
After this point, I am stuck and I do not see how this could reduce down to the given result. Further it would seem to me that the author should have placed a restriction on $\hat O$ to be only a single particle operator on the rhs of the target result.