Temperature and Thermal Equilibrium
Transcript
So, question: what is temperature? Like, actually, what is it? I mean sure, temperature is the amount that particles of a substance are wiggling around, but how do you attach a number to that? When you measure the temperature of something with a thermometer, you get a precise number. What is that number? (This is a rhetorical question. I will tell you what that number is, but just stay with me for a moment.) You could define temperature experimentally. You could say that substance A is "hotter" than substance B if energy naturally flows from A into B when you place them next to each other. If the amount of energy flowing from A to B is the same as is flowing from B to A, then you say that they have "the same temperature". That gives us an ordering of temperatures, but we still can't put numbers on anything. We could fix 0 to be the freezing point of water,
and 100 to be the boiling point, but how do we get everything in between? Well, ideally, temperature is related to the kinetic energy of all the particles making up a substance: the energy of particles spinning, moving around, springing against each other, etcetera. So let's define our temperature scale so that temperature is proportional to total internal energy, at least in generic circumstances (i.e. nothing is boiling or melting or exploding). That means we want the graph of temperature against energy to be a straight line, although that line might be different for different substances. Now temperature always has a numerical value, and finally our thermometers make sense. Once you have this experimental definition, you can do quite a lot with it. You can discover that for most substances in generic circumstances, temperature is also proportional to volume,
and if you keep the volume constrained then temperature becomes proportional to pressure. But all of these are experimental observations. You still don't know what temperature is. And before you say "temperature is just internal energy", it's not. Different substances require different amounts of energy to heat up by the same amount. For instance, old thermometers used mercury. The amount of energy required to heat up a gram of mercury by 10 degrees Celsius is about 1.4 Joules. To heat up the same mass of water by the same 10 degrees Celsius, you need 42 Joules, 30 times as much energy. Even if you write down relationships between temperature and energy for every single substance individually, all of these values go out the window when things change phase. But there has to be an intrinsic numerical definition of temperature. There has to be
a way to take the positions and momentums of all the particles making up a substance and compute the temperature, otherwise temperature wouldn't be a physical thing. And it took humanity a while to discover what this definition actually was. The idea that temperature is the result of tiny particles moving around and bumping into each other was suggested by people like Daniel Bernoulli and Mikhail Lomonosov in the mid 1700s, but it wasn't until the late 1800s that it was finally formalised by Boltzmann, Gibbs, Maxwell and others. And honestly, I'm not surprised, because the actual definition of temperature is insane. Let's say a substance has a particular collection of macroscopic properties. It has a shape, a volume V, a number of particles N, and a total internal energy U (I don't know why we use the letter U, but that's the standard). This collection of properties is called a "macrostate". On the other hand,
if we have a precise description of every single particle in the substance, then that's called a "microstate". Here is how we define the temperature of a particular macrostate. Step 1. Find the number of microstates corresponding to the macrostate. That is, how many ways can I place N particles in a box with this shape and volume such that their total energy is equal to U? This quantity is called "multiplicity", and we denote it by the greek letter Omega. Now, you might be thinking: "Surely there's infinitely many microstates. You can place any particle anywhere you want, so how can the multiplicity ever be finite?" Well, to make this work, we will have to give our state space some granularity. For instance, we could split the volume into a grid, and then only allow particles to lie on the vertices of the grid. We also have to do the
same thing with momentum and energy. This sounds completely arbitrary, but it turns out that there is a canonical way to do this, coming from quantum mechanics. Which is weird, because to us living in the late 1800s developing the molecular theory of temperature, quantum mechanics hasn't been invented yet. Step 2. Take the logarithm of this number Omega and multiply it by a constant k, called Boltzmann's constant, which is just there to make the units work out. This gives a quantity called entropy, denoted by S for some reason. We want to do this for a wide range of energies so that the entropy is a function of the internal energy U. At this point you might be thinking: "You're telling me to calculate every arrangement of particles for every possible energy? How can we ever reasonably compute this?" And sure, this is unreasonable in most circumstances. But what we will see is
that for a very basic substance, a gas made up of single atoms, it is possible to write down a formula for entropy. This formula is called the Sackur-Tetrode equation, developed independently by Hugo Tetrode and Otto Sackur in 1912. And it's really complicated, but it does exist, and later in the video we'll figure out how to derive it. Step 3. Take the derivative of entropy with respect to energy, i.e. the rate of change in entropy as energy increases (keeping other quantities like the volume and number of particles fixed). Take one divided by this value, and you get temperature. Tada! I'll explain why this makes sense in moment. But first, you might be thinking: "If entropy is the logarithm of a number of arrangements of particles, then it's not continuous. It's a discrete quantity. How do you take a derivative of a discrete quantity?" Well, you just kind of do. Even though everything is quantised,
the quantisation is so microscopic that we can very closely approximate entropy by a continuous function. This is a good time to mention that temperature and entropy only make sense when you're talking about a huge number of particles. They are statistical effects that emerge out of very complex systems. For the rest of this video I want to do two things. First I want to explain why this definition of temperature does actually make sense, and matches our intuitive experimental approach. Then, as an example, I want to go through the derivation of the Sackur-Tetrode equation. Not just because it's enlightening, but because it uses an absolutely absurd amount of mathematical machinery, including surface areas of hyperspheres among other things. I've tried to organise this video so that the complexity gradually ramps up over time, so hopefully if you're less experienced with
manipulating derivatives and factorials then you will at least understand the first half. Okay, let's figure out how this definition of temperature works. Suppose I have two substances A and B in certain macrostates, and I place them next to each other. Let's assume that no energy enters or leaves this system, but energy can move between A and B. We expect that A and B will exchange energy until they reach the same temperature, but why? The thing that's going to drive this is probability: A and B are constantly swapping between different microstates at random, so the most likely macrostate for A and B is whichever macrostate corresponds to the largest number of microstates. That means we should expect to see the state with the largest entropy. So first we have to figure out the entropy of this combined system of A and B. The number of ways of
picking both a microstate of A and a microstate of B is the product of their numbers of microstates, Omega_A times Omega_B. Since logarithms convert multiplication into addition, the total entropy of A and B together is the entropy of A, S_A, plus the entropy of B, S_B. This is the quantity we want to maximise with respect to the internal energies U_A and U_B. To give an example of this idea in action, I'm going to build an extremely oversimplified model of A and B. Let's say A and B have 2 particles each, and there are 4 units of energy that need to be distributed among the particles (remember, everything is quantised, so these 4 units of energy can't be subdivided). If we put all of that energy into A, then you can count that there's 5 ways of doing so, which I've shown here, so the multiplicity is 5. If we instead put 3 units into A and 1 unit
into B, the multiplicity is now 8. And if we spread the energy evenly between A and B, the multiplicity is 9. Doing the same thing for the remaining states, you can see that the most likely macrostate is the middle one. And that's exactly what we expect: if A and B have the same shape, size and internal structure, then we should expect the energy to randomly end up evenly distributed between them. Now, there's still a chance that we end up with all of the energy on substance A, but if we increase the number of particles and units of energy, then this chance gets smaller and the peak in the middle gets sharper. This is the distribution of microstates for 10 particles and units of energy, here it is for 100, and here it is for 1000. For something like a glass of water, the number of particles is on the order of one septillion, 10 to the 24, many many times
larger than these examples, so in real life this probabilistic effect is very strong. Okay, let's go back to the more general setting where A and B can be any substance. The total energy U_A+U_B stays constant, so if we increase U_A by some amount, then U_B will decrease by the same amount. This means that as we change U_A, the rate of change of the total entropy S is given by the derivative of S_A with respect to U_A minus the derivative of S_B with respect to U_B. Now, at some value of U_A there is a maximum entropy, and we know from calculus that at this point the derivative of S with respect to U_A is zero. That means this expression is equal to zero, so U_A and U_B are in equilibrium exactly when dS_A/dU_A equals dS_B/dU_B. But remember that I defined temperature to be the reciprocal of this derivative, so in order for the entropy to be maximised, the temperature of A must equal the temperature of B. So,
if we leave this system for long enough that the microstates become completely randomised, then when we come back, we should expect A and B to have equal temperatures. That's the main property of temperature that we wanted! I should note here that other factors like volume can affect entropy as well, but conventionally we keep those fixed when defining temperature; I'll say more on this towards the end of the video. The other main property that we wanted was for temperature to be proportional to energy, in generic circumstances. Let's check if this is true for the oversimplified model I described earlier. If a substance has only 2 particles, then we can draw all of its possible microstates on a graph like this. The x coordinate of a state is the amount of energy in the first particle, and the y coordinate is the amount of energy in the second particle.
Since the total energy is the sum of these coordinates, the microstates which have total energy U lie along this diagonal line. In this example U is 7, and the number of points on this line is 8, and more generally the multiplicity will always be U+1 for any value of U. What happens if we have 3 particles? Well then we have a 3-dimensional state space, and the microstates corresponding to a total energy of U lie on this triangle. Now, I can't be bothered to figure out the exact area of this triangle, but because it's a 2-dimensional shape we know the number of states on this triangle is U squared times some constant plus some smaller factors. If U is very large, then these smaller factors are negligible in comparison to U squared. What about 4 particles? Well, then we get to 4-dimensional space and things get harder to draw. But we know the number of microstates corresponding to the macrostate U should
look something like U cubed times a constant. And more generally, if there are N particles, then Omega is roughly U^(N-1) times some function of N which I'll call f. Now if N is on the order of 1 septillion, then it doesn't really matter whether we use N or N-1, so the multiplicity is approximately f(N) times U to the N. Now we take the logarithm to get entropy, giving N times log U + log f(N). When we take the derivative, log U becomes 1 over U, and the f term disappears because it's independent of U. Thus 1 over T equals kN over U, so the temperature is U over kN. Hey look, temperature is just energy per particle! That seems pretty reasonable. This is, of course, assuming we're using Kelvin where zero Kelvin is absolute zero, and then this constant k is responsible for converting to Kelvin. So, for this model, our definition of temperature gives a very sensible result.
But of course, this model is not very accurate. Real particles are far more complicated, because they can store energy in many ways. However, what you can see from these calculations is that we didn't have to be very accurate at all. As long as the multiplicity looks something like a function of N times U to the power of N times a constant, then the temperature will always be proportional to energy, because this function disappears when we take the derivative. That being said, we would like to be able to derive things like heat capacity, the amount energy needed to raise something by a certain temperature. In this very rough formula for multiplicity, heat capacity corresponds to this constant in the power of U, and to figure this out we'll need a bit more precision. So now that we've established that this is a reasonable definition of temperature, let's pick a substance and see if we can get a better formula for its multiplicity.
Our substance is going to be the simplest substance possible: an ideal gas. This is a gas made up of point-like particles with minimal interaction between each other. Something like helium gas, or mercury vapour. The gas will have a volume V, total energy U, and be comprised of N particles each with mass m, filling a cube-shaped space. First we have to count the microstates. Let's start off with just a single particle. This particle has a position and a momentum, and these are the quantities that we're going to discretise, aka fit to a grid. Notice that this is different from the previous example where we used position and energy. I'm going to write Delta x for the distance between position states in the x direction, and similarly with Delta y and Delta z in the y and z directions. This is going to divide up the cube into a grid of position states,
the total number of which is V divided by dxdydz. Okay, that was easy. Now let's do momentum, for which we use the letter p for some reason. Similarly to position, momentum has 3 coordinates, p_x, p_y and p_z. Once again, I'm going to assume the momentum takes specific values which differ by Delta p_x, Delta p_y and Delta p_z. We need to place the momentum of this particle somewhere in this 3-dimensional state space, and we can do the same thing that we did with our previous model: find all the states which have a total energy of U, and count them. Kinetic energy is equal to the square of the magnitude of the momentum divided by twice the mass, so the states we're interested in lie on the surface of a sphere with radius equal to the square root of 2mU. How many states is this? Well, we can approximate the number of states by computing the surface area of this sphere,
which is 4 pi times the radius squared. We get a region with volume 8pi m U, and then we divide this up into momentum states by dividing by Delta p_x, Delta p_y and Delta p_z. Now, you might have some concerns with what we're doing here. For instance, if this is a surface area, why are we dividing this up as though it's a volume? And what happens if the spherical surface passes between the states and doesn't actually touch them? These issues can be resolved by looking at the scale of things. There's 3 different scales that we're working with. Firstly, there's the microscopic scale on which quantum stuff happens. For position, this is on the scale of nanometres, extremely small, and it's where we divide up the state space into discrete parts. Second, there's the minimum scale on which we can distinguish macroscopic parameters
like energy and volume. In terms of length, this is on the order of micrometres to millimetres, still tiny but several orders of magnitude larger than the quantum scale. This is where we evaluate changes in energy and volume in order to take derivates. And finally, there's the macroscopic scale where we have total energy and volume, which is several orders of magnitude larger again. So when I draw this spherical surface of momentum states, we should think of it as having a "thickness". Since we're eventually going to be taking a derivative, the exact thickness is not really relevant as long as it's small enough for the derivative to be precise. But the thickness is on this intermediate scale, which is thousands of times bigger than the microscopic scale where the momentum states live. This means that if we sweep across different energies, we do cover every single momentum
state without ever falling between the gaps. The formal way to say this is that if we integrate over a range of energies, we get the volume of this sphere, which is approximately the number of states inside it. So we're not undercounting or overcounting, and everything works. Okay, putting the volume and momentum states together, the total number of microstates looks like this, and I'm going to arrange the denominator so that Delta x and Delta p_x are paired together. Hey... this looks like Heisenberg's Uncertainty Principle! That's right, we're using Heisenberg's Uncertainty Principle to compute temperature. Let me explain. When you measure a quantum state, there are multiple possible values you can get. The variance of this measurement is sometimes called uncertainty, and in some situations there are bounds on this uncertainty. Position and momentum
have a peculiar relationship where if a state has a small variance in position, so its position is known with a lot of certainty, then it has a large variance in its momentum, and vice versa. Formally, the product of the variances is at least h over 4pi, where h is Planck's constant, about 6.6 times 10^(-34) kilogram metres squared per second. Now, this doesn't tell us the exact value of Delta x times Delta p_x for our microstate counting, but we do know it's something on the order of Planck's constant. And actually, there's reason to believe that it's exactly Planck's constant. You see, it was known at the start of the 1900s that Planck's constant was the ratio between the frequency and energy of a photon, a particle of light. Around 1924 it was proposed by Louis de Broglie that other particles should have a similar relationship between their momentum and the wavelength of their position state,
and this matched experiments regarding electron orbitals. So it does kind of make sense that, when we're dividing up our state space, this fundamental domain of Delta x Delta p_x should be Planck's constant. This is what Otto Sacker and Hugo Tetrode guessed when developing their model of entropy, and what they found was that this matched experiments surprisingly well. But Sackur and Tetrode's work dates to 1912, over a decade before de Broglie's thesis. Which means they figured all of this out long before any actual quantum mechanics was formalised. Which, to me, is totally nuts. Anyway, replacing Delta x Delta p_x with h, and similarly for y and z, we get this. This is the number of microstates... for a single particle. Now we need to look at many particles! The naive thing to do would be to make the same computation for every particle and
multiply all the results together. This works for position, but it doesn't work for momentum. Remember that momentum determines energy, and we need the total energy to equal U, not the energy of each individual particle. The total energy times 2m is the sum of the squares of the momentum coordinates of every particle. For a single particle this gave a sphere in a 3-dimensional state space, but for N particles we get a hypersphere in 3N-dimensional space. So the question is, what is the surface area of a high-dimensional hypersphere? This is just something that we can look up, because other mathematicians have done the work for us. The surface area of an n-dimensional hypersphere is 2pi^(n/2) divided by (n/2-1)
factorial times the radius to the power of n-1. (This factorial symbol is assuming n is even, but for our circumstances n is massive, so this assumption doesn't really matter.) Now, we want a 3N-dimensional hypersphere with radius square-root 2mU, so let's plug these numbers in and then split up the surface area into momentum states by dividing by all the Delta p's. This gives us our momentum states. Now multiply by the volume states, do the same Planck-shenanigans as before, and we get that the total number of microstates at energy U is this. Actually, this is not quite right. If I take a microstate and I swap two particles, the microstate doesn't change, because the particles are indistinguishable. If we think of particles as being quantum wavefunctions, then the combined wavefunction of two particles is the same regardless of how we order the particles.
This means that for every microstate we're overcounting it by a number of times equal to the number of permutations of these N particles. The number of such permutations is N factorial, so to get the actual number of microstates we need to divide this quantity by N factorial. Okay. This expression is disgusting, and it's about to get worse. First I'm going to clean it up a bit by removing this 2 and these minus 1s, and then balance it out with an extra factor. This factor is going to disappear a few steps from now because it's very small compared to everything else. To get the entropy we need to take the logarithm and multiply by Boltzmann's constant. Logarithms convert multiplication into addition, so we can separate all of these terms.
Now we need to deal with these factorials. Can we maybe replace them with something else, something that behaves nicely with the logarithm? Enter Stirling's approximation! Stirling's approximation is a very close approximation for the logarithm of the factorial function: log n factorial is approximately n log n minus n. There's actually another more precise version of Stirling's approximation without the logarithm, which is truly bizarre. Why are we dividing by e? Why is there a square-root 2pi here? Much like the surface area of a hypersphere, I'm not going to explain where this comes from. You can find plenty of resources online explaining this in detail, but today we are physicists, and we are happy to utilise the results of mathematicians without care or concern. So, let's apply Stirling's approximation to our factorials. Meanwhile, logarithms convert exponentiation into multiplication, so we can pull out these N and 3N/2 powers.
Okay, now we can start collecting things. These two logarithms both have an N out the front, so we can combine them, and these two have a 3N/2, so we can combine them as well. We can add 3N/2 to N to get 5N/2, and now we just need to deal with this last term. Notice that while every other term is multiplied by N, this term just has a logarithm of N. If N is on the order 1 septillion, like we've been assuming, then log N is about 50, way way way smaller than 1 septillion. So this term is tiny compared to everything else, and we can just ignore it. And that's all the approximations we need to do. If you want to, you can move this 3/2 back into the logarithm, and then factor out N and combine the logarithms, to get a more compact expression. And we're done. This is the Sackur-Tetrode equation. It's a formula for the entropy of an ideal gas with
N particles, total energy U, and filling a volume V. Now we can finally use it to compute the temperature of an ideal gas. That's what we were doing, right? First, notice that using properties of logarithms I can write S as 3kN/2 times the logarithm of U plus a whole bunch of extra garbage that doesn't depend on U. When we take the derivative, all of this extra stuff vanishes, and log U becomes 1 over U, so the temperature is a nice round 2U/3kN. So, what does this actually tell us? Well, if we keep the volume fixed, the amount of energy needed to increase the temperature of this ideal gas by some amount Delta T is 3kN/2 times Delta T. That means that the heat capacity of an ideal gas at a fixed volume is 3k/2 per particle, or 3kN_a/2 per mole, where N_a is Avagadro's constant. That comes out to 12.47 Joules per mole per Kelvin. We can now check this against something like helium, and what do you know,
it's spot on: the heat capacity of helium at constant volume is 12.47 Joules per mole per Kelvin. A victory for statistical mechanics! Okay, some things to note about this result. Firstly, a lot of gaseous substances behave similarly to an ideal gas, with the exception that their particles can store energy in more ways. For instance, diatomic gases like oxygen and nitrogen have molecules consisting of 2 atoms, and these can have rotational momentum. Rotation in 3 dimensions is characterised by 3 angular velocities around different axes, which are quantised in a similar manner to regular momentum. Only two of these are relevant for the diatomic particle, so in total we have 5 momentum-like quantities which the energy is shared between. This means that if you go through the same computations you end up with
heat capacity being 5kN/2 instead of 3kN/2. This is a special case of a more general phenomenon called the Equipartition Theorem: each degree of freedom in a system contributes a half kNT to its internal energy, and this turns out to be relevant beyond just ideal gases. Secondly, most of the complexity of the Sackur-Tetrode equation is in this constant tacked on the end, which gets annihilated when we take the derivative. So you might be thinking that most of the stuff that we did with quantum mechanics and hyperspheres was a total waste. And, truth be told, a lot of results about temperature don't need this level of precision, and were formalised long before Sackur and Tetrode. As we saw with our first attempt at modelling a substance, you can mess up your multiplicity calculations quite badly and still get the right temperature. Now, if we can experimentally measure
temperature and internal energy, then we could try integrating to recover the entropy. But this only tells us the change in entropy between two energy values, so we can't measure this extra constant. But Sackur and Tetrode were able to extract entropy values from experiments and compare them to the formula. How did they do this? Well, the only way we could recover this constant is if there were a specific energy value where we knew the entropy already. And there is such an energy: absolute zero! When there's no energy everything is frozen, so the entropy is zero. Okay, that isn't quite right. Weird stuff can happen at very low temperatures. And I'm simplifying a few things; the actual numerical process uses an integral of heat capacity with respect to temperature, instead of temperature with respect to energy. But those issues can be dealt with. First, there's a bigger issue: when you cool an ideal gas down to absolute zero,
it's not an ideal gas anymore. Sackur and Tetrode decided to use mercury vapour for their ideal gas, but mercury is solid from absolute zero up to -39 degrees C, and then liquid up to 357 degrees C. However, we know from experiments that liquids have a roughly constant heat capacity which can be measured, and just a year earlier in 1911 Walther Nernst developed a model of internal energy for low temperature solids. We can also directly measure the energy required to change phase from liquid to solid and then solid to gas. With all of this information we can do the integration from zero up to a temperature where mercury is a gas to get the entropy experimentally. For details on this, I recommend looking at Walter Grimus' paper reviewing Sackur's and Tetrode's methods. This is how they ended up confirming that Planck's constant appears in the equation. Another thing to note: if you go to check this heat capacity of helium yourself,
you might find a different value of 20.79 Joules per mol per Kelvin. This is the isobaric heat capacity, which is where the pressure is fixed but the volume can change. This would apply to, for example, heating something under consistent air pressure. What we computed was the isochoric heat capacity, where the volume is fixed. When we were taking the derivative, we assumed that V was constant. But if pressure is fixed and volume is allowed to change, then V is a function of U. So we need to figure out this function and then differentiate with respect to U in order to get temperature, right? Well, no. I thought this was how you're supposed to do it, but it turns out that the conventional definition of temperature always assumes that volume is fixed. It's not a derivative, it's a partial derivative. This seems like an arbitrary choice; why should volume be fixed and not pressure,
or something else? But the problem is, you have to fix something, because otherwise entropy is a function of multiple variables and there's not a single well-defined way to take the derivative. So the way we actually think about these variables in thermodynamics is that U is a multivariable function of S and V, whose partial derivatives are temperature and pressure respectively. Or rather negative pressure, because compressing something and reducing its volume increases its internal energy. You can also add in the number of particles as a variable, and its partial derivative is another quantity called chemical potential, but we're assuming N is fixed throughout this video. Now, using some calculus you can show that for U fixed, dS/dV is P divided by T, where P is pressure. But we can compute dS/dV for an ideal gas, and if we do this and fiddle around with it a bit, we get the ideal gas law: PV=kNT.
Maybe you've seen this as nRT, but that's just the same equation in different units. Anyway, now we can finally get the isobaric heat capacity. Rather than doing a bunch of calculus, let's just do this in 2 steps. First we heat the substance under constant volume, requiring an amount of energy equal to the isochoric heat capacity times the change in temperature. Then we expand the substance adiabatically (i.e. without changing entropy) to the correct volume, supplying it with an amount of energy equal to the pressure times the change in volume. Normally we'd have to do an integral, but we can ignore that in the limit as the change in temperature goes to zero. Now PV = kNT, so substituting this in, we get that the isobaric heat capacity is the isochoric heat capacity plus kN. This comes out to 5k/2 per particle, or 20.79 joules per mole per Kelvin like we expected.
I want to mention that I also did the more complicated calculation using my previous wrong definition of temperature, and still got the correct result. I don't know why I got the correct result, but I've spent so long on this video, and so much of that has been me getting confused over derivatives and partial derivatives, that I just can't be bothered to get to the bottom of this. As an algebraist, multivariable calculus sucks, and the way physicists notate it sucks even more. There's also the question of why exactly dU/dV is pressure. There's a thought experiment involving a piston pushing a gas (see for example this article by Joseph Mellor), but this doesn't explain why we need to take entropy to be constant when computing pressure. At least from the microscopic perspective. You see, thermodynamics has two different approaches: you can take a macroscopic approach and start with the 2 big laws of thermodynamics as your axioms,
or you can take a microscopic approach and start with tiny particles bouncing around. This video focused heavily on the microscopic approach, which makes some concepts like entropy more transparent, but makes other concepts like the partitioning of energy into heat and non-heat more opaque. Finally, if you want to do a similar analysis to other types of substance, then the underlying ideas are the same: count the microstates, take the logarithm and differentiate. In fact, the versatility of the concept of macrostates and microstates lets you build theories of entropy and temperature for seemingly unrelated things, like information theory for computers and communication systems. However, it should be apparent that computing the microstate multiplicities for anything other than an ideal gas is extremely difficult. Applying the methods of statistical mechanics
to solids requires a huge amount of theory on crystal structures, and liquids are even worse. [Snake shouting "LIQUID"] The point is, if something exists then you can almost certainly find a precise definition for it. It's just that the precise definition might suck to work with. Hopefully I've illustrated that with this abysmal equation. Oh, and by the way, the units for entropy are energy divided by temperature, so Joules per Kelvin. Pretty nonsensical, especially since it's somehow almost the same units as heat capacity despite being a completely different thing. But frankly, as far as units go, I've seen worse.

Ask anything
We've read this whole study set, so questions about it get the best answers.