Posts Tagged ‘physics’

The mystery of thermodynamics

October 14, 2025

I have recently been reading the book ‘Foundations of Chemical Reaction Network Theory’ by Martin Feinberg. In the past I have spent a lot of time studying Feinberg’s classic lecture notes on Chemical Reaction Network Theory and I have read (parts of) many of his papers. Thus many things in the book are familiar to me. However there are also many things which are not and I feel that I am profiting a lot from reading it. One subject which plays a marginal role in most of Feinberg’s writings is thermodynamics and the related concept of detailed balancing. This is different in the book since there are two chapters (Chapter 13 and Chapter 14) devoted to these topics. On p. 274 we read ‘The mathematical foundations of thermodynamics remain somewhat murky, at least to me.’ My response to this statement is ‘me too’. In fact I have often experienced that mathematically inclined people say that they never understood thermodynamics. My own difficulties with the subject influenced my career. As a student I was irritated by the equation \frac{\partial V}{\partial T}\frac{\partial T}{\partial P} \frac{\partial P}{\partial V}=-1. When I asked the lecturer who was teaching us a course on thermodynamics he was not able to give me an explanation which I found satisfactory. As a schoolboy physics was the subject which interested me most. After my second year at university I had to decide between doing a degree in physics, a degree in mathematics or a joint degree in both. My decision for the second alternative was strongly influenced by that thermodynamics conundrum. Another experience which contributed to my decision was that at one time I happened to have two courses on the same topic, Fourier series, in the same term, one in physics and one in mathematics. The second was quite transparent to me, the first obscure. The fact that I had
a more positive experience with mathematics than with physics as a student probably had to do with the fact that the relative quality of the lecturers in mathematics was better. At the same time it has to with the nature of the subjects themselves. To come back to Feinberg’s book, on p. 281 he writes ‘When I was an undergraduate student, classical thermodynamics appeared to be a beautiful (and somewhat kabbalistic) subject, but its purpose was not clear. … I didn’t really understand what was happening.’ Feinberg and many other people seem to have made peace with thermodynamics although remaining with an uneasy feeling. This does not apply to me. Perhaps it is an aesthetic thing: Feinberg found the subject ‘beautiful’, even as a student, while I must say that I experienced it as ugly.

Thermodynamics is a part of physics which seems to be difficult to relate to rigorous mathematics. In this sense it bears a resemblance to the much more prominent example of quantum field theory. What does the word thermodynamics mean to me? I want to try to answer this question without reading what anyone else says about the subject. (I can do that later, if desired.) I start with an etymological approach. This indicates that the subject has to do with heat and the way that a system evolves in time. Another approach is a historical approach. I have the impression that a motivation for the subject was understanding the efficiency of steam engines. Yet another approach is to try to make contact to statistical mechanics. A gas is made up of an enormous number of molecules and it is impossible to keep track of them individually. Thus we pass to a statistical description. This involves some probability theory or possibly even quantum mechanics. Getting to thermodynamics involves discarding some information about the system and nevertheless ending up with a description which is to some extent self-contained.

Matched asymptotic expansions, part 3

December 14, 2024

If the inner and outer solutions which we introduced previously are to define a good approximation then their difference should tend to zero as \epsilon tends to zero. Their derivatives should also do so. This idea is implemented by looking at some intermediate point which is not too close to the origin but not too far away so that it can be hoped that both approximations are valid at that point. In the book the choice x=\sqrt{\epsilon} is made and this is another case where intuition is used instead of a clear algorithm. This leads to the choice c=1 and d=0 and in that case the difference vanishes faster than any power of \epsilon as \epsilon\to 0. Since the equation is linear we can add the inner and outer solutions to get a new solution. Here the lowest order term is present in both summands and so we need to subtract it off. The result is y_u(x)=2x-1+e^{\frac{x}{\epsilon}}. It satisfies the boundary condition at x=0 exactly but it satisfies the boundary condition at x=1 only approximately, whereby the error is exponentially small.

What has been achieved here? The method of matched asymptotic expansions has been applied to identify a candidate approximation to the solution of a certain boundary value problem. Since in this example the solution can be computed explicitly it could be checked that this candidate actually does satisfy criteria which makes it a good solution. On the other hand if the exact solution is not used it gives us no independent argument that the candidate is a good approximation. An interesting question is how it is possible to obtain a rigorous proof that a function obtained by this method satisfies the conditions which it was designed to satisfy.

