Sei sulla pagina 1di 18

below

GIOCO: LA FABBRICA DI CALAMITE


Leonardo Rubino
Aprile 2024

Siamo in un’azienda che produce piastre magnetiche. Un lotto, appena prodotto, va


ovviamente portato in magazzino e le piastre vanno poste su degli appositi scaffali dai
magazzinieri addetti. Supponiamo poi che ci sia anche la richiesta di disporre le piastre sui
vari livelli in base alla loro temperatura (e, quindi, a parità di massa e di calore specifico,
in base alla loro energia termica interna).
Ci si accorge presto che i magneti non possono essere appoggiati a caso sui ripiani. I due
addetti si chiamano Fermi e Dirac e notano quanto segue:

N S S N N S N S

NO SÌ
Arrivano poi a dare loro il cambio altri due addetti: Pauli e Hund. Sebbene sia già chiaro
che si possono mettere in fila quanti magneti si vuole, il primo addetto (Pauli) si accorge
che su uno stesso slot (sede) sul ripiano dello scaffale possono essere impilati due
magneti (in modo antiparallelo), ma non più di due appunto, per non creare poi situazioni
aleatorie con l’arrivo del terzo, poi del quarto ecc.

S N S N
N S N S

Il secondo addetto (Hund) in più osserva che è conveniente adagiare prima tutti i magneti
inferiori (con più comodità) e solo dopo iniziare ad impilare i magneti superiori, i quali,
dovendo essere sollevati un po’ di più, richiedono un po’ di fatica in più.
piccola distanza spazio
sufficientemente
ampio

Q
f
d
p
s
P

f N
d
p
s
M
sede ricavata sul ripiano

Scaffale di Fermi e Dirac.


piccola distanza spazio
sufficientemente
ampio

Q
f
d
p
s
P
2

f N
d
p
s
M
sede ricavata sul ripiano
2

Scaffale di Pauli e Hund.

Ma andiamo adesso a vedere cosa succede al reparto adiacente, dove producono piastre
in ferro. Lì, in magazzino, gli addetti sono Bose ed Einstein. Essi sanno che sopra ogni slot
del ripiano possono essere impilate varie piastre:


sede ricavata sul ripiano

Scaffale di Bose ed Einstein.

Per ultimo, andiamo a fare una passeggiata in un altro reparto ancora, dove producono ed
immagazzinano piastrone di ferro; lì gli addetti del magazzino si chiamano Maxwell e
Boltzmann:
Scaffale di Maxwell e Boltzmann.

Adesso analizziamo un po’ più da vicino ed in modo statistico il lavoro svolto dagli addetti.

Dettaglio del generico livello Ei (rettangolo arancione) dello scaffale di Fermi e Dirac.

Il generico livello Ei è quello nel rettangolo arancione. Gli altri livelli Ej (j≠i) possono essere
quelli dietro e quelli sopra e sotto, sugli altri ripiani.
Ogni sede (o box) può ospitare solo un magnete o eventualmente nessuno, ossia può
anche restare vuota (poi, alla fine, moltiplicheremo tutto per due per abbracciare anche il
suggerimento di Pauli, che invita ad impilarne 2 per box, ma contemporaneamente
ESCLUDE di impilarne più di due….).
Sul livello Ei , essendoci la suddivisione in slots/boxes (quantizzazione), troviamo ni
magneti, ma essi ovviamente non possono essere più di un tot, per le dimensioni dello
scaffale e per la impossibilità di impilaggio a piacimento; e questo tot lo chiamiamo gi .
Dunque, ni  g i . Il primo magnete in Ei lo si pone in uno degli stati consentiti gi ; il
secondo nei rimanenti (gi -1) e così via; allora, per la probabilità totale si ha,
preliminarmente (eventi simultanei => moltiplicazione):
gi!
g i ( g i  1).......( g i  ni  1)  ; si deve poi ovviamente dividere per ni! , per la
( g i  ni )!
scambiabilità e permutabilità degli ni magneti. Quindi, per la probabilità P di allocazione in

 n !( g n
gì!
scaffale: P  . Ricordiamo poi che N  è il numero totale di
ì  nì )!
i
i ì i
magneti del lotto da sistemare, che è fisso, considerando che dalla produzione accettiamo
un lotto per volta e poi sistemiamo; segue che:  dN   dn i
ì  0 . Allora, anche
l’energia termica complessiva E di tutti i magneti del lotto da sistemare è costante e per
ogni livello, avendolo chiamato Ei in virtù del fatto che, come detto all’inizio, i magneti li si
raggruppa per temperatura, quelli un po’ più caldi, quelli un po’ più freddi e così via,
allora: E  n E
i
i i  dE   Ei dni  0
i
e poi, per Stirling, si ha: ln x! x ln x  x .
Infatti, se x è un intero, possiamo scrivere che:

