A.M.SWEYLLAM
8
number of atoms
0
0 40 80 120 160 200
4/23/2017 8:13:29 PM Amrspeed (m/s)
SWEYLLAM
Instead we plot a histogram, where we plot the
fraction of the atoms N/N possessing speeds
lying within certain fixed intervals, say , 50 ms-1.
Histogram for the fraction of atoms versus speed
30
fraction of atoms(%)
25
20
15
10
0
1
speed ( m/s)
4/23/2017 8:13:29 PM Amr SWEYLLAM
When dealing with large population it
becomes more convenient to plot
N/(N U) against U.
1 dN
f (u ) =
N dU
f(u) could be defined in words as:
The fraction of the population per unit range of
speed about u.
Now the number of gas atoms with speeds between u and u+u is given by,
dN = Nf (u )du
uNf (u )du
Thus the average speed is , u= 0
= uf (u ) du
N 0
In general , we can evaluate the mean value of any function Q provided it can be
expressed as a function of the variable (in the above case it is U) in which the
distribution function is given.
1 dN
Q = Q(u ) f (u )du = Q(u ) du
0
N0 du
If Q is specified as a function of energy E and if f(E) is given , then
1 dN
Q = Q( E ) f ( E )dE = Q( E ) dE
0
N0 dE
4/23/2017 8:13:29 PM Amr SWEYLLAM
Air table (two dimensional gas simulation)
The air table provides a surface where pucks can move
almost without friction. Hence, it can be used to study
(almost) any sort of two-dimensional phenomenon where
friction is an unwanted effect, a simple example being the
elastic collision of two pucks.
N(E)
10
Number of pucks N(E) against E
Thus the number of named vector 8
tips in the inner circle gives the
number of pucks with energies 6
within the range 0 to E ; the
number of tips falling within the first 4
annulus gives the number of pucks
with energies between E and 2E 2
etc.
0
0 1 2 3 4 5 6 7
E
A B
D
D
C
B
C A
The figure shows two different arrangements for four atoms sharing out five units
of energy. We have two physically distinct situations.
4/23/2017 8:13:29 PM Amr SWEYLLAM
A C
B B
D D
C A
Because the atoms are unique, the above figure represents different situations.
C C
B B
D D
In this figure the speed of A and hence its energy mu2 is the same in both
cases ,its direction in motion and hence its momentum is different in
the two pictures.
Through just how small a distance can the tip of the vector be moved to
generate a new picture?
1 2
same number of cells.
thus N 2 ( E , Ao ) = ( )E
Ao m
4/23/2017 8:13:29 PM Amr SWEYLLAM
5 A B C D
4 Type of arrangements
3
2
1
(5,0,0,0)
0 BCD ACD ABD ABC
5
4 A B C D A B C D B C D
A
3
2 (4,1,0,0)
1 B C D A C D A B C
B D A
0 CD AD AB BC BD AC BD BC AD
CA CD AB
5
4
3 A B C D A B C D A B C D
2
1
B C D A C D A B D A B C (3,2,0,0)
0 CD AD AB BC BD AC BD CA BC CD AD AB
5
4
3 A B C D A B C D B C D
A
2
1 BC CD
(3,1,1,0)
AD AB BD CA BD AC CD AD AB BC
0 D A B C C D A D
B B C A
5
4
3
2
1
BC
A
CD
B
DA
C
AB
D
BD
A
CA
B
BD
C
AC
D
CD
A
AD
B
AB
C
BC
D
(2,2,1,0)
0 D A B C C D A B B C D A
5
4
3
2 A
We get 56 distinct pictures for four
B C D
1
0
BCD CDA DAB ABC atoms sharing out five units of energy. (2,1,1,1)
Manual Sorting in two dimensions:
Averaged over all the distinct arrangements (pictures) what is the mean
number of atoms in a two dimensional gas possessing a given energy?
Example:
We want to draw the distinct ways that four atoms A,B,C and D can share
out a total of five units of energy, and work out the mean number of atoms
with a particular energy.
Number of atoms having zero energy = 3x4 +2x12 + 2x12 + 1x12 + 1x12 = 84
1.2
0.8
0.4
0
4/23/2017 8:13:29 PM 0
Amr SWEYLLAM 1 2 3 4 5
E
Now, let us consider the case for which we have four cells for each energy:
5 5 5 5
4 B 4 B 4 B 4 B
3 3 3 3
2 2 2 2
1 A 1 A 1 A 1 A
0 CD 0 CD 0 CD 0 CD
(a) (b) (c) (d)
Figure (a) shows one of the original arrangements. The three new arrangements
shown in (b), ( c ) and (d) result from the movement of atom A.
For each of the original arrangements, a three new arrangements can be generated
by moving atom A horizontally giving four arrangements in all.
By moving all four atoms we get 4x4x4x4 = 256 arrangements for each arrangement
generated with a single column of cells.
4/23/2017 8:13:29 PM Amr SWEYLLAM
Thus evaluating the number of atoms along the third row we get 24x256
To obtain the average number of atoms we divide by the total number of
arrangements 56x256.
Consider four atoms in a three dimensional gas sharing out five units of energy.
V 1 2
32 1 2
N 3 (E, Vo ) = = 3
E E
Vo Vo m
4/23/2017 8:13:29 PM Amr SWEYLLAM
The above equation could be rewritten as : N 3 (E, Vo ) = C E1 2 E
1 32 2
where C is a constant given by, C=
Vo m3
5
Cell diagram for three dimensions case:
4
The diagram shown in the figure is obtained
by letting C=2 and E =1 and rounding N3 3 C
Down to the nearest integer. For E=0 an exception
is made where N3 is taken as unity. 2
1 BA
0 D
1 2
N 2 (E, A o ) = ( ) E
Ao m
as E decreases , u decreases; and at the limit when U 0
Ei g3(E)
dE
gi cells
g(E)
and the order of the objects within the groups has no importance.
For the first group ,the number of ways is given by,
Consider the case for which N=4 , n1=3 ABC BAC CAB DAB
following the above formula the number of ways is, ABD BAD CAD DAC
ACB BCA CBD DBA
4x3x2 24 ACD BCD CBA DBC
= =4
3! 6 ADB BDA CDA DCA
ADC BDC CDB DCB
gi cells of energy Ei
The number of ways that ni atoms can be selected among N atoms is given by,
The first of these ni atoms can go into any of the gi cells and for each occupation
the second atom can go into any of the gi cells etc
So the total number of possible distinct pictures of atoms on level i is given by,
N!
Wi = g i g i g i ...(n i times)
n i ! (N n i )!
N!
thus, Wi = ni
gi
n i ! (N n i )!
(N n i )!
Wj =
nj
for the level j, gj
n j! (N n i n j )!
W = Wi Wj Wk .......
N! (N n i )! (N n i n j )!
W= ...... g in i g j j g nk k ...
n
n i ! (N n i )! n j! (N n i n j )! n k ! (N n i n j n k )!
N!
W= g i g j g nk k .....
ni nj
n i ! n j! n k !....
A fundamental hypothesis of statistical physics is that :
each microstate occurs with equal probability.
4/23/2017 8:13:29 PM Amr SWEYLLAM
To obtain the distribution function:
we form a new function F(x,y) which is the sum of the first function and
the constraint multiplied by a variable (the undetermined multiplier).
Joseph LAGRANGE
(1736-1813)
1
Because we are assuming that n>>1,we may
neglect the 1 in the above formula,
ln n! = n ln n n n >> 1
4/23/2017 8:13:29 PM Amr SWEYLLAM
Finding the dominant macrostate:
N!
W= g i g j g nk k .....
ni nj
n i ! n j! n k !....
It is easier to maximize Ln(W) , this of course will maximizes also W
ln (W) = ln N! ln n i ! + n ln g i i
i i
= constant + (n i ln g i n i ln n i + n i )
4/23/2017 8:13:29 PM
i
When Ln(W) is a maximum, small changes in the value of ni ( n0, n1, n2 etc.)
will not change Ln(W)
d ln(W) = (dn
i
i ln g i dn i dn i ln n i + dn i )
gi
= ln ( ) dn i = 0
i ni
The quantities dn1 , dn2 , etc represent changes in the numbers of atoms at
energy levels E1 , E2 etc.
These changes occur naturally as a result of collisions between atoms.
dn i = 0 , E
i
i dn i = 0
i
gi
we form the function,
i [ ln ( n ) E i ] dn i = 0
i
Since dni are now in effect independent, the coefficient must vanish
gi
thus, ln ( ) E i = 0 , for all i
ni
4/23/2017 8:13:30 PM Amr SWEYLLAM
E i
Solving for ni we get, n i = gi e e
Thus for a two dimensional gas, where the density of states g(E) = constant
we can write for the number of atoms dN within the range of energy dE at energy E
dN = constant e E dE
The energy distribution function is given by,
f2(E)
1 dN
f 2 (E) = = constant e E e E
N dE
E
4/23/2017 8:13:30 PM Amr SWEYLLAM
For a three dimensional gas the density of states g(E) = C E 12
thus, dN = constant e E E1 2 dE
1 dN
f 3 (E) = = constant E1 2 e E
N dE
E1 2
E1 2 e E
e E E
4/23/2017 8:13:30 PM Amr SWEYLLAM
The speed distribution function:
To obtain the speed distribution function we replace the variable E by the speed U
using the relations ,
1
E = m u2 and dE = m u du
2
1 dN 1 dN dE 1 dN
we get, f 2 (u) = = = mu
N du N dE du N dE
1
( m u 2 )
thus, f 2 (u) = A 2 u e 2
1
( mu 2 )
for f3(u) we get, f 3 (u) = A 3 u e 2 2
1
( mu 2 )
2
e
u
u
1
( mu 2 )
u2
2 2
1 ue
( mu 2 )
f 3 (u) = A 3 u e 2 2
1
( mu 2 )
2
e
4/23/2017 8:13:30 PM Amr SWEYLLAM u
Evaluating the constants A2 and A3:
Consider the case of a three dimensions gas,
we know that,
f(u) du = 1
0
1
( mu 2 ) 1
thus, A3 u e 2 2
du = 1 A 3 = 1
du
( mu 2 )
e
0 2 2
u
0
3
The average energy Eof the gas atoms is equal to kT
2
1
( mu 2 )
also, E = E f 3 (u) du = A 3 E u 2 e 2
du
0 0
1
( mu 2
)
Eu
2 2
e du
Substituting for A3 we get, E= 0
1
( mu 2
)
u
2 2
e du
4/23/2017 8:13:30 PM
0
1 3
writing E = mu 2 and E = kT
2 2
1
1 ( mu 2 )
m u4 e 2 du
3 2
thus, kT = 0
1
2 ( mu 2 )
e
2 2
u du
0
u
u 2
We have integrals of the form, In = n
e du
0
Such integrals are found by calculating Io and I1 directly and differentiating these
successively with respect to (see Mandl appendix 3).
n (even) In n (odd) In
0
1 12 1
1
( )
2 2
2 1 12 3
1
( 3)
4 2 2
3 12 1
4 ( 5) 5
8 3
15 1 2 3
6 ( 7) 7
16 4
4/23/2017 8:13:30 PM Amr SWEYLLAM
1
1 ( mu 2 )
mu e 2
4
du
3 2
as said before since, kT = 0
1
2 ( mu 2 )
u
2 2
e du
0
1
m I4
3
that is to say, kT = 2
2 I2
1 12 1 2 1 2
where, I2 = ( 3 ) = ( 3 3 )
4 2 m
1
for = m
3 1 2 3 2 1 2 2
and, I4 = ( 5 ) = ( 5 5 )
8 2 m
1 1 2 12 m 32
we get for , = and for A3 , A3 = =( ) ( )
kT I2 kT
4/23/2017 8:13:30 PM Amr SWEYLLAM
1
( mu 2 )
thus the speed distribution function , f 3 (u) = A 3 u 2 e 2
m 3 2 2 mu 2
takes the form, f 3 (u ) = 4 ( ) u e 2 kT
2kT
this is the Maxwell-Boltzmann speed distribution function
1 dE
E = m u2 and, du =
2 mu
2 1 3 2 1 2 E kT
f 3 (E) = ( ) E e
kT
This is the Maxwell-Boltzmann energy distribution function.
8kT 1 2
u = u f 3 (u) du = ( )
m
0
The root mean square value is calculated from the formula,
3kT 1 2
2 12
(u ) = ( u f 3 (u) du)
2 12
=( )
0
m
(u 2 )1 2 3
thus, = = 1.085
u 8
The most probable velocity ( the velocity for which the function f(u) takes its maximum
value) is found from the condition,
df 3 (u) 2kT
( )up = 0 u p =
du m
uz
(u,,)
dV = u 2sin ( ) du d d d
usin() uy
d
usin()d
ux
f (u) =
3
1 dN
N du
= 4
2 k
u e( )
m 3 2 2 mu 2 /2kT
dN Nf3 (u)du
= 2
= 2
4 u du 4 u du
dV = u 2sin ( ) du d d
d 3 N u,, = u 2 sin du d d
d 3 N u,, 1
and dividing through by N, = f 3 (u) sin d ddu
N 4
The spherical lower surface of the cell has an area dA, dA = u 2sin d d
dA
It therefore represents a solid angle d given by, d = 2 = sin d d
u
4/23/2017 8:13:30 PM Amr SWEYLLAM
Thus the fraction of atoms having speed u per unit speed interval per unit
solid angle is given as,
32
m 2 mu 2 2kT
3
1 dN 1
f 3 (u ) = = f 3 (u) = u e
N d u d 4 2 kT
The fact that it is f 3 (u) /4 is expected since a sphere corresponds
to a solid angle of 4 u 2 /u 2 = 4.
dz
In cartesian coordinates, we can write for d3Nux ,uy ,uz ,
dx
d 3 N u x , u y , u z = du x du y du z u
y
thus,
x
[ ]
32
m
3
d Nux ,uy ,uz = N exp m(u 2
x + u 2
y + u 2
z )/2kT du x du y du z
2 kT
the above equation could be rewritten as,
the probability that its x-component of velocity lies between ux and ux+dux
multiplied by ,
the probability that its y-component of velocity lies between uy and uy+duy
multiplied by,
the probability that its z-component of velocity lies between uz and uz+duz
12
m mu 2x
thus, f 3 (u x ) du x = e
2kT
du x
2 kT
,
12
m mu 2x
f 3 (u x ) = 2 e
2kT
2 kT
The above equation represents the speed distribution function for one dimensional gas.
12
2 kT
note that, u x = u x f3 (u x ) du x =
0 m
while, ux = 0
1
mu 2z > mgh h
2
will succeed in reaching the plane P1 .
12
m m u
f3 (u z ) = 2
2
e
with, z 2 kTo
2 kT
we get for the total number of atoms passing upwards,
12
kTo
n0 e m g h k To
2 m
the number of atoms moving downwards through the plane P1 is,
1 2
m
12
mu z 2kT1 kT1
n1 u z e du z = n1
2
2 kT1 0 2 m
4/23/2017 8:13:30 PM Amr SWEYLLAM
equating the two numbers we get, n1T11 2 = n o To1 2 e mgh kTo
2
an atom leaving the plane Po with an upward component of velocity uz will
have an energy ,
1
mu z mgh
2 on passing through the plane P1.
2
thus the total energy transferred upwards through the plane P1 per unit time is,
12
m 1
mu
n o
2
z
2 2kTo
mu z mgh u e z
du z
2 kTo 2
(2gh) 1 2
n o (kTo )
32
mgh
= e kTo
(2 m ) 12
2 kT1 0 2 (2 m)1 2
m g h kTo
n1T13 2 = n oTo3 2 e
dividing the above equation by the equation obtained previously (by equating
the number of atoms moving upwards and downwards through the plane P1)
S = S (V,T)
The microstate is determined by setting the coordinates and velocities of all the
particles
W = Wsp Wu
thus, S = k ln w = k ln w sp + k ln w u
V
Calculating Wsp
N!
w sp = represents the space part of the
statistical weight.
n1!n 2!.... n r !
N!
Wsp =
(n!)r
thus, ln w sp = ln N! r ln n!
applying Srirling formula,
lnw sp N ln N N r (n ln n n)
= N ln N N N ln n + N
N
= N ln ( )
n
N N V
but , =
n ( N
=
) V
ln w sp = N lnV N ln V 1
V V
4/23/2017 8:13:30 PM Amr SWEYLLAM
Calculating WU
sp
The density of points in the velocity space is given by,
3
2
m mu
2
= N exp ( )
2 kT 2kT
The number of molecules in the i-th cell, of volume is ,
m mu i2
2
ni = N exp ( ) 2
2 kT 2kT
The number of ways to arrange n1 molecules in the first cell, n2 molecules in the
second cell and ..ni molecules in the i-th cell are calculated as,
N!
wu =
n1!n 2 !......n i !...
4/23/2017 8:13:30 PM Amr SWEYLLAM
Applying Stirling formula we get ,
ln w u N ln N n i ln n i 3
i
from equation 2 we can write,
2
3 m 3 mu
ln n i = ln N + ln + ln ln T i
2 2 k 2 2kT
Substituiting in equation 3, we get
3 m 3 1 mu i2
lnw u = N ln N (ln N + ln + ln ln T) n i + n i
2 2 k 2 i kT i 2
mu i2 mu 2 3
but , i n i 2 = N < 2 > = N( 2 kT )
3 3 m
thus we get, ln w u = N lnT N lnn + N 1 ln
2 2 2 k
4/23/2017 8:13:30 PM Amr SWEYLLAM
m
noting, = 1 ln
2 k
3 3
we get, ln w u = N lnT N ln + N 4
2 2
assuming N equals the Avogadro s number NA in equations 1 and 4 , we get for
the entropy of one mole of a monatomic ideal gas :
3 3
S = kN A lnV kN A ln V + kN A lnT kN A ln + N A k
2 2
3 3
= R lnV + R lnT R ln ( V ) + R
2 2
where R is the universal gas constant.
3 ,molar heat capacity of a monatomic gas at constant volume
We know that CV = R
2
3
and let, So = R ln ( V ) + R
2
4/23/2017 8:13:31 PM Amr SWEYLLAM
Thus, S = R lnV + CV lnT + So
The choice of the size of the cell V and only affects the value of the additive
Constant So .
R dT
Differentiate the above equation , dS = dV + CV
V T
RT
Thus, TdS = dV + CV dT
V
CV dT gives the increment of the internal energy of the gas ( dU) ,
Owing to the additivity of S , V and U , a similar equation holds for an arbitrary mass
of a gas,
TdS = PdV + dU
dQ
Thus, TdS = dQ dS =
T
Why we took the Boltzmann constant K as the constant of proportionality in the
definition of S , ( S = K ln W ) ?
Because this results in the proportionality constant between dS and dQ / T being
equal to unity.
- The higher is the temperature , i.e. the greater the internal energy, the
relatively smaller is the fraction of the disorder due to the supply of dQ.
(n i + g i 1)!
The number of permutations for all the balls ,irrespective of their color, is given by:
For each distinct distribution there are ni! permutations of the white balls among
themselves, and (gi-1)! permutations of the yellow balls among themselves,
which do no change the distribution.
(n i + g i 1)!
Wi =
n i ! (g i 1)!
thus the number of distinct distributions of the bosons for state of energy Ei is,
lnW = [ln (n
i
i + g i 1)!ln n i !ln (g i 1)!]
,
applying Stirling s formula,
lnW [(n
i
i + g i 1) ln (n i + g i 1) (n i + g i 1)
n i ln n i + n i (g i 1) ln (g i 1) + (g i 1)]
we can neglect the 1 with respect to ni and gi to obtain
lnW [(n
i
i + g i ) ln (n i + g i ) n i ln n i g i ln g i ]
To find the maximum value for W, we differentiate:
d lnW = [dn
i
i ln (n i + g i ) + dn i dn i ln n i dn i ] = 0
(n i + g i )
hence, i ( ln n ) dn i = 0
i
,
applying Lagrange s undetermined multipliers,
dn i = 0 , E i dn i = 0
i i
(n i + g i )
we form the function, i [ ln n E i ] dn i = 0
i
gi
from which we get, ni =
e eEi 1
1
f (E i ) =
e e E i
1
g i (g i 1)......(g i n i + 1) gi!
Wi = =
n i! n i ! (g i n i )!
k k
gi!
thus, W = Wi =
i =1 i =1 n i ! (g i n i )!
k
lnW = [ln g ! ln n ! ln (g
i =1
i i i n i )! ]
,
applying Stirling s formula and differentiate ,we get
gi n i
d lnW = ln ( ) dn i = 0
i ni
adding the two constraints, dn i = 0 and, E i dn i = 0
i i
1
f (E i ) =
e e E i
+1
dU = T dS P dV
U U
We can write for U(S,V) : dU = ( ) V dS + ( )S dV
S V
U U
thus, ( )V = T , ( )S = P
S V
The internal energy U is an extensive property (i.e. it depends on the amount
of the substance in the system) and thus it is proportional to the number of moles
in the system.
It is implied in the above equation that we are considering a closed system for
which the number of moles n is constant.
Thus we can write for a change in the internal energy of the system,
dU = T dS P dV + dn
n + n
i
i
j
j =N and, n E + n E
i
i i
j
j j
=E
gi n i gj nj
thus, d lnw = ln( ) dni + (ln ) dn j
i ni j nj
Applying Lagrange undetermined multiplier method we get,
gi n i gj nj
i (ln n Ei ) dni + j (ln n E j ) dn j = 0
i j
gi n i gj nj
thus, ln Ei = 0 and, ln E j = 0
ni nj
gi gj
finally, n i = E and, n j = E
e e +1 i
e e +1 j
The two systems in thermal contact have the same and the two systems in
diffusive contact have the same .
Now, consider one of the two systems ,e.g. the j one : S = k lnw j
gj nj
differentiate,we obtain dS = k ln dn j
j nj
4/23/2017 8:13:31 PM Amr SWEYLLAM
dS = k ( + E j ) dn j
j
= k dn j + k d (n jE j n jdE j )
j j
= k dN + k dU k dW
multiplying by T,
T dS = k T dN + dU dW
comparing the above equation with, T dS = dN + dU + P dV
we find, =
kT
gj
thus, nj = E j
e kT
+1
4/23/2017 8:13:31 PM Amr SWEYLLAM