Thermodynamics (from Greek: θερμός "theromos"; δύναμης "dynamis") is a part of the physical sciences involved in the study of the effects of work, heat, and energy on a system. The study of thermodynamics is central to the subjects of physics and chemistry, as well as important to the processes within biology and geology.
Thermodynamics includes several sub-disciplines within its framework:
- Classical thermodynamics, which concerns the transfer of energy and work in normal systems with no consideration of the interactions of particles at the microscopic level. Classical thermodynamics makes no explicit reference to the constituent particles of a system. It consists of a number of "empirical" laws, which are derived purely from observations on thermodynamical systems, such as vessels of gas, or steam engines.
- Statistical thermodynamics, which concerns the interactions and energy relationships of particles at the microscopic level, with a reliance on quantum theory.
- Chemical thermodynamics, which is heat and energy transfers involving chemical reactions within chemical systems.
Thermodynamics has an emphasis on a beginning or initial state of a system, and an end or final state of a system, with the system being all of the interacting components on this energy path. Measurements in thermodynamics are usually reported on the Kelvin scale 
It has been known since antiquity that, when hot and cold objects are juxtaposed to each other, the warmer one cools off while the cooler one warms up, until they reach the same temperature. That is, heat only flows "downhill", never "uphill". It would take much scientific inquiry to figure out why this is so.
This didn't stop people from constructing heat engines. About 120 A.D. Heron of Alexandria created the first reaction turbine, essentially a copper sphere with two bent nozzles mounted opposite each other; the sphere itself was mounted above a fire which heated water within the sphere, causing the sphere to rapidly rotate via the steam escaping from the nozzles. Simply a curious novelty at the time, Heron's sphere would cause speculation on the nature of heat and heat transfer, and spark some investigation into using heat transfer to accomplish meaningful work.
In 1789 Antoine Lavoisier demonstrated the law of conversion of mass, when he observed that heat flowed from a warm body to a cold one. He proposed that heat was an element (he called this element caloric), and speculated that it was a type of fluid surrounding an atom, and seemingly confirmed his theory when he removed oxygen from mercuric oxide.
Prior to that, the conversion of heat to work was being accomplished on the industrial level. By the end of the 17th century, Thomas Savory invented the first practical steam-operated machine, a pump used to draw up well water. This in turn led to the first piston engine, invented by Thomas Newcomen in 1712, and based on a refinement of Savory's work, which in turn was further revised by James Watt by the end of the 18th century.
The downfall of Lavoisier's caloric theory happened at the arsenal in Munich, Germany. The Bavarian minister of war was a British expatriate, Sir Benjamin Thompson, and he observed that work was being converted into heat by observing the boring of a cannon. If caloric theory was correct, he reasoned, no more heat would be made once all of the caloric was removed from the cannon at the atomic level, yet his observations on this procedure - including a cannon bored while under water - demonstrated that work can be converted into heat, like the steam engines of his time converting heat into work.
James Joule in 1849 made a precise determination of the mechanical equivalent of heat into work. His stirring of water in a pot (work input with a mechanical stirring rod, caused by the motion of a 1-kg weight falling 42.4 cm) caused a temperature increase (heat output); his homemade, yet very-precise thermometers recorded the conversion factor. The unit of energy is now called the joule. 4.2 joules of energy can raise one gram of water 1 degree Celsius, an amount called one calorie. (The large-C "Calorie" used in nutritional measure is 1000 small-c calories.)
Joule, and others, continued in other experiments, noting the pressure changes caused by electrically-heated gases, and achieved similar results. This in turn led to a number of other scientists to research in this area, among them the German physicists Rudolf Clausius and Hermann von Helmholtz in the 1840's. This led to the general acceptance of Conservation of Energy as a clear and precise principle. Clausius stated in 1850:
- "In any process, energy can be changed from one form to another, but it is never created or destroyed."
This principle notably included heat as a form of energy, which was the first law of thermodynamics. Hot objects contain potential energy in the form of their heat, and all the usual rules of transformation between potential and kinetic energy apply. When an electric current is passed through a resistor, the electrical energy is converted to heat energy, and the resistor gets hotter. Everything seemed to work out accurately.
Of course, in all experiments that attempt to tally energy (or other properties) accurately, one must be careful to avoid outside interference. Newton's formula requires that no unaccounted-for forces are acting on the object. Similarly, in thermodynamics, one must take into account any possible sources of heat into or out of the entity under test. This is often described by saying that the law of thermodynamics apply only to "isolated", or "closed", systems. If a system can interact with some external entity, that entity's properties must be taken into account.
Scientists had mostly figured out a linear relationship between temperature rise and change in heat energy. This is called the specific heat, in joules per degree of temperature rise per gram of substance. For example, the specific heat of water is 4.2 joules per gram per degree of temperature rise.
Heat engines (that is, steam engines) were being used on an industrial scale by then, but scientists still didn't know what temperature really meant. And they didn't know why it only flows "downhill". Also, while other forms of energy (as in running electricity through a resistor) could be converted to heat with essentially perfect efficiency, converting the other way (as in a steam engine) was very inefficient. No one knew why.
The clues that unraveled this mystery came from the study of gases, which had been going on for some time before. Boyle's Law, formulated in the 1660's, stated that, for a given sample of gas at a fixed temperature, the pressure was inversely proportional to the volume. That is,
- where the constant depends on the amount and type of the gas sample
Charles' Law, formulated in the 1780's, stated that, for a given sample of gas at a fixed pressure, the volume was directly proportional the the "absolute" temperature. That is,
- where the constant depends on the amount and type of the gas sample
This required that the temperature scale be modified. The necessary scale was known as absolute temperature, now known as Kelvin scale. All thermodynamic measurements are in Kelvins.
Putting these together, we get, for a given sample of gas:
Where X is some constant that is characteristic of the gas sample. It's easy to see that X is proportional to the amount of gas (2 grams of gas will have twice the volume of 1 gram). So X is actually the amount of gas, measured in some convenient units (grams, moles, molecules), times some number that is characteristic of the gas.
In the 1810's, Gay-Lussac and Avogadro made an amazing discovery: The mysterious constant is just the molecular weight of the gas, if the amount of gas is measured in the right units. The right unit to use is the mole, which is the mass, in grams, that matches the molecular weight of the gas. (By then atomic weights and molecular weights were beginning to be understood.) So, for example, a mole of Chlorine is 71 grams, because a Chlorine molecule has two atoms. This led to the Universal Gas Law or Ideal Gas Law:
where is the amount of gas, measured in moles, and is the Universal Gas Constant of 8.314 joules per Kelvin. A mole has to be defined as that amount, in grams, equal to the molecular weight of the gas. This required that the molecular weight of diatomic gases, like Hydrogen, Nitrogen, Oxygen, and Chlorine, be twice the atomic weight, because the molecules have two covalently bound atoms. Inert gases, like Helium and Neon, have only one atom per molecule. For something like Ammonia vapor (NH3), the molecular weight is 17, the sum of the atomic weights of the atoms.
There are a number of ways of stating this. A mole is Avogadro's number (6.022x1023) of molecules. The gas law can be restated in terms of the number of molecules:
where is the number of molecules and is Boltzmann's constant (1.38x10-23 joules per kelvin).
Scientists were now fairly close to figuring out thermodynamics. They just needed the kinetic theory and statistical mechanics. They still didn't know why heat only flows "downhill"—it was still just an observed fact. And they didn't know why "heat engines", that is, things that turn heat (e.g. steam) into mechanical energy, aren't very efficient.
James Watt's steam engine drew heat from a specific source and converted some of it to useful work; the remainder of the heat was transferred to a cooler reservoir. In 1824 a French engineer, N.L. Sadi Carnot, proposed the Carnot cycle, consisting of two isothermal processes (involving a constant temperature) and two adiabatic processes (no heat is gained or lost). The result was, in theory, the most efficient-working heat engine cycle of any kind, one involving processes that must be reversible and involve no change in entropy. What was discovered in practice was the second law of thermodynamics, which states (in one of its various formulations) that entropy in an isolated system cannot decrease, and that irreversible processes can only make it increase. An equivalent formulation states that heat cannot spontaneously flow from a cooler body to a hotter body. Clausius stated that "It is impossible for a self-acting machine, unaided by external agency, to convey heat from a body at one temperature to another body at a higher temperature."
What it meant was heat transfers to cooler temperatures, and not the other way around, which led to the concept of entropy. An idealized formula for an increase in entropy when heat is applied reads:
Where is the state of the system or entropy, is the added heat, and is the absolute temperature. This increase in entropy must be at least , but the entropy change itself ( is always greater.
Also known as Nernst's Law, states that it is not possible to bring any system to the absolute zero of temperature in a finite number of operations. Also stated as follows: The entropy of a perfect crystal at absolute zero is zero.
These laws tell us to what constraints any system is subject. For example, it allows us to calculate the maximum possible efficiency of an engine once we know the temperature at which it operates.
The particular properties of a specific system cannot be calculated from these laws alone. More information is required: so-called thermodynamic equations of state tell us how a particular system will behave under thermodynamic processes. A simple example of such an equation is the Ideal Gas Law that applies to dilute gases.
- David Halliday, "Fundamentals of Physics Extended", John Wiley & Sons, New York, 1997
- Gregory H. Wannier, Statistical Physics, John Wiley & Sons, New York, 1966