Biological Physics/Stirling's Approximation: Difference between revisions

From testwiki
Jump to navigation Jump to search
imported>ShakespeareFan00
m Reinstate previous repair
 
(No difference)

Latest revision as of 09:16, 8 June 2024

Calculating entropy directly calls for us to calculate factorials. Taking factorials of relatively small numbers is not a problem (at least with a computer). However, once you begin to work in systems that have a very large number of particles and energy packets (on the order of a mole, or 1023), it becomes clear that a direct calculation for factorials is not feasible. Rather, an approximation for the entropy must be developed. We will look more closely at what is known as Stirling's Approximation.

Recall that the multiplicity Ω for ideal solids is Ω=(N+n1)!n!(N1)!
and entropy is
S=kBln(Ω).
S=kBln((N+n1)!n!(N1)!).
By the rules of logarithms,
SkB=[ln(N+n1)!ln(n!)ln(N1)!].

All terms are essentially logarithms of factorials, so let's study the general case.

The integral of the natural log is approximately equal to the sum of the natural log over all integers when the included integers spans a large range, i.e., Avogadro's number.

ln(x!)=ln((x)(x1)(x2)(x3)...(2)(1)),
which implies by the rules of logarithms ln(x!)=ln(x)+ln(x1)+ln(x2)+...+ln(2)+ln(1), or
ln(x!)=i=0xln(i).
For very large values (think on the order of magnitude of moles), this can be approximated by
ln(x!)1xln(i)di, which has a solution 1xln(i)di=iln(i)i|1x.
And by the fundamental theorem of calculus, ln(x!)xln(x)x+1. For very large numbers, the 1 becomes negligible, so ln(x!)xln(x)x. So this gives us the following approximations

ln(N+n1)(N+n1)ln(N+n1)(N+n1)

ln(x!)nln(n)n

ln(N1)(N1)ln(N1)(N1)

So (N+n1)ln(N+n1)ln(n)ln(N1)(N+n1)ln(N+n1)(N+n1)nln(n)+n(N1)ln(N1)+(N1).

With some simplification,
(N+n1)ln(N+n1)nln(n)(N1)ln(N1)

Once again, let's make the assumption that these numbers are very large, making 1 negligible. So (N+n)ln(N+n)nln(n)(N)ln(N)

Therefore, entropy can be approximated with S=kB[(N+n)ln(N+n)nln(n)(N1)ln(N1)]. This is Stirling's Approximation. If you recall that numbers out in front of a logarithm can be written as the power of the number inside the logarithm, so S=kB[ln((N+n)(N+n))ln(nn)ln(NN)], or S=kBln[(N+n)(N+n)(nn)(NN)]. For calculations, the first equation would be better since it doesn't exponentiate before it takes a logarithm. Template:Autonav Template:BookCat