“My bad!”, he said.

I’ve just realised I made a mistake when teaching my statistical physics course last term. Fortunately it was a minor and careless maths mistake, rather than any lack of physics clarity. But it’s time to set the record straight!

Often in thermodynamics you will derive equations in differential form. For example, you might be given some equations of state and asked to derive the entropy of a system using the first law

My error pertained to exactly such a situation. My students had derived the equation

and were asked to integrate this up to find . Naively you simply integrate each separately and add the answers. But of course this is **wrong**! Or more precisely this is only correct if you get the limits of integration exactly right.

Let’s return to my cryptic comment about limits of integration later, and for now I’ll recap the correct way to go about the problem. There are four steps.

**1. Rewrite it as a system of partial DEs**

This is easy – we just have

**2. Integrate w.r.t. E adding an integration function **

Again we do what it says on the tin, namely

**3. Substitute in the equation to derive an ODE for **

We get in this case, easy as.

**4. Solve this ODE and write down the full answer **

Immediately we know that is just a constant function, so we can write

Contrast this with the wrong answer from naively integrating up and adding each term. This would have produced , a factor of out!

So what of my mysterious comment about limits above. Well, because is an exact differential, we know that we can integrate it over any path and will get the same answer. This path independence is an important reason that the entropy is a genuine physical quantity, whereas there’s no absolute notion of heat. In particular we can find by integrating along the axis to then in the direction from to .

Mathematically this looks like

The first integral now gives since along the axis. The second term gives the correct answer as required.

In case you want a third way to solve this problem correctly, check out this webpage which proves another means of integrating differentials correctly!

So there you have it – your health warning for today. Take care when integrating your differentials!

### Like this:

Like Loading...

*Related*