## The second law of thermodynamics

One of the earliest scientists to be intrigued by heat engines was a French engineer named Sadi Carnot (1796-1832).  A heat engine uses heat transfer to do work in a cyclical process.  After each cycle the engine returns to its original state and is ready to repeat the conversion process (disordered --> ordered energy) again.

Carnot assumed that an ideal engine, converting the maximum amount of thermal energy into ordered energy, would be a frictionless engine.  It would also be a reversible engine.  By itself, heat always flows from an object of higher temperature to an object with lower temperature.  A reversible engine is an engine in which the heat transfer can change direction, if the temperature of one of the objects is changed by a tiny (infinitesimal) amount.  When a reversible engine causes heat to flow into a system, it flows as the result of infinitesimally small temperature differences, or because there is an infinitesimal amount of work done on the system.  If such a process could be actually realized, it would be characterized by a continuous state of equilibrium (i.e. no pressure or temperature differentials) and would occur at a rate so slow as to require an infinite time.  The momentum of any component of a reversible engine never changes abruptly in an inelastic collision, since this would result in an irreversible, sudden increase of disordered energy of that component.  A real engine always involves at least a small amount of irreversibility.  Heat will not flow without a temperature differential and friction cannot be entirely eliminated.

Carnot showed that if an ideal reversible engine, called a Carnot engine, picks up the amount of heat Q1 from a reservoir at temperature T1, converts some of it into useful work, and delivers the amount of heat Q2 to a reservoir at temperature T2, then Q1/T1 = Q2/T2.  Here T is the absolute temperature, measured in Kelvin and a heat reservoir is a system, such as a lake, that is so large that its temperature does not change when the heat involved in the process considered flows into or out of the reservoir.  To convert heat into work, you need at least two places with different temperatures.  If you take in Q1 at temperature T1 you must dump at least Q2 at temperature T2.

An example of an idealized, frictionless engine in which all the processes are reversible is an ideal gas in a cylinder equipped with a frictionless piston.  The cylinder alternates in making contact with one of two heat reservoirs at temperatures T1 and T2 respectively, with T1 higher than T2.

1. We start at point a in the PV diagram.  Let us put the cylinder in contact with the reservoir at T1 and heat the gas and at the same time expand it following the curve marked (1).  To make the process reversible we pull the piston out very slowly as heat flows into the gas and we make sure that the temperature of the gas stays nearly equal to T1.  If we would push the piston back in slowly, then the temperature would only be infinitesimally higher than T1 and the heat would flow back from the gas into the reservoir.  An isothermal expansion, when done slowly enough, can be a reversible process.  Once we reach point b in the diagram an amount of heat Q1 has been transferred from the reservoir into the gas.  Since the expansion is isothermal, the temperature of the gas has not changed.
2. Let us take the cylinder away from the reservoir at point b and continue a slow, reversible expansion without permitting heat to enter the cylinder.  The expansion now is adiabatic.  As the gas expands the temperature falls, since there is no heat entering the cylinder.  We let the gas expand, following the curve marked (2), until the temperature falls to T2 at the point marked c.  The adiabatic curve has a more negative slope than the isothermal curve.
3. When the gas has reached the temperature T2 we put it in contact with the reservoir at T2.  Now we slowly compress the gas isothermally while it is in contact with the reservoir at T2, following the curve marked (3).  The temperature of the gas does not rise and an amount of heat Q2 flows from the cylinder into the reservoir at the temperature T2.
4. At the point d we remove the cylinder from the reservoir at T2 and compress it still further, without letting any heat flow out.  During this adiabatic process the temperature rises, and the pressure follows the curve marked (4).  If we carry out each step properly, we can return to the point a at temperature T1 where we started, and repeat the cycle.

During one cycle we have put an amount of heat Q1 into the gas at temperature T1 and have removed an amount of heat Q2 at temperature T2.  Using the relationships between ΔU, ΔQ, and ΔW for the different thermodynamic processes, we can show that Q1/T1 = Q2/T2.

The useful work done by a heat engine is W = Q1 - Q2 (energy conservation).  An ideal reversible engine does the maximum amount of work.

Any real engine delivers more heat Q2 at the reservoir at T2 than a reversible one and therefore does less useful work.

The maximum amount of work you can therefore get out of a heat engine is the amount you get from an ideal, reversible engine.

Wmax = Q1 - Q2 = Q1 - Q1 T2/T1 = Q1 (1 - T2/ 1).

W is positive if T1 is greater than T2.

The efficiency of a heat engine is the ratio of the work obtained to the heat energy put in at the high temperature, e = W/Qhigh.  The maximum possible efficiency emax of such an engine is

emax = Wmax/Qhigh = (1 - Tlow/Thigh) = (Thigh - Tlow)/Thigh.

Assume you have a reservoir of hot water at temperature T1.  Can you take an amount of heat Q1 out of this reservoir and convert it into work?  No!  You can convert a fraction of the heat into work if you have a place at a lower temperature T2 where you can dump some of the heat.  An engine that does work by removing heat from a reservoir at a single temperature cannot exist.

Heat cannot be taken in at a certain temperature with no other change in the system and converted into work.  This is one way of stating the second law of thermodynamics.

Heat cannot, of itself, flow from a cold to a hot object is another way of stating the second law of thermodynamics.

If it could, then heat dumped at T2 could just flow back to the reservoir at T1 and the net effect would be an amount of heat ΔQ = Q1 - Q2 taken at a T1 and converted into heat with no other changes in the system.

#### Problem:

A certain gasoline engine has an efficiency of 30.0%.  What would the hot reservoir temperature be for a Carnot engine having that efficiency, if it operates with a cold reservoir temperature of 200 oC?

Solution:
A Carnot engine has maximum efficiency emax = (Thigh - Tlow)/Thigh.
If emax = 0.3, then 0.3 = 1 - (473 K)/Thigh.  Thigh = 473/0.7 = 675.7 K = 402.7 oC.

#### Problem:

An inventor is marketing a device and claims that it takes 25 kJ of heat at 600 K, transfers heat to the environment at 300 K, and does 12 kJ of work.  Should you invest in this device?

Solution:
A Carnot engine taking in 25 kJ of heat and operating between 600 K an 300 K can do a maximum amount of work
Wmax = Qhigh (1 - Tlow / Thigh) = 25 kJ*( 1 - 300/600) = 25 kJ/2 = 12.5 kJ.
The device's efficiency is claimed to be 96% of emax.  No known engine comes this close to emax.  Friction and other losses reduce the efficiency.  So while not forbidden by the second law, the device is very unlikely to perform as claimed.

Note:
Disordered energy cannot be completely converted back to ordered energy.
The maximum efficiency of a heat engine converting thermal to ordered energy is 100%*(Thigh - Tlow)/Thigh
Here Thigh and Tlow are the highest and lowest temperature accessible to the engine.

Ordered energy, on the other hand, can be completely converted into other forms of energy.  The maximum efficiency of an engine using ordered energy is 100%.