I don't know what's wrong with it but the previous JavaScript I used is down. Thus I had to find another way to display the equations you are so fond of.

The solution was provided by this post in the blog Dysfunctional. It uses the MathJax JavaScript and the equations do look mighty fine.

## Thursday, May 5, 2011

[+/-] |
## Watchmath script |

## Wednesday, April 13, 2011

[+/-] |
## Mathematical trick in Statistical Physics |

The other day I was looking into some Statistical Physics and ended up doing an exercise that was kinda cute. The exercise in question is on Mandl's Statistical Physics, Second Edition page 66.

The first time I did the exercise I did it the normal way, but then I noticed something that ended up simplifying my calculations and here I am posting it.

*A system has three energy levels* $ {E_1= \epsilon } $, $ {E_2=2 \epsilon } $ *and* $ {E_3=3 \epsilon } $ *with degeneracies* $ {g(E_1)=g(E_3)=1} $, $ {g(E_2)=2} $. *Find the heat capacity of the system*.

Don't worry if you don't understand all the terms in here since the gist of this post is not Statistical Physics but the mathematical trick I ended up using.

To solve this problem we need to calculate the partition function $ {Z} $.

After having calculated the partition function we have to calculate the average energy, $ {\bar{E}} $, of this system. By definition it is:

Keeping in mind that in Statistical Physics it is $ {\beta = 1/(kT)} $ the heat capacity, $ {c} $, is (this is where I started using the trick):

Notice that up until now we haven't calculated a thing at all. All that we have done is just to change variables in order to ease the difficulty in the derivative we'll have to calculate.

Taking the derivative with respect to $ {T} $ in the last expression isn't that hard, but it sure is boring and if one isn't careful errors are expected to creep in.

On the other hand the last expression is much easier to differentiate, but since we are caught up in the moment we'll just do one more change of variable.

Yes, in this case the simplification wasn't that great but I think that one shouldn't lose sight of the fact that this type of reasoning can greatly simplify some other physical derivations.

As an afterthought just let me point out the fact that we cold get a much simpler life if we just remembered a very easy algebraic identity:

With this expression the calculation of $ {\bar{E}} $ and $ {c} $ is a lot easier and the reader is urged to try it out.