Thermodynamics
Thermodynamics
William Thomson (Lord Kelvin), first to use “thermodynamic” word in his work (1849)
Thermodynamics deals with heat and work - two processes by which a system transacts
energy with its surroundings or with another system.
Thermodynamics is the study of the effects of work, heat, and energy on a system
Thermodynamics is only concerned with macroscopic (large-scale) changes and observations
Study of Thermodynamics
a) Macroscopic Approach = Classical Thermodynamics (does not require
knowledge of the behavior of individual particles)
b) Microscopical Approach = Statistical thermodynamics
Thermodynamics:
• Describes macroscopic properties of equilibrium systems
• Empirical observation.
• Built on four laws
System and surroundings
boundary System: The small part (Quantity of mass or
region in space) of the universe under
consideration.
e.g. a piece of iron, a glass of water, an engine
universe
The system and the surroundings together is called the universe
closed vacuum
bucket of water sealed bottle flask holding hot cup of
coffee
Control Volume Control mass
State of the system
A set of properties that completely describe the condition of the system is known as its
STATE.
At a given state all of the properties are known; changing one property changes the state.
A system at two
different state
Microstate
Position, velocity, momentum, force, etc for N
particles.
N is of the order of 1024 (Say N is infinite!!)
Macrostate
Pressure (P), Volume (V), Temperature (T) and
mass (m), Energy, etc
• Macroscopic Point of View
- concerned with the Gross or Average
Effects of many molecules
• Continuum
• Microscopic Point of View
- Classical and Statistical approach
Most microscopic properties cannot be measured with common instruments nor can be
perceived by human senses
Extensive and intensive Thermodynamic Variables
Any measurable or observable characteristics of the substance when the system remains in
equilibrium is called a PROPERTY or Variable. Ex: Pressure (P), Volume (V), Temperature (T) and
mass (m), Magnetization (M), Electric Resistance, (R), Thermal Conductivity (k), etc.
Thermodynamic Variables
Extensive Intensive
no. of Particles (N)
mass (m) temperature (T)
volume (V) pressure (P)
energy (E) density (ρ = N/V)
entropy (S) chemical potential (μ)
free energy
Mathematically,
PV = N kB T
P = (N/V) kB T
Example
Thermodynamic Equilibrium
EQUILIBRIUM : State of Balance A state where system parameters no longer evolve,
no fluxes of matter or energy through the system
Thermal Equilibrium :
- NO Temperature Gradient throughout the system.
(uniform temperature)
Mechanical Equilibrium :
- NO Pressure Gradient throughout the system.
(uniform pressure).
Phase Equilibrium :
- System having more than 1 phase.
- Mass of each phase is in equilibrium.
Chemical Equilibrium :
- Chemical composition is constant
- NO reaction occurs.
Diffusional equilibrium = equality of chemical potential
(A2,B2)
(State 2)
Property B
(A1,B1)
Path
(State 1) State 1 State 2
Property A
State: Energy (Point Function)
Path: Work or Heat (Path Functions) 16
• Quasi means ‘almost’.
• During a quasi-equilibrium/static process the system remains
practically in equilibrium at all times.
• We study quasi-equilibrium processes because they are easy to
analyze (equations of state apply) and work-producing devices
deliver the most work when they operate on the quasi-equilibrium
process.
Types of Processes
Process (Constant Property)
•Isothermal (T)
•Isobaric (p)
•Isochoric/Isovolumetric (v)
•Isentropic (s)
•Isenthalpic (h)
•Isosteric (concentration)
•Adiabatic (no heat addition or removal)
18
In most of the processes, one thermodynamic property is held constant. Some of
these processes are
PVn = constant
Isobaric (P = const)
Isothermal (T = const)
Isothermal (T = const)
P Adiabatic T
V S
19
Cycle
(A2,B2)
Property B State 2
(A1,B1)
Path
State 1
Property A
• If two blocks (one warmer than the other) are brought into
contact and isolated from their surroundings, they would
interact thermally with changes in observable properties.
• When all changes in observable properties cease, the two
blocks are in thermal equilibrium.
• Temperature is a physical property that determines whether
the two objects are in thermal equilibrium.
Zeroth Law
If A is in thermal equilibrium with B and B is in thermal equilibrium with C
then C will be in thermal equilibrium with A.
In other words, all three systems have the same ‘temperature’.
Zeroth law of thermodynamics: If two bodies are in thermal equilibrium with a
third body, they are also in thermal equilibrium with each other.
Temperature
1. Celsius scale :
• Also Known as Centigrade scale.
• It is divided into 100 parts
• The freezing point of water is 0°C
• Boiling point is 100 °C
2. Fahrenheit scale
• The freezing point of water is 32°F
• The boiling point is 212°F
3. Kelvin scale
• The freezing point of water is 273K
• The boiling point of water is 373K
• This temperature scale is often uses when gases are involved.
• Its zero point(0K) corresponding to -273 °C and referred to as
Absolute zero.
Temperature scales: Fahrenheit, Celsius, Kelvin and Rankine.
Energy can cross the Boundary of the System in two forms : 1. Heat
Heat 2. Work
system
Work
Concept of Work & Heat
Thermodynamics deals with heat and work - two processes by which a system
transacts energy with its surroundings or with another system.
Properties, on the other hand, are Point Functions, and have Exact Differentials,
designated by symbol d.
Path Function : Magnitude depends on the Path followed during the Process, as
well as the End States.
Point Function : Magnitude depends on State only, and not on how the System
approaches that State.
Similarities between HEAT & WORK :
1. Both are recognized at the Boundary of the System, as they cross the Boundary.
Hence both are Boundary Phenomena.
2. System possesses Energy, but neither Heat nor Work.
3. Both are associated with Process, not State. Heat and Work have NO meaning at
a State.
4. Both are Path Functions.
Sign Convention :
Heat Transfer TO a System : + ve
Heat Transfer FROM a System : - ve
Work done BY a System : + ve
Work done ON a System : - ve
Heat
Energy Transfer in from of Heat by 3 ways :
CONVECTION : Transfer of Energy between a solid surface and the adjacent fluid
that is in motion. It involved both, the combined effect of
conduction and fluid motion.
δW = P dV dV = δW (1/ P)
δW = ΣFidXi Conjugate variables
Comment: Exact and inexact differentials
dV = V
1
2 − V1 = V
Pressure
HOWEVER, total Work done during Process 1 – 2 is;
2
State 1
dW = W
1
12 ( NOT W )
Integral of δW is ≠ ( W2 – W1 ).
PdV Work
Area A Let the Piston be moving from
Thermodynamic Equilibrium State 1 (P1, V1)
P 2 V2
P1 V1 to State 2 (P2, V2).
Let the values at any intermediate
Equilibrium State is given by P and V.
State 1 State 2
dW = F * dL = P*A*dL = PdV P1
Quasi-Static
Pressure
Similarly, for Process 1 – 2; we can say that Process Path
P2
V2
W1− 2 = PdV
V1 V1 Volume V
2
Work
P=Const State 1
Isobaric P1
V=Const
Pressure (P)
State 1 State 2 Isochoric
Pressure (P)
W1-2
P2 State 2
Volume (V)
V1 Volume (V) V2
V2 V2
W1− 2 = PdV = P (V2 − V1 ) W1− 2 = PdV = 0
V1
V1
Work in polytropic process
n
PV
PV = P1V1 = P2V2 = C P = 1 n1
n n n
P1
1 PVn = C V
V2
W1− 2 = PdV
Pressure
V1
V2
V − n +1
V2
n dV
= P1V1 n = P1V1
n
n =∞ n =1 W1− 2
2 V1
V − n + 1 V1
P2
( )
1− n 1− n
P V X V2 − P1V1 X V1
n n n
n =3 n =2 PV 1− n 1− n
= 1 1 V2 − V1 = 2 2
1− n 1− n
P1V1 P2
Volume n −1 / n
P1V1 − P2V2
= = 1 −
n −1 n − 1 P1
Work: Ideal gas
V2
State 1
P1 W1− 2 = PdV
PV = C
Pressure
V1
Quasi-Static
P1V1
PV = P1V1 = C P =
n =1 V
State 2 V2
dV V P
W1− 2 = P1V1
P2
= P1V1 ln 2 = P1V1 ln 1
V1
V V1 P2
V1 V2
Volume
38
41
First Law of Thermodynamics and its differential form
δQ – δW = dU
δQ and δW are Inexact differentials
dU is an exact differential
43
Isochoric
or V = Const. T = Const.
isovolumetric
Isothermal
Isobaric
44
P = Const.
First law of Thermodynamics
Process and path
Change in energy of the system between its two states is the same, irrespective
of how this change in state is brought out, but the amount of work and heat transfer will
depend on how the change is made.
First law of đQ = δQ = dU + δW = dU + đW
Thermodynamics
dU = δQ – δW = đQ – đW
48
đW, đQ, dU: a microscopic view
Work: transfer of energy that makes use of the uniform motion of atoms in
the surroundings.
Heat: transfer of energy that makes use of random motion of atoms in the
surroundings.
Internal energy: kinetic energy + potential energy of the system’s
constituent atoms.
Application of First law of thermodynamics to different systems
Isobaric P dU = δQ -PdV
52
Reversible and Irreversible process
A reversible process for a system
-- a process that once having taken place can be reversed and in so doing
leave no change in either system or surroundings.
For transformation/process to be reversible, it is necessary to control
step-by-step evolution of the system. i.e., all the state variables must
be permanently constrained by the operator (they do not vary without
control operator). For such a situation not only system follow a
quasistatic transformation but also it is permanently in equilibrium
with its surroundings.
Unrestrained Expansion
Heat Transfer through a Finite Temperature Difference
Other Factors
– hysteresis effects
– i 2 R loss encountered in
electrical circuits
– ordinary combustion
Reversible and Irreversible process
Reversible process: A process that can be reversed without leaving any trace on
the surroundings.
Irreversible process: A process that is not reversible.
56
Reversible processes deliver the most and consume the least work.
Internally and Externally Reversible Processes
• Internally reversible process: If no irreversibilities occur within the boundaries of
the system during the process.
• Externally reversible: If no irreversibilities occur outside the system boundaries.
• Totally reversible process: It involves no irreversibilities within the system or its
surroundings.
• A totally reversible process involves no heat transfer through a finite temperature
difference, no nonquasi-equilibrium changes, and no friction or other dissipative
effects.
57
57
Recap
Energy is a property and is possessed by the system, whereas heat and work are
boundary phenomena.
Change in energy of the system between its two states is the same, irrespective
of how this change in state is brought out, but the amount of work and heat transfer will
depend on how the change is made.
δQ – δW is same for all process
đQ = δQ = dU + δW = dU + đW
First law of Thermodynamics
dU = δQ – δW = đQ – đW
58
Few examples
Hot cup of coffee cools off when exposed to surrounding.
Heat Energy lost by coffee = Energy gained by Surroundings.
generated in wire.
Room Heater: Heating of a room
by passing Electric Current through
Still, First Law of Thermodynamics is satisfied !
the Resistor.
59
Paddle Wheel mechanism operated by falling mass.
Paddle wheel rotates as mass falls down and stirs the fluid inside the
container.
Decrease in Potential Energy of the mass = Increase in Internal Energy of
the fluid.
Here, First Law of Thermodynamics is satisfied.
Petrol is used as a car drives up a hill, but the fuel level in the gasoline tank cannot be
restored to its original level when the car coasts down the hill.
From these examples, it can be clearly understood that satisfying the First Law of
Processes proceed only in certain direction; but may not in Reverse direction.
60
First Law of Thermodynamics has no restriction on the DIRECTION of a Process to occur.
This inadequacy of the First Law of Thermodynamics; to predict whether the Process
4. It is also used to determine the Theoretical Limits for the performance of the
61
Thermal Energy Reservoir: Hypothetical body with relatively very large Thermal
Energy Capacity ( mass x Sp. Heat ) that can supply or absorb finite amount of Heat
Source
Reservoir that supplies Energy in form of Heat is known as SOURCE.
Heat
Heat
Reservoir that absorbs Energy in form of Heat is known as SINK.
Sink
62
Heat Engines
1. Work can be converted to Heat.
2. However, Converting Heat to Work requires special devices.
These devices are known as Heat Engines. e.g. Gas Turbines, I.C. Engines, Steam Power
Plants, etc.
Characteristics of Heat Engines:
High Temp
Source • They receive the Heat from High-Temp
Reservoir ( i.e. Source ) (e.g. Solar
Qin
Energy, Oil Furnace, Nuclear Reactor,
etc.).
Heat Engine Wnet
• They convert part of this Heat to Work
( Usually in form of rotating shaft ).
Qout
• They reject the remaining Heat to Low-
Temp Reservoir ( i.e. Sink ) (e.g.
65
Part of Heat output that is converted to net Work output, is a measure of performance of
the Heat Engine; and is known as the Thermal efficiency of the Heat Engine.
Worknet,out = QH - QL
Wnet ,out QL
th = =1−
QH QH 66
• Heat Engine must give away some heat to the Low Temperature Reservoir ( i.e. Sink ) to
• Thus, a Heat Engine must exchange Heat with at least TWO Reservoirs for continuous
QL = 0 (or)
67
Refrigerator / heat pump :
High Temp
Source
Low Temp
Sink
Surrounding Air Efficiency of a Refrigerator is expressed in
QH terms of Coefficient of Performance (COP)R.
Condenser Desired Output QL
COPR = =
Re quired Input Wnet ,in
Wnet, in
Expansion First Law of Thermodynamics gives;
Valve Worknet,in = QH - QL
Compressor
QL 1
Evaporator COPR = =
QH − QL QH
QL Q −1
L
Refrigerated Space
Thus, COPR can be > 1
Desired Output QH QH 1
COPHP = = COPHP = =
Re quired Input Wnet ,in QH − QL 1 − QL
Q
H
69
Thus; COPHP = COPR + 1
Second Law of Thermodynamics
Clausius Statement :
Low Temp
Sink
70
Second Law of Thermodynamics
71
Second Law of Thermodynamics
TH TH
QH
Wnet = Q H + QL QL
QH
Wnet = 0
Heat
Engine =
Refrigerator
QL = 0 QL QL Refrigerator
TL TL
72
73
Carnot’s Cycle, Carnot engine & efficiency
Sadi Carnot
• 1796 – 1832
• French Engineer
• Founder of the science of thermodynamics
• First to recognize the relationship between work
and heat
Carnot Engine
• A theoretical engine developed by Sadi Carnot
Wnet ,out QL
th = =1−
QH QH
Carnot Cycle
© 2014 Pearson Education, Inc.
The Reversed Carnot Cycle
The Carnot heat-engine cycle is a totally reversible cycle.
Therefore, all the processes that comprise it can be reversed,
76
in which case it becomes the Carnot refrigeration cycle.
Thermodynamics: An Engineering Approach
Carnot cycle Yunus A. Çengel, Michael A. Boles, McGraw-Hill, 2015
78
Concept of Entropy: Thermodynamic approach
𝒏𝑹𝑻
𝜹𝑸 = 𝑪𝑽 𝒅𝑻 + 𝒏𝑹 𝒅𝑻 − 𝒅𝑷
𝑷
𝒏𝑹𝑻
= (𝑪𝑽 +𝒏𝑹) 𝒅𝑻 + − 𝑷 𝒅𝑷
= 𝒇(𝑻, 𝑷) 𝒅𝑻 + 𝒈 𝑻, 𝑷 𝒅𝑷
𝒏𝑹𝑻
𝒇 𝑻, 𝑷 = 𝑪𝑽 + 𝒏𝑹 𝐚𝐧𝐝 𝒈 𝑻, 𝑷 = − 𝑷
𝜕𝑓 𝜕𝑔 𝒏𝑹
=0 and =−
𝜕𝑃 𝜕𝑇 𝑷
𝜕𝑓 𝜕𝑔
∴ ≠
𝜕𝑃 𝜕𝑇
Hence, 𝑸 is not exact differential and is therefore not a state function of the state
variables P and T.
i.e., Q is not a property of the system.
𝜕𝑓 𝜕𝑔
=0 and = 0
𝜕𝑃 𝜕𝑇
𝜕𝑓 𝜕𝑔
∴ =
𝜕𝑃 𝜕𝑇
• 100% efficiency can be achieved only if the cold reservoir is at absolute zero, which is
impossible.
• Real engines have some frictional losses. at best they achieve 60-80% of the Carnot value of
efficiency. 84
Entropy: Statistical Mechanics view
Heaviside step function
0 𝑓𝑜𝑟 𝑥 < 0
𝜃 𝑥 =
1 𝑓𝑜𝑟 𝑥 > 0
Discontinuous at x = 0
−𝜃 −𝑥 𝑓𝑜𝑟𝜆 < 0
𝜃 𝜆𝑥 =
𝜃 𝑥 𝑓𝑜𝑟𝜆 > 0
using
Connecting both entropies
J/K
For an isolated system of N ideal gas molecules with energy E and confined to
volume V, the number of microstates is given by
Earlier case
using
Let us say we start with the shutter out. First insert the shutter; next
remove the shutter. We get back to the initial state. We have reversibility.
Hence entropy of mixing should be zero. This is called Gibbs paradox.
Clausius entropy is deeply rooted in thermal phenomenon : entropy is heat divided by temperature.
Boltzmann entropy is based on counting of the micro states of a system, thermal or otherwise.
We will see later
Notice
Clausius Inequality
In general,
wherein equality obtains when the process is (quasi - static and) reversible.
Consider a system that undergoes a cyclic process. Since S is property of the system
and since the system returns to its initial state after a cycle, dS = 0. This statement is
true irrespective of whether the cycle is reversible or has one or more segments that are
irreversible.
If the different segments that constitute the cyclic process are all reversible then
where the integral is taken over the cycle. However if the cyclic process contains
one or more irreversible segments, then, the Clausius inequality reads as,
wherein equality obtains if the cyclic process is (quasi static and) reversible.
101
Second Law of Thermodynamics: few remarks
Thermal equilibrium is a similar process—the uniform final state has more disorder than the
separate temperatures in the initial state
Perpetual-motion machine: Any device that violates the first or the second law.
A device that violates the first law (by creating energy) is called a PMM1.
A device that violates the second law is called a PMM2.
First Law of Thermodynamics in terms of S dU = δQ – δW
𝒅𝐔 𝒅𝐕 𝒅𝐇 𝒅𝐏
𝐝𝐒 = +𝐏 𝐝𝐒 = −𝐕
𝐓 𝐓 𝐓 𝐓
𝒅𝐔 𝒅𝐕
𝐝𝐒 = +𝐏
𝐓 𝐓
𝒅𝐔 𝒅𝐓
Since 𝒅𝐕 = 0 for liquids and solids 𝐝𝐒 = =𝐂
𝐓 𝐓
𝒅𝐓 𝑻𝟐
𝑺𝟐 − 𝑺𝟏 = න 𝐂(𝐓) ≅ 𝑪𝑨𝒗𝒈 𝒍𝒏
𝐓 𝑻𝟏
𝑻𝟐 105
𝑺𝟐 − 𝑺𝟏 ≅ 𝑪𝑨𝒗𝒈 𝒍𝒏 𝑻𝟏
= 0 ⟹ 𝑻𝟐 = 𝑻𝟏
Applications of Second Law of Thermodynamics.
Entropy change of ideal gas (PV = RT)
𝒅𝐔 𝒅𝐕 𝒅𝐇 𝒅𝐏
𝐝𝐒 = +𝐏 𝐝𝐒 = −𝐕
𝐓 𝐓 𝐓 𝐓
𝒅𝐔 = 𝑪𝑽 𝒅𝐓 𝒅𝐇 = 𝑪𝑷 𝒅𝐓
P = RT/V V = RT/P
𝒅𝐓 𝒅𝐕 𝒅𝐓 𝒅𝐏
𝐝𝐒 = 𝐂𝐕 +𝐑 𝐝𝐒 = 𝐂𝐏 −𝐑
𝐓 𝐕 𝐓 𝐏
𝟐
𝒅𝐓 𝑽𝟐 𝟐
𝒅𝐓 𝑷𝟐
𝑺𝟐 − 𝑺𝟏 = න 𝐂𝐕 𝐓 + 𝑹 𝒍𝒏 𝑺𝟐 − 𝑺𝟏 = න 𝐂𝐏 𝐓 − 𝑹 𝒍𝒏
𝟏 𝐓 𝑽𝟏 𝐓 𝑷𝟏
𝟏
Exercise Problem: Derive the expression for dS = S2-S1 in terms of P and V 106
CHANGE IN ENTROPY FOR VARIOUS PROCESSES
𝟐
𝒅𝐓 𝑽𝟐
𝑺𝟐 − 𝑺𝟏 = න 𝐂𝐕 𝐓 + 𝑹 𝒍𝒏
𝟏 𝐓 𝑽𝟏
𝟐
𝒅𝐓 𝑻𝟐 𝑷𝟐
𝑺𝟐 − 𝑺𝟏 = න 𝐂𝐕 𝐓 = 𝑪𝒍𝒏 or 𝑺𝟐 − 𝑺𝟏 = 𝑪𝒍𝒏
𝟏 𝐓 𝑻𝟏 𝑷𝟏
107
Constant Pressure Process
𝟐
𝒅𝐓 𝑷𝟐
𝑺𝟐 − 𝑺𝟏 = න 𝐂𝐏 𝐓 − 𝑹 𝒍𝒏
𝟏 𝐓 𝑷𝟏
𝟐
𝒅𝐓 𝑻𝟐 𝑽𝟐
𝑺𝟐 − 𝑺𝟏 = න 𝐂𝐏 𝐓 = 𝑪𝒍𝒏 or 𝑺𝟐 − 𝑺𝟏 = 𝑪𝒍𝒏
𝟏 𝐓 𝑻𝟏 𝑽𝟏
108
Constant Temperature Process
𝟐 𝟐
𝒅𝐓 𝑽𝟐 𝒅𝐓 𝑷𝟐
𝑺𝟐 − 𝑺𝟏 = න 𝐂𝐕 𝐓 + 𝑹 𝒍𝒏 or 𝑺𝟐 − 𝑺𝟏 = න 𝐂𝐏 𝐓 − 𝑹 𝒍𝒏
𝟏 𝐓 𝑽𝟏 𝟏 𝐓 𝑷𝟏
𝑽𝟐
𝒅𝑺 = 𝑺𝟐 − 𝑺𝟏 = 𝑹 𝒍𝒏
𝑽𝟏
𝑽
𝑹𝑻 𝒍𝒏 𝑽𝟐 𝑸
𝟏
𝒅𝑺 = = 109
𝑻 𝑻
Adiabatic Process
Adiabatic process of a system is one in which there is no heat transfer.
Reversible adiabatic
or
isoentropic Process
𝛿𝑄 (𝛾 − 𝑛) 𝑃
dS = = 𝑑𝑉
𝑇 (𝛾 − 1) 𝑇
𝛾 − 𝑛 2𝑃 (𝛾 − 𝑛) 2 𝑅
S2 − S1 = න 𝑑𝑉 = න 𝑑𝑉
𝛾−1 1 𝑇 (𝛾 − 1) 1 𝑉
𝜸−𝒏 𝑽𝟐
𝐒𝟐 − 𝐒𝟏 = 𝑹𝒍𝒏
𝜸−𝟏 𝑽𝟏
111
APPLICATIONS OF ENTROPY PRINCIPLE
When the partition is removed, the two fluids start mixing with each
other. After mixing, it will attain the thermal equilibrium with some final
temperature, Tf .
Note that Tf will be lesser than T1 but greater than T2 (T2 < Tf < T1).
By energy balance,
Subsystem 1 Subsystem 2
This is always positive because the arithmetic mean of any two numbers is always greater
that the geometric mean.
114
• Maximum Work from Two Finite Bodies at Temperatures TH and TL
Work delivered, W = QS - QR
W = CP(TH-Tf )-CP(Tf-TL)=CP(TH+TL-2Tf)
115
116
Third Law of Thermodynamics
• ABSOLUTE ENTROPY
By now it should be clear that entropy is defined only in terms of entropy change in a
system from initial to final state. It is not measured in terms of absolute entropy. To
provide an absolute value for entropy, a zero value of entropy of the system should be
chosen arbitrarily as a standard state. Then, the entropy change is calculated with respect
to this standard state.
For example, consider a system being at state 1. The absolute entropy, ΔS = S1−S0
So, where S1 is entropy of the system at state 1 and S0 is entropy of the system at
standard state denoted by 0.
In this connection, the entropy of a pure crystalline substance is taken as zero at absolute
temperature of zero. This statement is called the third law of thermodynamics. This law
provides an absolute reference point is called as absolute entropy. It is more useful in
thermodynamic analysis of chemical reactions.
118
Third Law of Thermodynamics
2. Vanishing (𝜷)
Thermal expansion coefficient
3. Vanishing Heat Capacity
4. Magnetic cooling: Adiabatic demagnetization
Maxwell’s Demon: breaks second law of thermodynamics
Entropy: Other definitions
Laws of Thermodynamics: Overview
• 0th Law: Defines Temperature (T)
Allows the use of Thermometers!
• 1st Law: Defines Energy & says total Energy is Conserved.
Also Defines
Internal Energy U, Heat Q, and Mechanical Work W
• 2nd Law: Defines Entropy (S)
• 3rd Law: Gives Entropy a
Numerical Value (as T → 0!)
• NOTE! These laws are UNIVERSALLY VALID
for systems at equilibrium &
They can not EVER be circumvented for such systems!
The “Calculus” of Thermodynamics
Overview
• The main focus is
The development of functional property
relationships for simple systems
The relationships developed will be completely
general.
• These relationships are not physical property
models. Instead, they represent practical
constitutive equations specific for each pure
substance or mixture.
• Another major objective is to introduce
techniques for recasting derived
properties and their derivatives into
forms that can be directly evaluated in
terms of primitive properties which are
measurable.
• This objective will be accomplished by
manipulating the
Combined 1st & 2 nd Laws
through various differential calculus techniques
Some Thermodynamic Variables:
Internal Energy = U, Entropy = S
Temperature = T
• Mostly for Gases: (also true for any substance):
External Parameter = V
Generalized Force = p
(V = volume, p = pressure)
• For a General System:
External Parameter = x
Generalized Force = X
Assume that the External Parameter = Volume V in order
to have a specific case to discuss. For systems with another
external parameter x, the infinitesimal work done is đW =
Xdx. In this case, in what follows, replace p by X & dV by
dx.
• For infinitesimal, quasi-static processes:
1st & 2nd Laws of Thermodynamics
1st Law: đQ = dU + pdV
2nd Law: đQ = TdS
The Combined 1st & 2nd Laws
TdS = dU + pdV
• In above relation, there are 5 Variables: T, S, U, p, V
• It can be shown that: Any 3 of these can always be
expressed as functions of any 2 others.
• That is, there are always
2 independent variables & 3 dependent variables.
Which 2 are chosen as independent is arbitrary.
• The number N of possible choices of the 2 independent
variables out of the 5 is N = (5!)/[(2!)(3!)] = 10
• In what follows, we discuss the 4 most common (& useful!)
choices of the 2 independent variables.
A Brief, Pure Math Discussion!!
• Consider 3 variables: x, y, z. Suppose that
we know that x & y are Independent
Variables. Then, It Must Be Possible to
express z as a function of x & y. That is,
There Must Exist a Function:
z z(x,y).
• Calculus Result:
The total differential of z(x,y) is:
dz (∂z/∂x)ydx + (∂z/∂y)xdy (a)
• Suppose that, for these 3 variables: x, y, z,
we take y & z as independent variables
instead of x & y. Then,
There Must be a Function x = x(y,z).
• From calculus, the total differential of x(y,z) is:
dx (∂x/∂y)zdy + (∂x/∂z)ydz (b)
• (a) from the previous slide is:
dz (∂z/∂x)ydx + (∂z/∂y)xdy (a)
• Using (a) & (b) together, the partial derivatives
in (a) & those in (b) can be related to each
other as follows:
• The total differential of x(y,z) is:
dx (∂x/∂y)zdy + (∂x/∂z)ydz (b)
• The total differential of z(x,y) is:
dz (∂z/∂x)ydx + (∂z/∂y)xdy (a)
• Using (a) & (b) together, the partial derivatives in (a)
& those in (b) can be related to each other as follows:
• Suppose we are in a situation where z is constant. In
that case, (a) becomes:
0 (∂z/∂x)ydx + (∂z/∂y)xdy (a')
• Solve (a') for the ratio (dx/dy):
(dx/dy) = - (∂z/∂y)x/(∂z/∂x)y (c)
• The left side of (c) is just (∂x/∂y)z so
(∂x/∂y)z = - (∂z/∂y)x/(∂z/∂x)y
• Consider again the 3 variables: x, y, z, & take x
& y as independent variables.
Then there Must be a Function z = z(x,y)
• The total differential of z is given by:
dz (∂z/∂x)ydx + (∂z/∂y)xdy
• In what follows, we always assume that all
functions are analytic.
So, the 2nd cross derivatives
are equal, such as:
(∂2z/∂x∂y) (∂2z/∂y∂x), etc.
• In what follows we’ll repeatedly use this property.
Mathematics Summary
• Consider a function of 2 independent variables:
f = f(x1,x2).
• It’s exact differential is
df y1dx1 + y2dx2
& by definition:
Or: [∂ (y
2
2)/∂x1∂x2)] [∂ (y
2
1)/∂x2∂x1)]
Some Methods & Useful Math Tools for
Transforming Derivatives
Derivative Inversion
F 1 S = 1
=
y x y F x P T P S T
Triple Product (xyz–1 rule)
F x y = −1 H T P
= −1
x y y F F x T P P H H T
Chain Rule Expansion to Add Another Variable
F F
=
S = S T = C P 1 = 1
y x x y x H
P P
T H P T CP T
Maxwell Reciprocity Relationship
(F x ) y (F y )x
y
=
x x
y
Fxy = Fyx
Pure Math: Jacobian Transformations
• A Jacobian Transformation is often used to
transform from one set of independent
variables to another.
• For functions of 2 variables f(x,y) & g(x,y) it is:
f f
( f , g ) x y y x = f g − f g
( x, y ) g g x y y x y x x y
x y y x
Determinant!
Jacobian Transformations
Have Several Useful Properties
( f , g ) ( g , f )
Transposition =−
( x, y ) ( x, y )
( f , g ) 1
=
Inversion ( x, y ) ( x, y )
( f , g )
Chain Rule ( f , g ) ( f , g ) ( z , w)
=
Expansion ( x, y ) ( z , w ) ( x, y )
• Suppose that we are only interested in the
first partial derivative of a function f(z,g)
with respect to z at constant g:
f ( f , g )
=
z g ( z , g )
• This expression can be simplified using the chain
rule expansion & the inversion property
( f , g )
f = ( x, y )
z g ( z , g )
( x, y )
Properties of the Internal Energy E
dU = TdS – pdV (1)
• First, choose S, V as independent variables:
U U(S,V), so
U
∂U U
∂U
dE =
dU dS + dV (2)
S V V S
• Comparison of (1) & (2) clearly shows that
U
∂U U
∂U
= T and = −p
S V V S
Internal Energy E(S,V)
S, V are independent variables:
• We just showed that
∂U
U ∂U
U
=T = −p (3)
S V V S
• The general result for analytic functions is that
the 2nd cross derivatives are equal:
So: (∂2U/∂S∂V) (∂2U/∂V∂S) (4)
• Putting (3) in (4) gives:
T p Maxwell Relation I!
= −
V S S V
• Instead of (S,V), if (S,p) are taken as
independent variables, its useful to define the
following energy:
H H(S,p) U + pV Enthalpy
• Use the combined 1st & 2nd Laws. Rewrite
them in terms of dH:
dU = TdS – pdV = TdS – [d(pV) – Vdp] or
dH = TdS + Vdp (1)
• But, also:
(2)
• From the previous slide, the combined 1st & 2nd
Laws in terms of differential enthalpy dH are:
dH = TdS + Vdp (1)
and
• Applying the general result for the 2nd cross derivatives:
T V
= Maxwell Relation II!
p S S p
• Instead of (S,V), or (S,p), if (T,V) are taken as
independent variables, its useful to define the
energy:
F F(T,V) U – TS
Helmholtz Free Energy
• Use the combined 1st & 2nd Laws. Rewrite
them in terms of dF:
dU = TdS – pdV = [d(TS) – SdT] – pdV or
dF = -SdT – pdV (1)
• But, also:
dF ≡ (F/T)VdT + (F/V)TdV (2)
• From the previous slide, the combined 1st &
2nd Laws in terms of differential Helmholtz
free energy dF are:
dF = -SdT – pdV (1)
• But, also:
dF ≡ (F/T)VdT + (F/V)TdV (2)
• Comparison of (1) & (2) clearly shows that
(F/T)V ≡ -S and (F/V)T ≡ -p
• Applying the general result for the 2nd cross derivatives:
1. dU = TdS – pdV
Combined 1 st 2. dH = TdS + Vdp
& 2nd Laws 3. dF = - SdT – pdV
4. dG = - SdT + Vdp
Another Summary: Maxwell’s Relations
(a) ΔU = Q + W 1. 2.
(b) ΔS = (Qres/T) T p T V
= − =
V S S V p S S p
(c) H = U + pV
(d) F = U – TS 3. 4.
S p S V
= = −
(e) G = H - TS V T T V p T T p
1. dU = TdS – pdV z z
Mdx + Ndy = dz = dx + dy
2. dH = TdS + Vdp x y y x
3. dF = -SdT - pdV M N
4. dG = -SdT + Vdp =
y x x y
Summary
The 4 Most Common Maxwell Relations:
T P S P
= − =
V S S V V T T V
T V S V
= − =
P S S P P T T P
Maxwell Relations
Maxwell Relations
Maxwell Relations from dU, dF, dH, & dG
Internal T P
= −
Energy V S , N S V , N
Helmholtz S P
=
Free Energy V T , N T V , N
T V
Enthalpy =
P S , N S P , N
Gibbs Free S V
= −
Energy P T , N T P , N
Mathematical Preliminaries and Legendre transforms
and
This means
Similarly, if
Again,
Theorem 3:
Among the variables say, x, y and z any one variable may be considered as a function of the other
two.
Thus, if
Similarly,
By rearranging
In the case of the three thermodynamic variables p, V and T , the following relations holds good
U(S, V, N) and its partial derivatives
I Law of thermodynamics
Chemical Potential
The partial derivative of U with respect to N is called the chemical potential, and is
usually denoted by the symbol µ.
Consider a closed system - a system which is in thermal contact with the surroundings. It
exchanges energy but is closed to exchange of matter.
The system is in thermal equilibrium with its surroundings whence the system and its
surroundings are at the same temperature.
Thus temperature is a natural variable for describing the system.
It is readily seen that the principle of minimum energy and maximum entropy can be
combined into a single principle of minimum free energy.
Spontaneously a system would go to a state with minimum free energy.
We also see that work done on the system is minimum for a reversible process.
The above is a statement of the Second law of thermodynamics in terms of free energy and
energy transacted by work in an isothermal process, not necessarily reversible; equality obtains
when the isothermal process is reversible.
Consider passage from internal energy picture suitable for studying isolated systems to free
energy picture, suitable for closed systems, as a transform :
The basic idea is to view the curve U(S), as an envelop of a set of tangents; each tangent is
specified by its slope and the intercept. The slope is temperature, T and the intercept is Free
energy, F . Thus we go from U versus S picture to F versus T picture
Legendre Transform : S → T and U(S, V, N) → F (T, V,
N)
Take f as U and x as S. We see that the slope m corresponds to temperature,
T . Denote the intercept by F and we have the Legendre transform : S → T and U → F
.
Procedure
• Start with U ≡ U(S, V, N).
• Derive an expression for the partial derivative of U with respect
to S. This partial derivative is a function of S, V and N .
• Equate it to T and invert it to express S ≡ S(T, V, N).
• Replace S by this function in the expression : U(S, V, N) - TS.
• You will get an expression involving only T , V , and N . This is
the desired expression for the free energy F (T, V.N).
Example
Let the fundamental equation of substance be given by
where Θ is a constant.
In the first step, we derive an expression for temperature as a function of S, V and N . We have
In the second step, we invert the above expression and get S as a function of T, V and N
Change in H when the system undergoes a reversible process, equals energy transacted by
heat, or what the chemists call as heat of reaction.
Enthalpy increases when the chemical reaction is endothermic, i.e. when energy enters the
system by heat.
Enthalpy is negative if the process is exothermic, whence energy exits the system by heat.
By taking the partial derivatives of H with respect to S, P and N , we can derive expressions for
T, V and µ. We have,
Example
We have
The above is valid for any value of λ; take λ = 1; we get the theorem for homogeneous functions
discovered by Euler and is given by
• Helmholtz free energy F is a function of T , V and N. Itis an important property of a closed
system; it is an extensive property; F is a first order homogeneous function of V and N .
• Enthalpy is an extensive property of a thermodynamic system; it is a function of S, P and N; it
is a first order homogeneous function of S and N.
• Gibbs’ free energy is a function of T , P , and N ; it is a first order homogeneous function of N;
(c) Enthalpy
Hence,
Let s = S/N denote entropy per particle and v = V/N denote the volume per particle. s and v are
now intensive properties. We can now write the above equation as,
The above is called Gibbs-Duhem relation. It tells us that the three intensive properties T,
P, and µ are not all independent. If you know any two, the third can be obtained.
Maxwell Relations Follow 7th chapter of Callen’s book
Maxwell relations involve partial derivatives of intensive variables taken with respect
to extensive variables.
Maxwell relations are based on the observation that the order with which we take the partial
derivatives does not matter.
or
The partial derivative of F with respect to T is S and the partial derivative of F with respect to
V is P.
Enthalpy H (S,P) or
The partial derivative of H with respect to S as T and the partial derivative of H with respect
to P is V
Third Maxwell Relation
Gibbs Free Energy and Fourth Maxwell Relation
Gibbs Free Energy G(T,P)
or
The partial derivative of G with respect to T is S and the partial derivative of G with respect
to P is V .
H = H (S, P)
F = F (T, V)
U = Internal energy
F = Helmholtz free energy
E = H enthalpy
G =Gibbs free energy
dH
dF
H
I. Isothermal Compression coefficient of thermal volume expansion at
constant pressure
Isothermal
Taking into account the change of V during the
compression process
First Maxwell Relation
II. Adiabatic Compression
using
First Second
The above is called the first energy equation. Note that the right hand side can be calculated
from the equation of state.
It would enable us to gain information about the internal energy.
Applications of First Energy Equation
1. Ideal gas
The internal energy does not depend on
volume. It depends only on temperature.
𝜕𝑆 𝜕𝑆
𝑑𝑆 = 𝑑𝑇 + 𝑑𝑉
𝜕𝑇 𝑉
𝜕𝑉 𝑇
When a phase-change takes place from saturated liquid to saturated vapor, the temperature
remains constant. Therefore,
𝜕𝑆 𝑑𝑆 𝜕𝑆
𝑑𝑆 = 𝑑𝑉 =
𝜕𝑉 𝑇 𝑑𝑉 𝜕𝑉 𝑇
𝜕𝑆 𝜕𝑃
Second Maxwell Relation: =
𝜕𝑉 𝑇 𝜕𝑇 𝑉
𝜕𝑃
𝑑𝑆 = 𝑑𝑉
𝜕𝑇 𝑉
𝜕𝑃
is the slope of the of the saturation curve. Integrating the above equation
𝜕𝑇 𝑉
𝑆𝑔𝑎𝑠 𝑉𝑔𝑎𝑠
𝜕𝑃
න 𝑑𝑆 = න 𝑑𝑉
𝑆𝑙𝑖𝑞𝑢𝑖𝑑 𝜕𝑇 𝑉 𝑉𝑙𝑖𝑞𝑢𝑖𝑑
𝜕𝑃 𝜕𝑃 (𝑆𝑔𝑎𝑠 − 𝑆𝑙𝑖𝑞𝑢𝑖𝑑)
𝑆𝑔𝑎𝑠 − 𝑆𝑙𝑖𝑞𝑢𝑖𝑑 = (𝑉𝑔𝑎𝑠 − 𝑉𝑙𝑖𝑞𝑢𝑖𝑑) =
𝜕𝑇 𝜕𝑇 (𝑉𝑔𝑎𝑠 − 𝑉𝑙𝑖𝑞𝑢𝑖𝑑)
𝜕𝑃 (𝑆𝑔𝑎𝑠 − 𝑆𝑙𝑖𝑞𝑢𝑖𝑑) 𝜕𝑃 𝑑𝑆
= or =
𝜕𝑇 (𝑉𝑔𝑎𝑠 − 𝑉𝑙𝑖𝑞𝑢𝑖𝑑) 𝜕𝑇 𝑑𝑉
Clausius-Clapeyron Equation
VI. CP-CV 𝜕𝑈 𝜕𝑈 𝜕𝑆 𝜕𝑆
𝐶𝑉 = = =𝑇
𝜕𝑇 𝑉
𝜕𝑆 𝑉
𝜕𝑇 𝑉
𝜕𝑇 𝑉
𝜕𝐻 𝜕𝐻 𝜕𝑆 𝜕𝑆
𝐶𝑃 = = =𝑇
𝜕𝑇 𝑃
𝜕𝑆 𝑃
𝜕𝑇 𝑃
𝜕𝑇 𝑃
𝜕𝑆
𝑇
𝜕𝑆 𝜕𝑆 𝐶𝑃 𝜕𝑇 𝑃 𝜕𝑆 𝜕𝑇
𝐶𝑃 − 𝐶𝑉 = 𝑇 − 𝛾= = =
𝜕𝑇 𝜕𝑇 𝐶𝑉 𝑇 𝜕𝑆 𝜕𝑇 𝑃
𝜕𝑆 𝑉
𝑃 𝑉
𝜕𝑇 𝑉
𝜕𝑆 𝜕𝑆 𝜕𝑆 𝜕𝑆 𝜕𝑆 𝜕𝑉
𝑆 ≡ 𝑆(𝑇, 𝑉) 𝑑𝑆 = 𝑑𝑇 + 𝑑𝑉 − =
𝜕𝑇 𝑉
𝜕𝑉 𝑇
𝜕𝑇 𝑃
𝜕𝑇 𝑉
𝜕𝑉 𝑇
𝜕𝑇 𝑃
𝜕𝑆 𝜕𝑃 𝜕𝑆 𝜕𝑆 𝜕𝑃 𝜕𝑉
Second Maxwell Relation: = − =
𝜕𝑉 𝑇 𝜕𝑇 𝑉
𝜕𝑇 𝑃
𝜕𝑇 𝑉
𝜕𝑇 𝑉
𝜕𝑇 𝑃
𝜕𝑃 𝜕𝑉
𝐶𝑃 − 𝐶𝑉 = 𝑇
𝜕𝑇 𝑉
𝜕𝑇 𝑃
𝜕𝑉 𝜕𝑃 𝜕𝑇 𝜕𝑉 𝜕𝑃 𝜕𝑉
= −1 =−
𝜕𝑃 𝑇
𝜕𝑇 𝑉
𝜕𝑉 𝑃 𝜕𝑃 𝜕𝑇 𝜕𝑇
𝑇 𝑉 𝑃
𝜕𝑃 𝜕𝑉 2
𝐶𝑃 − 𝐶𝑉 = 𝑇 𝜕𝑉 𝜕𝑃
𝜕𝑇 𝜕𝑇 𝐶𝑃 − 𝐶𝑉 = −𝑇
𝑉 𝑃 𝜕𝑇 𝑃
𝜕𝑉 𝑇
𝜕𝑉 2 𝜕𝑃
• Since > 0 and < 0, 𝐶𝑃 − 𝐶𝑉 > 0 → 𝑪𝑷 > 𝑪𝑽
𝜕𝑇 𝑃 𝜕𝑉 𝑇
• As 𝑇 → 0, 𝑪𝑷 → 𝑪𝑽 or 𝑪𝑷 = 𝑪𝑽 at absolute zero
𝜕𝑉
• When 𝜕𝑇 = 0, for example, for water at 4 oC when density is maximum or
specific volume is minimum 𝑪𝑷 = 𝑪𝑽
1 𝜕𝑉
𝜅𝑇 = − Isothermal compressibility
𝑉 𝜕𝑃 𝑇 𝜕𝑉
𝜕𝑃 𝜕𝑇 𝑃 𝛽
𝜕𝑉 𝜕𝑃 𝜕𝑇 =− =
= −1 𝜕𝑇 𝜕𝑉 𝜅𝑇
𝜕𝑃 𝜕𝑇 𝜕𝑉 𝑉
𝑇 𝑉 𝑃 𝜕𝑃 𝑇
𝑉𝑇𝛽 2
𝐶𝑃 − 𝐶𝑉 = Mayer relation
𝜅𝑇