Laws of Thermodynamics

There are three laws of thermodynamics. These are the zeroth law, the first law and the second law of thermodynamics. The zeroth law of thermodynamics states that if system A and system B are in thermodynamic equilibrium and system B and system C are in thermodynamic equilibrium, then system A and system C are also in thermodynamic equilibrium. Two systems are said to be in thermdynamic equilibrium if they have the same temperature.

The First Law of Thermodynamics

The total internal energy of a system is the sum of all the potential and kinetic energies of all the particles comprising the system. There are two ways by which the internal energy of a system can be changed. These are by the supply (loss) of heat and by doing work. Heat is energy in transit from a high temperature system to a low temperature system. Internal energy of a system increases if it gains heat and decreases if it loses heat. Heat is taken to be positive if it is supplied and negative if it is lost. Work is transfer of energy by the cmpression or expansion of a system. Internal energy of a system increases when the system compresses and decreases when the system expands. In other words, when a system compresses it absorbs energy from its enviornment and when a system expands, it loses energy to its enviornment. We say work is done on a system when the system compresses and work is done by the system when the system expands. Work is taken to be positive when the system expands and negative when the system compresses. Work can be expressed in terms of pressure and the change in volume brought about by the pressure.

Let's consider a piston pushing on a gas in a tube with a force F causing a change in height Δy. Then the work done by the piston is given as W = FΔy. The force F can be expresses in terms of the pressure P exerted by the piston and the cross-sectional area of the tube as F = PA. Therefore W = PAΔy. And AΔy is equal to the change in volume ΔV of the gas.

W = PΔV

SI units Pa for pressuree and m³ for volume should be used to give Joules. If liter is used for volume then kpa should be used for pressure to get Joules.


A state function is a function whose change depends only on the initial and final states of the system irrespective of the process that brought about the change. Thus, a change in a state function can be expressed as the difference between the values of the function at the final state and the initial state of the system. If Z is an arbitrary state function, then ΔZ = Zf - Zi. The variables that determine the state of a gas are its temperature, volume and pressure. This means, a state function is a function that depends on these variables only. The total internal energy ( U ) of a system is a state function. Its change is equal to the difference between its values at the final and initial states.

ΔU = Uf - Ui

Work and heat are not state functions. They depend on the process that brought about the change and not on the initial and final state. But the difference between heat and work depends on the initial and final states of the system only. The first law of thermodynamics states that the difference between heat ( Q ) and work ( W ) is a state function and is equal to the change in the total internal energy of the system. The following is a mathematical statement of the first law of thermodynamics.

ΔU = Q - W

Using the expression for work in terms of pressure and volume, the following alternative equation for the first law of thermodynamics can be obtained.

ΔU = Q - PΔV


A cyclic process is a process where a system returns to its initial state. In other words, a cyclic process is a process where the initial and final states are identical. For a cyclic process Uf = Ui and ΔU = 0. Therefore for a cyclic process Q = W.


PV Diagrams

A PV diagram for a certain process is the graph of pressure versus volume for the process. Work can be obtained from a PV diagram as area enclosed between the Pressure versus volume curve and the volume axis. It is positive on intervals where the volume is increasing and negative on intervals where the volume is decreasing. For a cyclic process the volume will increase on one interval and decrease on the other interval. The work done will be the difference between the works on these intervals. Thus for a cyclic process the absolute value of the work done is equal to the area of the closed curve. It is positive if the process is clockwise (because the positive work is numericall greater) and negative if the process is counterclockwise (because the negative work is numerically greater).


Example: The following is a PV diagram for a certain process. Its internal energy at the states ( 2 L, 2 kPa ) and ( 6 L, 6 kPa ) are respectively 10 J and 20 J.

The Second Law of Thermodynamics

The second law of thermodynamics can be stated in terms of heat engines and entropy.

Heat Engines

A heat engine is a device used to convert heat energy into mechanical energy by taking heat from a hot reservior and giving it off to a cold reservior in a cyclic process. The work done by the engine is equal to the difference between the heat taken from the hot reservior and the heat given off to the cold reservior.

