How is this process not quasi-static yet reversible?

Consider a (adiabatic) canister with a piston containing some gas kept in a vacuum. There are two weights on the canister which equalize the pressure of the gas on the piston. Assume the system is at equilibrium.

I remove one weight from the piston. The system will go out of equilibrium. After some flux, it will again settle into equilibrium.

Clearly, this is not a quasi-static process. But its a reversible one, isn't it? If I put the weight back on the piston, the system will again achieve its initial state. How can a non-quasi-static process be reversible?

EDIT: According to Wikipedia, a reversible process "is a process that can be 'reversed' by means of infinitesimal changes in some property of the system without entropy production". So, if a process can be reversed without the means of infinitesimal changes without entropy production. Would that qualify as reversible? (as in the example given above)

• I think your question would be much easier to understand if you included a drawing of the system you are describing. – Mark Rovetta Mar 7 '14 at 5:14

Although this isn't obvious, the system doesn't return to its initial state. If you were to very slowly remove the weight from the piston, then the gas would do work on the piston as you removed it, which means that its internal energy would be reduced. If you remove the weight very quickly then the gas still does work on it, but it will do less work than it would in the reversible case, which means that its internal energy will change by a different amount.

There are several possible reasons why the work can be less. One is discussed in John Rennie's answer --- if you lift the piston so rapidly that the gas molecules can't catch up with it then they will do no work at all. However, a much more realistic scenario is that once you remove the weight, the piston starts to oscillate up and down. After a while the oscillations reduce in amplitude due to frictional dissipation in the gas, and the piston comes to a stop.

In this scenario, under normal everyday conditions, the gas stays at a pretty homogeneous pressure the whole time, meaning that the vacuum effect discussed above isn't very important. Instead what happens is that the gas does work to push the piston up, in pretty much exactly the same way as it would in the non-reversible case. Once the piston gets to the equilibrium position, the gas is in pretty much the same state it reaches in the quasi-static case. The difference is that the piston still has some kinetic energy, which is why it keeps moving upwards and begins to oscillate. Once the oscillations have died down, the kinetic energy that was in the piston is now in the gas, in the form of thermal motion of its molecules. Therefore, once the piston has stopped moving, the gas is at a higher temperature than it would have reached in the quasi-static case.

Once you put the weight back onto the piston, the same thing happens: the gas gets compressed, pretty much reversibly, but the piston still has kinetic energy, so it oscillates. Once the oscillations die down, the gas will have a little bit more thermal energy than it would have done otherwise.

This means that, after removing and replacing the weight, you haven't restored the gas to exactly its initial thermodynamic state. Instead you've heated it up very slightly.

To put some numbers to this, let's assume that the weight you remove has a much smaller mass than that of the piston itself, so that we can assume the pressure is constant. (There's no real need to do this - it would be easy enough to consider changes in pressure due to the ideal gas law - I'd just like to keep it simple.) We'll also assume the volume (and therefore total heat capacity) of the gas is big enough that its temperature stays approximately constant.

So: let's you remove a mass $m$ and the piston starts to oscillate, but eventually comes to rest a distance $\Delta h$ higher than it was before you removed the weight. If you had removed the weight slowly then the gas would have done work equal to $mg\Delta h$ to move the piston, and therefore it would have lost this amount of energy. In reality the gas did do (most of) this work, but it was turned into kinetic energy and then went back into the gas, so its internal energy actually changed by zero. However, replacing the weight does cause a net amount of work to be done in compressing the gas. The oscillations mean that slightly more work than $mg\Delta h$ will be done in the non-quasi-static case. We'd need to do the full ideal gas equation calculation to work out how much, but we know it must be at least $mg\Delta h$. So the total internal energy change after removing and replacing the weight is $\Delta U \ge 0 + mg\Delta h = mg\Delta h$. So the gas has more energy at the end of the process than it did at the start, as claimed.

You specified that the piston is adiabatic, but we can do a similar analysis in the case of an isothermal situation. In this case the gas does end up in exactly its initial state, but it exports a little bit of energy into the heat bath. If you consider the system and the heat bath together, the final state is slightly different from the initial one, because the heat bath ends up with more energy than it started with.

This is generally what will happen in an irreversible process: the final state of the system and its surroundings will be different than in the irreversible case. Very often, but not always, this difference will be in the form of a slightly higher internal energy. It might not always be obvious, but it will always be there if you analyse the process carefully enough.

Nevertheless, there are plenty of processes that are (practically) thermodynamically reversible while not being quasi-static. A simple example is an ideal frictionless pendulum, which repeatedly converts gravitational potential energy into kinetic energy and back again, always returning to exactly its initial state. Of course, no real pendulum is completely frictionless (just as no real process is completely quasi-static), but you can get pretty close with good engineering.

• So, a reversible process isn't necessarily quasi-static. In essence, then, a reversible process is simply that can be brought back to its initial state, with no change anywhere in the Universe, right? In other words, with no entropy change. – Gerard Mar 8 '14 at 7:30
• @Gerard yes, I think that is by far the best way to think about it. – Nathaniel Mar 8 '14 at 7:32

In the process you describe the system won't necessarily return to its original state.

Suppose you instantly remove the weight and lift up the piston so the gas expands irreversibly to it's new equilibrium volume. The gas does no work in expanding so its temperature doesn't change - all that happens is that the pressure falls.

Now compress the gas back to it's original volume reversibly by lowering the weight back on very gradually. Now you are doing work on the gas so its temperature increases. When you eventually release the weight you'll find the gas temperature and volume are different to the initial state.

