The first statement of the true dynamical theory of heat, based on the fundamental idea that the work done in a Carnot cycle is to be accounted for by an excess of the heat received from the source over the heat delivered to the refrigerator, was given by Clausius in a paper which appeared in Poggendorff's Annalen in March and April 1850, and in the Philosophical Magazine for July 1850, under a title which is a German translation of that of Carnot's essay. In that paper the First Law of Thermodynamics is explicitly stated as follows: "In all cases in which work is produced by the agency of heat, a quantity of heat proportional to the amount of work produced is expended, and, inversely, by the expenditure of that amount of work exactly the same amount of heat is generated." Modern thermodynamics is based on this principle and on the so-called Second Law of Thermodynamics; which is, however, variously stated by different authors. According to Clausius, who used in his paper an argument like that of Carnot based on the transference of heat from the source to the refrigerator, the foundation of the second law was the fact that heat tends to pass from hotter to colder bodies. In 1854 (Pogg. Ann., Dec. 1854) he stated his fundamental principle explicitly in the form: "Heat can never pass from a colder to a hotter body, unless some other change, connected therewith, take place at the same time," and gives in a note the shorter statement, which he regards as equivalent: "Heat cannot of itself pass from a colder to a hotter body."

We shall not here discuss the manner in which Clausius applied this principle: but he arrived at and described in his paper many important results, of which he must therefore be regarded as the primary discoverer. His theory as originally set forth was lacking in clearness and simplicity, and was much improved by additions made to it on its republication, in 1864, with other memoirs on the Theory of Heat.

In the Transactions R.S.E., for March 1851, Thomson published his great paper, "On the Dynamical Theory of Heat." The object of the paper was stated to be threefold: (1) To show what modifications of Carnot's conclusions are required, when the dynamical theory is adopted: (2) To indicate the significance in this theory of the numerical results deduced from Regnault's observations on steam: (3) To point out certain remarkable relations connecting the physical properties of all substances established by reasoning analogous to that of Carnot, but founded on the dynamical theory.

This paper, though subsequent to that of Clausius, is very different in character. Many of the results are identical with those previously obtained by Clausius, but they are reached by a process which is preceded by a clear statement of fundamental principles. These principles have since been the subject of discussion, and are not free from difficulty even now; but a great step in advance was made by their careful formulation in Thomson's paper, as a preliminary to the erection of the theory and the deduction of its consequences. Two propositions are stated which may be taken as the First and Second Laws of Thermodynamics. One is equivalent to the First Law as stated in p. [116], the other enunciates the principle of Reversibility as a criterion of "perfection" of a heat engine. We quote these propositions.

"Prop. I (Joule).—When equal quantities of mechanical effect are produced by any means whatever from purely thermal sources, or lost in purely thermal effects, equal quantities of heat are put out of existence or are generated."

"Prop. II (Carnot and Clausius).—If an engine be such that when worked backwards, the physical and mechanical agencies in every part of its motions are all reversed, it produces as much mechanical effect as can be produced by any thermodynamic engine, with the same temperatures of source and refrigerator, from a given quantity of heat."

Prop. I was proved by assuming that heat is a form of energy and considering always the work effected by causing a working substance to pass through a closed cycle of changes, so that there was no change of internal energy to be reckoned with.

Prop. II was proved by the following "axiom": "It is impossible, by means of inanimate material agency, to derive mechanical effect from any portion of matter by cooling it below the temperature of the coldest of the surrounding objects." This is rather a postulate than an axiom; for it can hardly be contended that it commands assent as soon as it is stated, even from a mind which is conversant with thermal phenomena. It sets forth clearly, however, and with sufficient guardedness of statement, a principle which, when the process by which work is done is always a cyclical one, is not found contradicted by experience, and one, moreover, which can be at once explicitly applied to demonstrate that no engine can be more efficient than a reversible one, and that therefore the efficiency of a reversible engine is independent of the nature of the working substance.

It has been suggested by Clerk Maxwell that this "axiom" is contradicted by the behaviour of a gas. According to the kinetic theory of gases an elevation of temperature consists in an increase of the kinetic energy of the translatory motion of the gaseous particles; and no doubt there actually is, from time to time, a passage of some more quickly moving particles from a portion of a gas in which the average kinetic energy is low, to a region in which the average kinetic energy is high, and thus a transference of heat from a region of low temperature to one of higher temperature. Maxwell imagined a space filled with gas to be divided into two compartments A and B by a partition in which were small massless trapdoors, to open and shut which required no expenditure of energy. At each of these doors was stationed a "sorting demon," whose duty it was to allow every particle having a velocity greater than the average to pass through from A to B, and to stop all those of smaller velocity than the average. Similarly, the demons were to prevent all quickly moving particles from going across from B to A, and to pass all slowly moving particles. In this way, without the expenditure of work, all the quickly moving particles could be assembled in one compartment, and all the slowly moving particles in the other; and thus a difference of temperatures between the two compartments could be brought about, or a previously existing one increased by transference of heat from a colder to a hotter mass of gas.

Contrary to a not uncommon belief, this process does not invalidate Thomson's axiom as he intended it to be understood. For the gas referred to here is what he would have regarded as the working substance of the engine, by the cycles of which all the mechanical effect was derived; and it is not, at the end of the process, in the state as regards average kinetic energy of the particles in which it was at first. That this was his answer to the implied criticism of his axiom contained in Maxwell's illustration, those who have heard him refer to the matter in his lectures are well aware. But of course it is to be understood that the substance returns to the same state only in a statistical sense.