Wednesday, July 18, 2012

Maxwell-Boltzmann distribution formula





Hi, I'm sure that all of you study in school thermodynamics. And you might have heard at least once about Maxwell-Boltzmann distribution, which looks like....this:


f_\mathbf{v} (v_x, v_y, v_z) =
\left(\frac{m}{2 \pi kT} \right)^{3/2}
\exp \left[-
\frac{m(v_x^2 + v_y^2 + v_z^2)}{2kT}
\right],
Have you ever wondered where this huge formula came from? Well, I did. In the post I'll try to explain it as clearly as possible! Enjoy!

First of all I will introduce a few statistical terms, like microstate, macrostate and multiplicity.

A microstate is simply a possible distribution of the elements( particles, energy...) of a system.
A macrostate, on the other hand is a more general characteristic of a system, focusing on the quantity of the elements in the system  distributions.

For example, suppose we drop 3 coins. I'll note one side of a coin with 1 and the other one with 0.

Now, after I drop them, the possible states are:

1 1 1                1 0 0
1 1 0                0 1 0
1 0 1                0 0 1
0 1 1                0 0 0

Each of the 8 occurences is called a microstate!

What about quantities? Well we have:

-3 1 and no 0
-2 1 and 1 0
- 1 1 and 2 0
- no 1 and 3 0

Each of the 4 descriptions of the system is called macrostate!