This problem can be related to the technique of geometric singular perturbation theory (GSPT). Let v=u'. Then the original ODE can be written in the form \epsilon v'=-v+2, u'=v. This is the canonical form of a system with two time scales in GSPT. We have a slow variable u and a fast variable v. The critical manifold is given by v=2. This problem is normally hyperbolic with an eigenvalue -1. Intuitively, the solution approaches the slow manifold very fast and then moves slowly along it. It is not possible to immediately apply the most basic techniques of GSPT to this problem because the solution on the slow manifold goes to infinity – it does not remain in a compact set.

Matched asymptotic expansions, part 2

December 13, 2024

In a previous post I wrote about matched asymptotic expansions, concentrating on a classical example, the Kaplun-Lagerstrom model. Now I want to go into some aspects of this subject more deeply. My main source is once again the book of Hastings and McLeod. In this post I discuss the ODE \epsilon y''+y'=2 on the interval [0,1] with boundary conditions y(0)=0 and y(1)=1. The equation contains a parameter \epsilon. We would like to understand the behaviour of solutions of this problem for \epsilon>0 small. The equation is linear and looks quite simple. That this problem is not straightforward can be seen if we set \epsilon=0. A naive hope would be that the solution for \epsilon small and positive can be approximated uniformly by a solution of the limiting equation with \epsilon=0. In fact the equation with \epsilon=0 has the general solution y=2x+c and this does not satisfy the desired boundary conditions for any value of c. This has to do with the fact that the equation for \epsilon>0, being second order, has a two-parameter family of solutions while that for \epsilon=0, being first order, has only a one-parameter family. This shows that this is what is called a singular perturbation problem, where the nature of the equation changes essentially as a certain parameter value is reached. To obtain more information we expand the solution in powers of \epsilon, y=\sum_{i=0}^\infty y_i\epsilon^i and substitute this into the equation. This means that we try the simplest expansion imaginable. Then y_0 satisfies the equation for \epsilon=0 and we are confronted with the problem which is already familiar. If we ignore this we find that it is consistent to set all y_i with i\ge 1 to zero. There is no clear preferred choice for the constant c. In fact the ODE and thus the boundary value problem can be solved explicitly. The strategy here is to ignore that fact as much as possible and gain information in other ways. The hope is that these other methods will apply in cases where no explicit solution is available. Looking at the explicit solution reveals that the choice c=-1 gives a function which solves the boundary condition y(1)=1 and is a good approximation to the true solution on most of the interval [0,1]. When x=0 is approached the exact solution swerves off from the approximate solution so as to head for the point corresponding to the boundary condition y(0)=0. The derivative becomes very large when \epsilon is very small. It looks like the solution could be got by piecing together an outer solution, the explicit one we already saw, with an inner solution defined in a small region near x=0.

How can we get information about the inner solution? One strategy is to use a magnifying glass to see more clearly what is happening in the small region of interest. This is done by introducing a new coordinate \zeta=\frac{x}{\epsilon}. This is a bit arbitrary. In principle we could have used a different power of \epsilon in the rescaling. It turns out that this choice is useful in this example. Call the transformed solution z(\zeta). It satisfies \frac{d^2 z}{d\zeta^2}+\frac{dz}{d\zeta}=2\epsilon. We can now do an expansion of this equation in powers of \epsilon. Substituting this in the original ODE gives a sequence of equations for the expansion coefficients z_i. The case i=0 can be solved to give z_0(\zeta)=c(e^{-\zeta}-1). This is the general solution satisfying z_0(0)=0. In the case i=1 the general solution with z_1(0)=0 is of the form z_1(\zeta)=2\zeta+d(e^{-\zeta}-1). It is consistent to set z_i=0 for i\ge 2 and we do so. Thus we have two free constants c and d. We now want to combine these inner and outer solutions to approximate the solution of the original problem as well as possible. We try to match them as well as possible by choosing the parameters c and d. An account of how this is done will be postponed to a later post.


Design a site like this with WordPress.com
Get started