At first sight one can say "why not to use only one term, or maybe three or more terms"? Why use two terms? I see that books (see for example good books like Griffiths quantum mechanics or Atkins physical chemistry) use the $\ln(x!)\approx x \ln x - x$ formula, but no one justify this choice. I did calculus using the smaller formula $\ln(x!)\approx x \ln x$ finding, for identical fermions and bosons, the same results that books find using the longer formula (i.e. $N_n = \frac{d_n}{e^{\alpha+\beta e_n} \pm 1}$ where $N_n$ is the number of particles in energy level $E_n$, with degeneracy $d_n$, while $\alpha$ and $\beta$ are the Lagrange multipliers).
The only reason I can speculate to choose $\ln(x!)\approx x \ln x - x$ instead of $\ln(x!)\approx x \ln x$ is that the approximation of the simpler formula is so bad that, despite it works for $x\to\infty$, it doesn't work in the physical context we are playing with. But if this is the reason, the choice should be accompanied by some considerations. A look at this plot suggest that this line of thinking is correct: even for a huge number like Avogadro's one, the difference with the two formulas is about 2\% (the ratio became bigger of 0.99 only for $2.688117141816367\cdot10^{43}$)
But these considerations are not sufficient to justify the use $\ln(x!)\approx x \ln x - x$. I see that $\ln(x!)\approx x \ln x$ is not appropriate for the proof of statistical quantum mechanics, but how can I see that $\ln(x!)\approx x \ln x - x$ is appropriate? The only way seems to be a comparison with the function $\ln(x!)$, but here problems arise.
- First. Surely we are interested to a number big and much smaller than Avogadro's number, but this sounds vague... what number should we elect as representative of the typical population of a typical energy level, to test the proper functioning of the approximated formula?
- Second. When the argument of $\ln(x!)$ starts becoming big, it put a strain even the powerful computing capabilities of computers
I did this plot
that suggests that this line of thinking too could be correct (for $x=170$, the maximum value hold by the junk of my computer before crashing, the error is about $0,5\%$), but the plot is not decisive and I'd like something stronger, solving satisfactorily the two problems I listed above. A way to proceed could be finding a way to maximize the error done by using $x\ln x - x$ instead of $\ln(x!)$ and then show that this error is not significative for every reasonable value of $x$, but I can't do it.
Adjunct
I'm asked to write down the proof, I'll report the final: it is possible to show under reasonable assumption that the quantum statistics can be found by finding the maximum (with constraints of conservation of particles and energy) of $Q$, where $Q$ for fermions and bosons is respectively $$ Q_{ferm} = \prod_{n} \frac{d_n!}{N_n!(d_n-N_n)!} $$ $$ Q_{bos} = \prod_{n} \frac{(N_n+d_n-1)!}{N_n!(d_n-1)!} $$ and exploiting the hypothesis $1 \ll N_n \ll d_n$. Taking logarithm does not alter the positions of maxima (this step transforms products in sums and will allow us to exploit Stirling). Exploiting Lagrange method we have $$ \frac{\partial}{\partial N_n} \left[ \ln Q + \alpha \left( N - \sum_n N_n \right) + \beta \left( E_n - \sum_n N_n E_n \right) \right]=0 $$ Going on we get to the crucial step, connected with this question: for fermions and bosons we have $$ \frac{\partial }{\partial N_n} \sum_n [ \ln ( d_n! ) - \ln ( N_n ! ) - \ln(d_N - N_n)! ] = \alpha + \beta E_n $$ $$ \frac{\partial }{\partial N_n} \sum_n [ \ln (N_n + d_n - 1)! - \ln ( N_n ! ) - \ln (d_n - 1)! ] = \alpha + \beta E_n $$ from wich you can see that using indifferently $\ln(x!)\approx x \ln x$ or $\ln(x!)\approx x \ln x - x$ you will find $N_n = \frac{d_n}{e^{\alpha+\beta e_n} \pm 1}$. Anyway this is not the real problem that trouble me, the problem is "how can I see that taking two terms in $\ln(x!) \approx \dots$ is reasonably safe?".