If you do the cycle reversibly you'll find that the work done by the gas as it expands is the same as the work done on the gas as it's compressed, and it will return to its initial state. However this isn't the case if the expansion/compression is not revesible. This is because work is not a function of state.

• +1: For a more nuanced discussion. Can you think of a compelling reason why if the gas were to expand irreversibly after one weight were taken off and then to compress irreversibly after it were replaced that it would be impossible for it to return to its original state. I want to say no, and that one could construct the piston/container so that the change in internal energy of the gas is the same during the expansion and compression, but I'm not sure. – joshphysics Feb 11 '14 at 17:36
• @joshphysics: Sorry, late answer. It's very difficult to achieve much irreversibility when compressing a gas. Irreversible expansion is easy because you just let the gas expand into a vaccuum like a Joule expansion. To compress a gas irreversibly you'd have to move your piston inwards in such a way that you didn't accelerate and therefore heat the gas molecules bouncing off the piston. Unless you have a Maxwell's demon to hand this is practically impossible. – John Rennie Feb 13 '14 at 17:06
• @JohnRennie: In your answer, you remove the pressure from the piston altogether. Whereas, in the question, I have only removed half the pressure. So the gas does do some work while expanding. – Gerard Mar 7 '14 at 5:02
• @Gerard: oops yes, though my general argument still applies - the final temperature after expansion will be greater than if the expansion was done reversibly. I'll have a fresh look at your question later today. – John Rennie Mar 7 '14 at 7:12
• @JohnRennie it's easy enough to create irreversibility when compressing a gas. You just move the piston fast enough to create pressure waves. This takes more energy than compressing slowly, so when the waves have dissipated the temperature will be higher. (The point is, irreversible compression creates more heat than reversible compression, not less.) – Nathaniel Mar 7 '14 at 13:26

In the context of equilibrium thermodynamics, when we say that a process is reversible, we usually mean that the process is well-described by a continuous path in thermodynamic state space (namely it is quasi-static) and that the system can be taken along the same path in thermodynamic state space, but in the reverse order. Since in the example you gave, the system is only in equilibrium in the initial and final states, it doesn't make sense to talk about reversibility.

It's true that the system is going from one equilibrium point (point in thermodynamic state space) to another and then back again, but one cannot speak of the system "retracing" its thermodynamic steps so-to-speak because from the perspective of equilibrium thermodynamics, these intermediate steps are not well-defined macroscopic states.

If I put the weight back on the piston, the system will again achieve its initial state.

No, it won't. In the end, the pressure will be the same, but the temperature and therefore the volume will be higher.

Firstly, in a real system there will be friction due to gas viscosity and piston/cylinder interaction.

But even in an ideal system, after the first weight is removed, the gas expands against only the pressure of the remaining weight(rather than the gas's own higher pressure) and therefore does less work than it otherwise could. $\Delta U_1 = -W_1$. When the weight is replaced, the compression is against the gas's own pressure, and more work would be required to return the piston to its orginial position than the gas orginially did. $\Delta U_2$ would need to be of greater magnitude than $\Delta U_1$ to get back to the starting pistion position.

see section 3.3.2 and 3.3.3 of the following reference:

http://sites.tufts.edu/andrewrosen/files/2012/11/Thermo-Review.pdf

• That's what I thought. While compressing the gas, more force is being applied, but the distance for which the force applied is less (since the volume of the gas is less than its initial volume), and so might not the work done be the same? Could you supplement your statement with math to make it rigorous? – Gerard Mar 7 '14 at 14:58
• I'll try to add math. I'm wonder whether I should account for the fact that the piston and remaning mass will oscillate about an equilibrium position, causing the gas to be repeatly expanded and compressed before the other mass replaced. – DavePhD Mar 7 '14 at 15:49
• @Gerard The part of the question that presupposes "After some flux, it will again settle into equilibrium" already necessitates that kinetic energy of the piston and other mass being accelerated is converted to thermal energy. The mathematics of the second (compressive) part of your question was published in "The Physics Teacher", with explanation of how it differs from a reversible process. dtic.mil/dtic/tr/fulltext/u2/a574894.pdf – DavePhD Mar 8 '14 at 18:40

The process is obviously quasi static if dynamics are ignored and as long as no friction is assumed also reversible. Perhaps the key is to consider what "removing the weight" actually means. If the weight is removed by a vertical action from $h_0$ to $h_1$ (heights, where the indices mean equilibrium positions) and you do it really slowly (dynamic effect by moving masses neglected), the process is quasi static.

If however the weight is removed quickly or even instantanously (eg. by removing the weight by horizontal action at $h_0$) the system will oscillate stationarily around $h_1$. The energy stored in the oscillation would be the difference between the potential energy $mg(h_1-h_0)$ and isentropic volume change work $\int_0^1 pdV$, where $m$ is the removed mass, $p=p_0(V_0/V)^\kappa$ and $\kappa=c_p/c_v$. While obviously in this situation still everything is reversable, it's also still quasi static with respect to internal of the closed system where no non-equilibrium processes take place, besides some local effects which average out. In other words for any position $h$ of the piston the internal state is given independently of circumstances outside the system.

The other answers showed that the energy of the final system is greater than the energy of the initial system, because you are heating the gas. Here's another way to see this:

In the first step, you remove the weight at height $h_1$. In the second step you replace it at a higher height, $h_2$. In between these steps you need to bring the weight up from $h_1$ to $h_2$, which takes work. The environment will lose energy in performing this work, so the system must gain energy to compensate. One might object that you could just even things out in the end by transferring energy back from the system to the environment. However, the environment lost energy in the form of work, and the system gained energy in the form of heat, so the net energy transfer is irreversible.