ln x! ln 1  ln 2  ...  ln( x  1)  ln x   ln x   ln x  (x)


x x
, con (x )  1 , in quanto,
1 1

parlandosi di un intero, si hanno salti di una unità. Ora, per x molto grande, (x)  1 sarà piccolo rispetto
ad x stesso e dunque ( x ) sarà considerabile come un dx e la sommatoria diverrà un integrale:

ln x!  ln x  dx  x ln x  x  1 , ossia: ln x! x ln x  x  1  x ln x  x


x
.
1
Riprendendo ora il discorso, per avere la probabilità massima devo derivare P ed
eguagliare a zero; ma è più comodo eguagliare a zero la derivata del logaritmo di P, che
porta comunque alle stesse conclusioni. Allora, eseguendo il logaritmo della probabilità P
di allocazione in scaffale: ln P   [ g i ln g i  ni ln ni  ( g ì  nì ) ln( g ì  nì )] ed

[ln n  ln( g  n )]dn  0 . Abbiamo dunque le seguenti tre


i

annullando:  d (ln P )  i ì ì i

identità da mettere d’accordo:  [ln n  ln( g  n )]dn  0 ,  dn  0 e  E dn  0


i

i i i i i i i
i i i
e risolviamo con il Metodo dei Moltiplicatori di Lagrange, ossia uniamole combinandole
linearmente:  (ln n
i
i  ln( g i  ni )     Ei )dni  0 , ossia:

ni g
ln ni  ln( g i  ni )     Ei  0 , ossia ancora:  e  Ei , cioè: ni    Eii
( gi  ni ) e 1
(a livello discreto). A livello continuo, g i  g ( E )dE , per cui:
dn g (E)
   E
1
(Legge di Distribuzione di Fermi-Dirac).
dE e
Dettaglio del generico livello Ei (rettangolo arancione) dello scaffale di Bose ed
Einstein.

Qui la raccomandazione di Pauli è totalmente inutile poiché posso impilare a piacimento,


ma devo comunque fare i conti con le sedi/slot/box (quantizzazione). Si evince allora che
nel determinare la statistica di questa situazione, vanno considerati nel complesso sia le
pile di piastre di ferro che i separatori tra un box/slot e l’altro (linee rosse: suddivisioni
box). Notiamo che nel livello Ei abbiamo, come esempio, gi=8 box e (gi-1)=7 linee di
suddivisione (cioè: 8-1) ed un totale di ni piastre di ferro (3 impilate nel box tutto a
sinistra, poi, a seguire, 1, poi 2, poi 0, poi 1, poi 5 e infine 0, nell’ultimo box a destra).
Abbiamo dunque una totalità di piastre di ferro e linee rosse pari a: (ni+gi-1) . Essendo ora
tali items permutabili, avremo un totale di distribuzioni di piastre e suddivisioni rosse pari a
(ni+gi-1)! .
Per ultimo, essendo poi le ni piastre indistinguibili tra loro e dunque permutabili tra loro (e
lo stesso dicasi per le suddivisioni rosse), allora dovremo dividere per ni! e per (gi-1)! :
(ni  gi  1)!
ni !( gi  1)! . Ora, contemplando tutti i livelli Ei , si ha, per la probabilità di

P
(ni  g i  1)!
allocazione in scaffale (eventi simultanei => moltiplicazione):
i ni !( g i  1)!
(e ricordando anche, come per il caso precedente di F-D, su energia termica totale e
numero totale piastre, che N   
ni  dnì  0 , E   ni Ei   Ei dni  0 e

ln x! x ln x  x , per Stirling) si ha:


i i i i

ln P   [(ni  g i  1) ln(ni  g i  1)]  [ni ln ni  ( g ì  1) ln( g ì  1)] e:

 ( d ln P )   [  ln(ni  g i  1)  ln ni ]dni  0 . Abbiamo dunque le seguenti tre


i

 [ ln(n  g  dn  E dn
i

identità: i i  1)  ln ni ]dni  0 , i 0 e i i  0 e risolviamo


i i i
con il Metodo dei Moltiplicatori di Lagrange, ossia uniamole combinandole linearmente:
[ ln(n
i
i  g i  1)  ln ni     Ei )dni  0 e trascurando poi l’unità:

ni
 ln(ni  g i )  ln ni     Ei  0  ln     Ei 
ni  g i
ni g
  e   Ei  ni    Ei (Legge di Distribuzione di Bose-Einstein).
ni  g i e i 1
Dettaglio del generico livello Ei (rettangolo arancione) dello scaffale di Maxwell e
Boltzmann, con 4 piastrone in ferro.

Nello scaffale di Maxwell e Boltzmann il numero di livelli (nel ragionevole) non è limitato ed
essi hanno tutti la stessa probabilità di essere occupati. Le piastrone di ferro sono
indistinguibili e neanche sarebbero accomodabili in slot/box definiti (assenza di
quantizzazione). Ovviamente poi, come al solito (vedere sopra): N  n i (sul numero

E   ni Ei (sull’energia termica totale).


i

totale di piastroni da allocare in scaffale) e


i
Adesso, per porre le prime quattro piastrone in ferro in E1 , scegliamo la prima in N modi,
tra le N disponibili del lotto; poi (N-1) per la seconda, (N-2) per la terza ed (N-3) per la
quarta. Quindi, in totale, per E1, si ha una probabilità di realizzazione (eventi simultanei
N!
=> moltiplicazione) pari a: N ( N  1)( N  2)( N  3)  . Inoltre, le quattro
( N  4)!
piastrone possono essere permutate in 4! modi, dando una distribuzione equivalente, da
N! N!
cui: . In generale, per n1 piastrone in E1, si ha: . Avanzeranno
4!( N  4)! n1!( N  n1 )!
( N  n1 )!
ora (N-n1) piastrone per costruire E2, da cui, per E2: e così via. Il
n2 !( N  n1  n2 )!
numero totale di modi per ottenere tale partizione è dato dal prodotto P:
N!
P In più, per amor di generalità, ogni livello i può avere una
n1!n2 !n3!...ni !...
probabilità intrinseca gi di essere occupato, da cui una probabilità intrinseca g i i per
n

N ! g1n1 g 2n2 ...g ini ...


trovare ni piastrone; in totale: P  . Per ultimo, considerando che le N
n1!n2 !n3!...ni !...
piastrone totali sono comunque indistinguibili e permutabili, se spostate tra i vari livelli,
allora (x 1/N!) si ha la Probabilità di Allocazione/Distribuzione in scaffale di Maxwell-
Boltzmann:


g1n1 g 2n2 ...g ini ... M
g ini
PR 
n1!n2 !n3!...ni !... i 1 ni !
Calcolo della allocazione/distribuzione più probabile: calcoliamo il massimo di P calcolando
il massimo di lnP (dP=0): ln P  n1 ln g1  n2 ln g 2  .....  ln n1! ln n2 !..... .
E vale poi sempre la solita Formula di Stirling: ln x! x ln x  x . Dunque:
ln P  n1 ln g1  n2 ln g 2  .....  ( n1 ln n1  n1 )  ( n2 ln n2  n2 )  ..... 
  n1 ln(n1 )  n2 ln(n2 )  .....  (n1  n2  ....)  N   ni ln( i ) .
n
g1 g2 i
gi
Adesso differenziamo e annulliamo e teniamo conto che dN=0:
0  d (ln P )   dni ln( )   ni d [ln( )]    dni ln( )   ni (
ni ni ni dni
)
gi gi gi ni

  dni ln( )   dni , ma essendo che N   ni e dN  0   dni , segue che:


i i i i

ni
gi

0   d (ln P )   dni ln(


i i i i

ni ni
gi
) , da cui: ln( )  0 , ossia: ni  g i . Ora,
gi
n E 0  dE   Ei dni . Abbiamo
i

riprendiamo la seguente: E  i i e differenziamola:

 ln(n  E dn
i i

dunque le seguenti tre identità:


i
i
gi
)dni  0 ,  dn
i
ì 0 e
i
i i 0 e
risolviamo con il Metodo dei Moltiplicatori di Lagrange, ossia uniamole combinandole

linearmente:  (ln n
i
i
gi
    Ei )dni  0 , ossia: ln
ni
gi
    Ei  0 , ossia

ancora: ni  g i e   Ei . Ora, si ha: N  n1  n2  ...  ni  ... 


 g1e   E1  .....  g i e   Ei  ...  e  ( g1e  E1  .....  g i e  Ei  ...) 
N
 e ( g i e
   Ei
)  Z e 
, con: Z  g e  Ei
, da cui: ni  g i e   Ei ,
i i
i
Z
ossia la Legge di distribuzione di Maxwell-Boltzmann.
GAME: THE FACTORY OF MAGNETS
Leonardo Rubino
April 2024

We are in a factory which produces magnetic plates. Of course, a batch, just produced, is
brought to the warehouse and the plates are put on suitable shelves by warehouse
keepers. Then, we also suppose that the keepers are requested to allocate the plates on
all the available levels, but according to the temperature of the plates themselves (and so,
being the masses and the specific heats the same for all plates, according to their thermal
energy). Very soon they realize that the magnets cannot be allocated randomly on the
levels of the shelf. The two keepers are Fermi and Dirac and they notice what follows:

N S S N N S N S

NO YES
With the beginning of a new shift, two new keepers come: Pauli and Hund. Although it’s
already clear that one can line up as many magnets as one likes, the first keeper (Pauli)
realizes that on the same slot (seat) on the shelf two magnets can be piled up (in an
antiparallel way), but no more than two, indeed, in order not to have random situations
when a third and a fourth etc magnet comes.

S N S N
N S N S

YES

The second keeper (Hund) realizes that it’s more comfortable to lay all the bottom
magnets first, and just later one starts piling up the top magnets, as they have to be lifted
a bit higher, so requesting a bit of work more to do.
short distance
distance large
enough

Q
f
d
p
s
P

f N
d
p
s
M
slot drawn on the shelf

Fermi and Dirac’s shelf.


short distance
distance large
enough

Q
f
d
p
s
P
2

f N
d
p
s
M
slot drawn on the shelf
2

Pauli and Hund’ s shelf.

But now let’s see what happens in another department near this, where they produce iron
plates. There, in their warehouse, the keepers are Bose and Einstein. They are aware that
on every slot on a shelf they can pile up many plates:

YES
slot drawn on the shelf

Bose and Einstein’s shelf.

At last, we also visit a third department where they produce and store large iron plates;
there the warehouse keepers’ names are Maxwell and Boltzmann:
Maxwell and Boltzmann’s shelf.

Now, let’s take a closer view of the work done by all the keepers and let’s do that in a
statistical way.

Detail of the generic level Ei (orange rectangle) of the Fermi and Dirac’s shelf.

The generic level Ei is that in the orange rectangle. The other levels Ej (j≠i) can be those
behind, or up and down on the other levels of the shelf.
Every seat (or box) can host just one magnet or also none, that is it can also be empty
(then, in the end, we will multiply everything by two, in order to take into account Pauli’s
suggestion, according to which one can pile up 2 magnets, but at the same time he
EXCLUDES the piling up of more than two….).
On the level Ei , as we have the subdivision into slots/boxes (quantization), we find ni
magnets, but of course they cannot be more than a number, due to the size of the shelf
and to the impossibility to pile up as one likes; and we name this number as gi . So,
ni  g i . The first magnet in Ei is put in one of the allowed states gi ; the second one goes
to the left states (gi -1) and so on; then, about the total probability, we preliminarily have
(simultaneous events => multiplication):
gi!
g i ( g i  1).......( g i  ni  1)  ; then, we have to divide that by ni! , because of
( g i  ni )!
reasons of swapping and permutability of the ni plates. Therefore:

P . Let’s also consider that N   ni is the total number of magnets


gì!
i nì !( g ì  nì )! i
to be allocated, and it’s constant, as from the production department we accept a batch at
a time; it follows that:  dN   dni
ì  0 . So, also the total thermal energy E of all
magnets of the batch is constant, and for each level, as we named it Ei because, as
already said at the beginning, magnets are gathered per temperature – those a bit
warmer, those a bit colder and so on, then: E  n E
i
i i  dE   Ei dni  0
i
and

then, for Stirling, we have: ln x! x ln x  x ; in fact, if x is an integer, we can write that:

ln x! ln 1  ln 2  ...  ln( x  1)  ln x   ln x   ln x  ( x ) , where ( x )  1 , as it’s about an


x x

1 1

integer, so we have steps of a unit. Now, with a large x, ( x )  1 will be small if compared to x itself, so

( x ) ln x!  ln x  dx  x ln x  x  1
x
will become a dx and the summation will get an integral: ,
1

that is: ln x! x ln x  x  1  x ln x  x .


In order to have the highest probability, we
have to derivate P and then put to zero; but it’s easier to put to zero the derivative of the
logarithm of P, as that brings anyway to the same results. Therefore, for the logarithm of
the probability of allocation P on the shelf:
ln P   [ g i ln g i  ni ln ni  ( g ì  nì ) ln( g ì  nì )] and we put to zero the derivative:

 d (ln P )   [ln ni  ln( g ì  nì )]dni  0 . So we have the following three identities:


i

 [ln n  dn  E dn
i

i  ln( g i  ni )]dni  0 , i  0 and i i  0 and we solve that by the


i i i
Lagrange Multipliers Method, so we make them join together by linearly combine them:
 (ln n
i
i  ln( g i  ni )     Ei )dni  0 , that is: ln ni  ln( g i  ni )     Ei  0 , and

ni g
so:  e   Ei , that is: ni    Ei (on a discrete basis). In the continuum,
( gi  ni ) e i
1
dn g (E)
g i  g ( E )dE , and so:    E (Fermi-Dirac’s Distribution Law)
dE e 1
Detail of the generic level Ei (orange rectangle) of the Bose and Einstein’s shelf.

Here the recommendation from Pauli is totally useless as we can pile up as we like, but we
have to respect the seats/slots/boxes (quantization). We notice that in order to find the
statistics of such a situation, we have to consider as a whole the stacks of iron plates
together with the box subdivisions (red lines). We also notice that in the level Ei we have,
as an example, gi=8 boxes and (gi-1)=7 subdivision lines (that is: 8-1) and a total of ni
iron plates (3 piled up on the left, then, following, 1, then 2, then 0, then 1, then 5 and at
last 0, in the last box on the right side).
So we have a total amount of plates and subdivisions equal to: (ni+gi-1). Now, as such
items are permutable, we will have a total distribution of plates and subdivisions equal to
(ni+gi-1)! . At last, as the ni plates are indistinguishable and so permutable (and the same
holds for the subdivisions), then we will have to divide by ni! and by (gi-1)! :
(ni  gi  1)!
ni !( gi  1)! . Now, if we consider all Ei levels (simultaneous events => multiplication):

P i
(n  gi  1)!
i ni !( gi  1)! (and also considering that, as well as we did for the F-D case on
the total number of plates and on the total thermal energy:
N   ni   dnì  0 , U   ni Ei   Ei dni  0 and ln x! x ln x  x - Stirling),

[(n
i i i i

then: ln P  i  g i  1) ln(ni  g i  1)]  [ni ln ni  ( g ì  1) ln( g ì  1)] and:

 ( d ln P )   [  ln(ni  g i  1)  ln ni ]dni  0 . So we have the following three


i

 [ ln(n  g  dn  E dn
i

identities: i i  1)  ln ni ]dni  0 , i  0 and i i  0 and we


i i i
solve through the Lagrange Multipliers Method, so we make them join together by linearly
combine them: [ ln(n
i
i  g i  1)  ln ni     Ei )dni  0 and after neglecting the