I think it that this new terms are clear enough now. The multiplicity (Wof a system is the ratio between the number of the microstates and the number of the macrostates. So,in our example the multiplicity is 2. The bigger the multiplicity is , the greater the disorder grade of a system is. For example, if we have one ball and ten baskets, there is one macrostate( the number of the empty baskets stays the same), but the number of microstates is ten( the ball can be placed in 10 different places), so the multiplicity is 10. However, if we have one ball and 20 baskets, the multiplicity is 20! It is  harder to guess where the ball is in the second case, so that system is more chaotic, or more disordered! So, the multiplicity measures the disorder of a system.
*The fundamental assumption of thermodynamics: In an isolated system in thermal  equilibrium, all accessible microstates are equally probable. It is obvious that the macrostates of a system have different multiplicities. In our example, the macrostate "2 one and 1 zero" had a multiplicity equal to 3.

Thus, we can introduce the second law of thermodynamics: A system evolves to the macrostate with the highest multiplicity. It is quite simple to understand why. It is matter of probability. The one with more lottery tickets has the greatest chances to win!  In other words, systems then to flow to the highest degree of chaos. Look at our Universe, which is constantly expanding!

In order to exemplify this better, I will discuss the interaction between two bodies, A and B, that can interact by exchanging energy( they form a closed system). Their total energy is U,so UA + UB = U. The energy of each body can obviously vary from 0 to U. The graph between the multiplicity of the system and the energy of one body, let's say UA looks like this:



 You can observe that the curve is sharper if the energy and the number of oscillators of the system is higher. So, systems with very high numbers of particles( 10^23) will be found almost certainly in a specific state.( the   apex of the curve). Now you should already understand what the thermal equilibrium between two bodies actually mean. The equilibrium temperature established between bodies in contact you learn in school is actually the temperature for which the system is found in the macrostate with the highest grade of disorder. So, temperature is a matter of statistic after all!

Since the equilibrium between the bodies is met at the apex, it is obvious that

dSTOTAL / dUA = 0 at equilibrium.

STOTAL = SA +SB
 so (dSA +dSB)/ dUA =0
the system is isolated, so dUA=dUB
In the end,we get that 
dSA/ dUA = dSB/ dUB= T

thus, I can now introduce the definition of temperature,

T=(dS/ dU)V.N ( at constant volume and number of particles)




The multiplicity of the large systems like gases or other solid or liquid bodies, which are formed of about 10^24 atoms is....a big number. So, scientists introduced a new size, called entropy, noted with S.

           S = k \cdot \ln W \!

where k is the Boltzmann constant.
As multiplicity, entropy measures the disorder grade of a system.`

Of course, a graph between entropy and energy of a body can be sketched as well.

Now, we'll get serious. It's time to demonstrate Boltzmann distribution formula. Boltzmann, not Maxwell-Boltzmann! not yet...

As I stated before,if  a system is isolated, all microstates are equally probable.So if we connect the system to a reservoir with temperature T held constant, microstates with different energies will have different probabilities.
 Let's take to states of the system, s1 and s2, with energies E1 and E2 and probabilities P1 and P2

The probabilities are proportional to the multiplicity of the system, so

P1 / P2 = W1/ W2

or P1/ P2 = e^S1/k /e^S2/k, since     S = k \cdot \ln W \!, S1 and S2 are quantities for the reservoir

dER= TdSR for the reservoir( we write this relation only for this reservoir because its size is so big that its temperature remains constant during the process).

dES=-dER( energy exchanges between the system and the reservoir are complementary), so dES= -TdS so ES= TS( we can integrate like this, since T remains the same)

thus, we obtain:

P1/P2=e^-E1/kT / e^-E2/kT

if the system consist of a large number of particles, the ratio between the number Ni having the energy Ei and the total number of particles N is given by the formula:

{N_i \over N} = {g_i e^{-E_i/(k_BT)} \over Z(T)}

where g_i is the degeneracy (meaning, the number of levels having energy E_i; sometimes, the more general 'states' are used instead of levels, to avoid using degeneracy in the equation) and Z(T) is the partition function.
Considering  

 N=\sum_i N_i,
we get that the partition function equals:
Z(T)=\sum_i g_i e^{-E_i/(k_BT)}.\

The ideal gas is a particular system where Boltzmann distribution applies!

For the ideal gas gi is 0 and  the potential energy between the particles are neglected and the energy is only kinetic.
These are the representations of the Boltzmann distribution for gases at different temperatures!


Next, I'll show you how to derive Maxwell-Boltzmann distribution using Boltzmann distribution.



First, you should understand that the Boltzmann distribution is dealing with energies. You can deduce that according to it, the most probable energy in a system of bodies is 0. However, since the energy in an ideal gas is only kinetic energy, you might infer that the most probable speed is 0, which seems illogical( it's weird to think of perfectly still molecules in the middle of the gas). What's the answer to the riddle? Remember that I said that Boltzmann distribution is only dealing with the probabilities of energies, not probabilities of velocities!

Now, imagine a momentum (or velocity space, since p=mv), which has the axes px, py, pz




Imagine now that all energies in the gas are equally probable. If that were true, the probability of a specific speed is proportional to the area of the velocity sphere , 4πv^2( actually is proportional with the volume of the velocity layer of an infinitely small thickness, 4πv^2 dv),, where
v = \sqrt{v_x^2 + v_y^2 + v_z^2}
That means that 0 velocity has 0 probability and the greatest velocities are the most probable. But that's true only if all energies were equally probable....That's where Boltzmann distribution interfere and offer a model for energy distribution. Now the probability of a specific velocity has the form

,dN/ Ntotal= C 4πv^ *e^-E/kT dv, 

where dN is the fraction of molecules having velocity of v. After integrating the relation, for the all the domain of speeds and number of molecules, we get the constant C. Finally, I am able to write the Maxwell-Boltzmann distribution formula:


,where f(v) is dN/(Ntotal *dv)


























Sunday, July 1, 2012

Beginning word


Hi! My name is Sebastian. I’m a teenager of 18 years old having a genuine passion for science. Actually, this passion made me create this blog, focused mainly on…well …you get the point. During high school I participated at many international Olympiads, like IPHO, IJSO and IAO. Also, in my school, I have been teaching the new generations of students who share the same inclinations for science as I do. I decided to use these valuable experiences and attempt to make this domain more popular and help students around the world to understand some complex physics phenomena.
First of all, I’d like to share the 3 principles that guide me during study:
·         1) read stuff and get informed( the area of study is obvious)
·         2) ask question
·         3) ask more questions
These are the principles I follow, and I can say it worked pretty well for me. Of course, there is an unwritten principle: ANSWER YOUR QUESTIONS... but you must be really stupid not to do so. That’s the spirit that guides a scientist: trust nothing until you check it! For example, when my physics teacher showed me the Maxwell-Boltzmann distribution, I asked her where did it come from( it is quite a peculiar formula). The fact that she didn’t know the answer did not stop me to seek it by myself. How?  By using the books and surprisingly, the internet.  The results of the study are published on this blog. Anyway, this effort paid well, since I got a comprehensive understanding of thermodynamics and statistics. Have you ever wondered where does PV= nRT come from? I must say that I am very proud that I know how to demonstrate it!( I’m proud, because it is not simple at all). Other times, after solving a problem that had a solution I could not agree with, I decided to reproduce the conditions stated in the text of the problem as accurate as possible. Many times it proved to be right to have doubts, sometimes I was wrong. For example, I discovered that the boiling at the separation surface between cooking oil and water didn’t take place when it was predicted. However, I managed to solve that mystery eventually.
I also want to discuss about Olympiads. Are they good after all? I am asking this because I heard various opinions on this subject. In order to make a brief summary of the discussions, I’ll simply list the pros and cons of going to the Olympiad
PROS:
·         The syllabus and problems of the Olympiad offer students the best guide( in my opinion) that young students can use in order to get a wide and clear view of physics( and maybe in other subject as well, but I can only use my experience)
·         The various problems and particular or general situations you encounter during your preparation and the solving “tricks” you learn help students to develop a superior thinking. I’ve observed this phenomenon and I must say that is really plausible: just as you train your muscles to get stronger, you can train your brain to get smarter!
·         By participating at international or even national level, you have the opportunity to meet various people from other regions and make a cultural exchange that can only have a positive impact on your character development. It is always a great pleasure to be a genuine ambassador of my country at the international contests and meet people from remote regions.
·         The emotional impact, the stress you experience while solving the subjects prepare you for life. Imagine what I feel before I get the exam papers: the effort I’ve made during the last months, even years will be tested during a few hours! Don’t blow it!.... By participating at the Olympiads, I learned how to control my emotions and obtain the highest level of concentration at a specific time.
·         Solving the problems require great mastery in writing. Thus, you develop a valuable ability of ordering your thoughts and expressing clearly on the paper and( also verbally)
·         For international participants: free trips to various countries, free food for one week, the closing party!!!...and ceremony
CONS:
·         Being successful at the Olympiad does not mean you are a great scientist. Olympiads exams have actually very little in common with the methods used in research. By participating at the Olympiad you might be so absorbed of the idea of solving problems and learning” solving tricks”, that you will focus more on solving problems, than on Physics itself.
·         Olympiads don’t predict accurately what students are smarter or have more knowledge. They are more like running contests, where speed is a very important factor to consider. What if you like to think slowly, and get more insight on a specific area? Or what if you are a faster thinker during the evening (like me), and not during the morning, when the contest is programmed? Well, bad for you! Also, a very important variable is the attention and also mastery of writing. You can lose precious points if you forget to note something or if you make a misfortunate miscalculation. I know a friend that took bronze medal instead of silver because he forgot to note that time was measured in seconds on the graph, although the unit was completely obvious from the previous lines he wrote. Was it fair? My opinion is that it is not. Too much accent is put on the rigorous writing. The greatest scientists were known for being more interested on the abstract ideas. Also, important discoveries had been made by accident, as a result of an uncaring method of working.
·         By following strictly the syllabus of the Olympiad, you tend to narrow your knowledge and decrease your curiosity to learn from more advanced scientific areas that are not included there. In extreme cases you might lose the interest in culture and society as well (sadly, I encountered people like that).
So, should a student go at the Olympiads after all? Yes, definitely! (but remember that I participate at Olympiads frequently, so I might be subjective). My advice however is to use the Olympiad as a guide to study Physics and develop a proper reasoning. Don’t ever make the Olympiad itself your final purpose. I know examples of students who did so, but after finishing high school they ended quite badly, without a job and with few perspectives. For example, I use the contest as opportunities to check my knowledge, visit places and meet new people. I told my physics teacher once, while she was upset that I didn’t pay enough attention to the contests: ” When I grow, I want to become a scientist, not an old Olympiad participant”.( of course the second thing is not even possible). So, my results at contest are due to my knowledge in physics and not due to a rigorous training for the subject themselves. I also learn a lot of things, like analytical mechanics, although they are useless for the contest.  Unfortunately, I lose many points because of my writing style. For example, at the international physics Olympiad in 2012, I took a bad result at the experimental task, because I was not prepared to do hundreds of measurements (otherwise simple) in just a few hours. Don’t understand me wrong, I’m not trying to find excuses, I’m just trying to emphasize some previous statements. Top results can be obtained by participants that didn’t make a rigorous training; that depends on the concentration capacity of the individual and innate ability to work fast and attentive in the same time.
                In conclusion, this blog is addressed to young high school students having a passion for science. I’ll try to use my experience and offer good advice for study some explanations of various interesting phenomena and fresh news from the scientific world.