11.3 Electron-density maps 153
11.3 Electron-density maps
If we could work out the probability of an electron-density map occur-
ring, this would immediately give a measure of its entropy. Let us
imagine building a two-dimensional map on a tray using grains of sand.
The tray is divided into small boxes corresponding to the grid points at
which the map is normally calculated, and the density is represented by
the number of sand grains piled up in each box. Throwing the sand onto
the tray at random will produce a map, though usually not a very good
one. However, the number of ways in which the grains of sand can be
arranged to produce the map is a measure of how likely it is to occur. If
there is only one way of arranging the sand to produce the map, it will
occur only very rarely with a random throw.
x
ρ
Fig. 11.2 schematic representation of a
one-dimensional map.
We nowneed to work out how many ways the sand can be arranged to
give a particular map. Figure 11.2 shows how a one-dimensional map
can be made from individual grains. Assume the sand consists of N
identical grains and that the map is built up by putting in place one
grain at a time. The first grain has a choice of N places to go. The next
grain has N − 1 choices, so the two together can be placed in the map
in N × (N − 1) different ways. The third grain has N − 2 places to go,
giving N × (N − 1) × (N − 2) combinations of positions for the three
grains. Thus, it can be seen that all N grains can be arranged in N! ways
altogether.
132312
213231
321123
Fig. 11.3 Waysofarranging threeobjects in
a box.
Since the grains are identical, it does not matter how they are arranged
in each box in the tray; only the number of grains in the box affects
the shape of the map. If there are n
1
grains in the first box, they can
be arranged in n
1
! different ways within the box without affecting the
map. For example, Fig. 11.3 shows the 6 (=3!) possible arrangements of
3 grains. Therefore, the N! combinations for the map must be reduced
by this factor, leaving N!/n
1
! combinations. Each box can be treated in
this way, so the final number of different combinations of position for
the grains of sand is:
N!
n
1
!n
2
!···n
m
!
, (11.6)
where there are m grid points in the map.
This will be proportional to the probability of occurrence of the map.
We can therefore obtain a measure of the entropy, S, by taking the log of
this expression:
S = log
N!
n
1
!n
2
!···n
m
!
. (11.7)
This is greatly simplified by making use of Stirling’s approximation
to the factorial of large numbers:
log(N!) = N log(N) − N. (11.8)