Entropy was first defined in 1824 by a French military engineer, Sadi Carnot, in his very careful theoretical analysis of a steam engine. Carnot idealized the operation of the engine in four reversible steps using an ideal gas as the working fluid. However, his conclusions are independent of the working fluid. The four steps are
A thermodynamic analysis of this cycle has fundamental implications for absolute efficiencies of cyclic heat engines and for how heat can be converted into work. Furthermore, if you run the cycle in reverse you get a refrigerator and so Carnot efficiencies apply to refrigerators too.
There are lots of animations on the web that show the Carnot cycle for a piston along with a plot of the relevant state variables, pressure (P) vs volume (V), for the gas along the cycle. This animation is pretty effective, but notice that it starts with the isothermal compression step so that you do not lose your place in the cycle. The one found here is very stylized, allowing a clear distinction to be made between the isothermal and adiabatic expansions in the P vs V plot, but suffering a bit of accuracy because of it.
Carnot performed a quantitative thermodynamic analysis of the work and heat produced and consumed during the Carnot cycle, and most chemical engineering and upper level undergraduate chemistry courses that study thermodynamics expect students to be able to repeat Carnot's analysis. You can see this done on Nichols' & Farris' slide show, but must follow slides 3-10 of the sequence for the entire Carnot cycle. If you are having a good time, go ahead and check out the Otto (automobile engine) and Diesel (diesel engine) cycles! Because these processes are cyclic you return to the same initial conditions at the end of a cycle and all state functions will be the same at the beginning and end of the cycle. Therefore, ΔU = 0 for a complete cycle and q = - w.
Carnot also found that his newly defined quantity, entropy, is a state function by integrating the changes that occur to S
as you go around a complete cycle:
Sadi Carnot did not set out to define a quantity that determined thermodynamic spontaneity. That is what entropy does and why it is so valuable to us in our study of thermodynamics. But he did not know it at the time. He did know that his analysis determined a number of things about heat engines (and refrigerators!). Among them are
This last point can be written mathematically in the form known as the Clausius inequality
where dqrev is the incremental transfer of heat for the cycle performed reversibly and dq is the actual transfer of heat that takes place whether or not the change is reversible. A little math turns this into the more familiar form of the second law of thermodynamics
To get this last step, I assumed that the heat gained by the system is the same as the heat lost to the surroundings, qsystem= - qsurroundings and this is exactly the purpose of the surroundings in entropy calculations, to supply or remove heat.
Calculating the cyclic integral requires calculus, particularly if the temperature is changing. We, however, will be interested in applying thermodynamics to chemical reactions and phase changes. For chemical reactions, we can get ΔSsystem by using thermodynamic tables and Hess's law. For the surroundings, we need to know something about the reaction conditions. Commonly we hold the temperature and pressure constant (for example as approximately the conditions in an open beaker in the lab). In this case, the laboratory air either absorbs heat from the reaction if it is exothermic or transfers heat to the reaction if it is endothermic to keep the temperature constant with the air. Yes, the lab temperature increases or decreases as it absorbs or transfers heat. But the lab is huge relative to the size of the beaker and the increase/decrease in temperature is negligible. Under these conditions, the entropy of the surroundings is merely the heat lost from the reaction divided by the lab temperature
To determine whether a reaction can proceed at constant T and P, we need merely test to see if
For a phase transition, we can find Ssystem by using thermodynamic tables and Hess's law, or we can make use of the fact that temperature does not change during a phase transition and
where "trans" refers to vaporization, boiling or some other first order phase transition.