ni
unity:  ln(ni  g i )  ln ni     Ei  0  ln     Ei 
ni  g i
ni gi
  e   Ei  ni  (Bose-Einstein’s Distribution Law)
ni  g i e   Pi
1
Detail of the generic level Ei (orange rectangle) of the Maxwell and Boltzmann’s shelf,
with 4 large iron plates.

In the Maxwell and Boltzmann’s shelf the number of levels is (reasonably) unlimited and
they all have the same probability to be occupied. The large iron plates are
indistinguishable and they would be unlikely placed into defined slots/boxes (absence of
quantization). Then, of course, as usual (see above): N  n i (on the total number of

n E
i

large plates to allocate in the shelf) and E  i i (on the total thermal energy). Now,
i
in order to put the first four large iron plates in E1 , we choose the first in N ways, among
the N available; then (N-1) for the second one, (N-2) for the third one and (N-3) for the
fourth. So, totally, for E1, we have a probability of accomplishment (simultaneous events
N!
=> multiplication) which is: N ( N  1)( N  2)( N  3)  . Moreover, the four
( N  4)!
large plates can be swapped in 4! ways, so giving an equivalent distribution, from which:
N! N!
. In general, for n1 plates in E1, we have: . Now, (N-n1) plates
4!( N  4)! n1!( N  n1 )!
( N  n1 )!
will be left to build E2, from which, for E2: and so on. The total number
n2 !( N  n1  n2 )!
N!
of ways to get such a partition is given by the product P: P  .
n1!n2 !n3!...ni !...
Moreover, out of generality, every level “i” can have an intrinsic probability gi to be
occupied, from which an intrinsic probability g i i to find ni plates; totally:
n

N ! g1n1 g 2n2 ...g ini ...


P . At last, after considering that all the N large plates are
n1!n2 !n3!...ni !...
indistinguishable and permutable anyway, when moved among levels, we have (x 1/N!)
the Maxwell-Boltzmann’s probability of allocation/distribution:


g1n1 g 2n2 ...g ini ... M
g ini
P
n1!n2 !n3!...ni !... i 1 ni !

Calculation of the most probable distribution: let’s calculate the maximum P by calculating
the maximum lnP (dP=0): ln P  n1 ln g1  n2 ln g 2  .....  ln n1! ln n2 !..... .
The Stirling’s Formula still holds: ln x! x ln x  x . So:
ln P  n1 ln g1  n2 ln g 2  .....  ( n1 ln n1  n1 )  ( n2 ln n2  n2 )  ..... 
)  .....  (n1  n2  ....)  N   ni ln(
ni
  n1 ln(n1 )  n2 ln(n2 )
g1 g2 i
gi .
Now we differentiate and put to zero what comes out and we also consider that dN=0:
0  d (ln P )   dni ln( )   ni d [ln( )]    dni ln( )   ni (
ni ni ni dni
)
gi gi gi ni

  dni ln( )   dni , but being that N   ni and dN  0   dni , it follows


i i i i

ni
gi

 dn ln(n
i i i i

that: 0   d (ln P ) 
i ) , from which: ln( ni )  0 , or: ni  g i . Now, we
i gi gi
n E
i

reconsider the following (as already done in the previous cases): U  i i and we

0  dU   Ei dni . So we have the following three identities:


i

differentiate it:

 ln(n  E dn
i

i )dni  0 ,  dnì  0 and  0 and we solve all this through the


i
gi i i
i i

Lagrange Multipliers Method, that is we make them join together by linearly combining
them:  (ln n
i
i
gi
    Ei )dni  0 , or: ln ni     Ei  0 , or again:
gi
ni  g i e   Ei .

Now, we have: N  n1  n2  ...  ni  ... 


 g1e   E1  .....  g i e   Ei  ...  e  ( g1e  E1  .....  g i e  Ei  ...) 

 e  ( g i e  E )  Z  e  , where: Z   g i e  E , from which: ni  g i e i


N  E
,
Z
i i

i i
that is the Maxwell-Boltzmann’s Distribution Law.

Potrebbero piacerti anche