I've a basic Bose–Einstein statistics exercise. I've tried to solve it in two ways, but each way gives a different result.
We have $n$ identical bosons without interactions at temperature $T$. There are two states, of energies $\epsilon > 0$ and $0$. The question is: What is the value of $U$?
- The first way is to say that the number of particles of the system is the sum of the average number of bosons for each energy :
$$n = \frac{1}{e^{\beta\epsilon-\alpha}-1}+\frac{1}{e^{-\alpha}-1}$$
Given $n$, we can obtain $\alpha = f(n)$ and finally say that
$$U = \frac{\epsilon}{e^{\beta\epsilon-f(n)}-1}$$
I've calculated $f$ (it is quite long...), and it doesn't give the same results than the second method.
- The second way is to say that
$$Z(\beta) = \sum_{n_0 + n_\epsilon = n} e^{-\beta n_\epsilon \epsilon} = \frac{1 - e^{-\beta\epsilon (n+1)}}{1-e^{-\beta \epsilon}}$$
and then
$$U = -\frac{\partial \ln Z}{\partial \beta}$$
In fact, I've seen the solution of the exercise and it is the second answer. But why is the first wrong?