W = QH - QC

W stands for the work done by the heat engine per cycle. QH and QC stand for the heat taken from the hot reservior per cycle and heat given off to the cold reservior per cycle respectively . The efficiency ( E ) of the engine is equal to the ratio between the output energy and input energy. The input energy is equal to the heat taken off from the hot reservior and the output energy is equal to the work done by the engine. That is E = ( QH - QC ) ⁄ QH

E = 1 - QC ⁄ QH


The Carnot Engine

The Carnot engine is an ideal heat engine with the maximum possible efficiency for an engine that operates between given temperatures for the hot reservior and cold reservior. If TH and TC are the temperatures ( in °K ) of the hot and cold reserviors respectively, then the efficiency ( EC ) of the carnot engine that operates between these temperatures ( or the maximum possible efficiency for a heat engine that operates between these temperatures) is given by

EC = 1 - TC ⁄ TH

If the efficiency of a Carnot engine is to be 100%, the temperature of the cold reservior ( TC ) has to be zero °K which is virtually impossible. This is essentially a statement of the second law of thermodynamics. The second law of thermodynamics states that it is impossible to have a heat engine with a 100% efficiency. In other words, it is impossible to have a heat engine that converts all of the heat energy obtained from the hot reservior to mechanical energy.


Entropy

Entropy ( S ) is a state function used as a measure of the order or disorder of a system. It is defined in such a way that it increases with disorder. Since it is a state function, its change depends only on the entropies of the final and initial states of the system.

ΔS = Sf - Si

Entropy of a system is related with the freedom of movement of the particles comprising the system. For example the liquid state of a system has more entropy than the solid state of a system because the particles of a liquid have more freedom of movement than molecules of a solid do. Similarly, the gas state of a system has more entropy than the liquid state of a system because gas particles have more freedom of movement than particles of liquid.

Since freedom of movement of particles depends on the heat supplied to the system, entropy is related with the amount of heat supplied to a system. Change in entropy is equal to the amount of heat supplied (lost) per a unit temperature ( in °K).

ΔS = Q ⁄ T

Q is amount of heat supplied or lost at a temperature T ( in °K ). The unit of measurement for entropy is J ⁄ °K. In most cases the temperature would change during the process of the supply or loss of heat. In those cases methods of calculas are used to calculate the change in entropy. But during phase changes the temperature remains constant. As a result change in entropy for phase changes can be calculated easily.


The second law of thermodynamics can be stated in terms of the natural tendency of the entropy of a system. The second law of thermodynamics states that the entropy of an isolated system can only increase. In other words the entropy of an isolated system can go only from order to disorder. Since the universe as a whole can be treated as an isolated system, the entropy of the universe can only increase. Or, the universe can go only from order disorder.

Heat flows from high temperature system to a low temperature system because of the second law of thermodynamics. The heats ganed or lost by each system are numerically equal. But the change in entropy which is heat divided by temperature is numerically smaller for the hotter object because of the division by a higher temperature. If the sum of the changes of both entropies is to be positive as called for by the second law of thermodynamics, the change in entropy of the colder system (with bigger change in entropy) should be positive. That is the colder system should gain heat and the hot system should loss heat. In other words, to be consistent with the second law of thermodynamics, heat must flow from a high temperature system to a low temperature system.

The entropy of non-isolated systems may not necessarily increase, because entropy is not the only function that determines the tendency of nature. Two state functions determine the tendency of natural systems. These are entropy and enthalpy ( H ). Enthalpy is essentially the energy of a system ( energy at constant pressure to be exact ). The natural tendency of nature is to decrease its enthalpy and to increase its entropy. An absolute tendency of nature may be obtained by combining these functions into a single function that is called Gibb's function ( G ) or free energy. Free energy of a system is defined to be the difference between enthalpy and the product of temperature and enthropy.

G = H - TS

Nature tends to go in a direction that decreases its free energy. For example if the the free energy of the reactants of a reaction is greater than the free energy of the products, the reaction will take place spontaneously. But if the free energy of the reactants is less than the free energy of the products, the reaction can not take place without the supply of external energy.