THERMODYNAMICS • SECOND LAW AND ENTROPY

Entropy Change: Ideal Gases — Compute entropy change for ideal gases (using property relations)

Derive and apply the Tds relations to quantify entropy changes in ideal gas processes.

Historical Context & Motivation

The concept of entropy arose from efforts to understand why heat engines could never achieve perfect efficiency. In the early nineteenth century, engineers and physicists grappled with a fundamental asymmetry in nature: mechanical work could be fully converted into heat, yet heat could never be fully converted back into work. This observation, formalized through the Second Law of Thermodynamics, demanded a new state property—entropy—to quantify the irreversibility inherent in real processes. Understanding how entropy changes for ideal gases became particularly important because many engineering working fluids (air, combustion products, refrigerants at low density) behave approximately as ideal gases under common operating conditions.

1824
Carnot's Reflections
Sadi Carnot publishes Réflexions sur la puissance motrice du feu, establishing that no engine can surpass the efficiency of a reversible cycle operating between two thermal reservoirs—an insight that implicitly requires a quantity like entropy.
1850
Clausius Formalizes the Second Law
Rudolf Clausius states that heat cannot spontaneously flow from a cold body to a hot body, and later introduces the integral ∮ δQ/T ≤ 0 for cyclic processes, laying the mathematical groundwork for entropy.
1865
Entropy Named
Clausius coins the term 'entropy' (from the Greek τροπή, meaning transformation), defining it as a state property via dS = δQrev / T.
1870s
Gibbs and the Property Relations
J. Willard Gibbs develops the fundamental thermodynamic relations (Tds equations), connecting entropy changes to measurable properties like temperature, pressure, and volume—making entropy calculations practical for ideal gases.
1900s–Present
Engineering Applications
Entropy-change formulas for ideal gases become central to the design and analysis of gas turbines, jet engines, compressors, and refrigeration cycles, underpinning modern aerospace and power engineering.

The central question this lesson addresses is: Given two equilibrium states of an ideal gas, how do we compute the entropy change Δs using only measurable thermodynamic properties? Because entropy is a state property, the answer depends solely on the endpoints—not on the process path—and the derivation exploits the ideal gas equation of state together with the Tds relations.

Core Principles & Definitions

Before deriving the entropy-change formulas, several foundational ideas must be firmly in place. The calculation rests on the interplay between the ideal gas law, the Tds relations (also called the Gibbs equations), and the definition of entropy as a state function. Understanding why entropy is path-independent is essential: it means we can always choose a convenient reversible path to evaluate Δs, regardless of whether the actual process was irreversible.

1

Entropy Is a State Property

Entropy depends only on the current thermodynamic state. The change Δs = s₂ − s₁ is independent of the process connecting states 1 and 2. This permits us to choose any convenient reversible path for the calculation.
2

Ideal Gas Equation of State

Pv = RT relates pressure P, specific volume v, and temperature T through the specific gas constant R = R̄/M. This simple algebraic relationship is the key to eliminating one variable when integrating the Tds equations.
3

Tds Relations (Gibbs Equations)

Two fundamental differential relations—Tds = du + Pdv and Tds = dh − vdP—combine the first and second laws. They are valid for all simple compressible substances, not only ideal gases.
4

Specific Heats cₚ and cᵥ

For an ideal gas, internal energy u depends only on T, so du = cᵥ dT. Similarly, enthalpy h depends only on T, giving dh = cₚ dT. The relation cₚ − cᵥ = R always holds for ideal gases.
5

Constant vs. Variable Specific Heats

When temperature variation is moderate, cₚ and cᵥ may be treated as constants (cold-air-standard). For large temperature swings, variable specific heats require tabulated values of s°(T), the standard-state entropy function.
KEY TAKEAWAY
Think of entropy like elevation on a topographic map. No matter which trail you hike between two points, the elevation difference is the same. Similarly, Δs between two states of an ideal gas is fixed by the endpoints (T, P, v) regardless of whether you got there via an adiabatic throttle, a polytropic compression, or any other path. The Tds relations give us a 'surveyor's formula' that measures this elevation change using temperature and pressure (or volume) coordinates alone.

Visual Explanation — The T–s Diagram

The T–s diagram is one of the most powerful graphical tools in classical thermodynamics. For an ideal gas, lines of constant pressure (isobars) and constant volume (isochores) appear as curves whose spacing encodes information about entropy changes. On this diagram, the area beneath a reversible process curve equals the heat transfer per unit mass, and the vertical separation between isobars at a given entropy quantifies the temperature rise associated with a pressure increase.

The T–s diagram shows two isobars (P₁ in violet, P₂ in pink) curving upward with increasing entropy. The dashed amber curve represents a constant-volume line. States 1 and 2 are connected by a general process (dashed cyan), and the shaded area beneath the curve equals the reversible heat transfer qrev. Note that higher-pressure isobars lie above lower-pressure ones at the same entropy, confirming that compression at constant s raises T.

Several features of the diagram deserve attention. First, the isobars diverge as entropy increases, meaning that the entropy difference between two pressures grows with temperature—a direct consequence of the logarithmic terms in the entropy-change formulas. Second, the slope of any isobar at a point is (∂T/∂s)P = T/cp, so the curve is always concave upward for a substance with positive cp. Finally, an isentropic process (Δs = 0) is a vertical line on this diagram, making it easy to visualize the ideal behavior of compressors and turbines.

Mathematical Framework — Deriving Δs for Ideal Gases

The derivation begins with the two Tds relations, which are exact differential expressions valid for any simple compressible substance. By substituting the ideal gas relations du = cv dT, dh = cp dT, and Pv = RT, we obtain two equivalent entropy-change expressions for an ideal gas. Each form is useful depending on which pair of state variables is most convenient.

First Tds Relation (T, v form)

Starting from Tds = du + Pdv and substituting du = cv dT and P = RT/v, we divide both sides by T to isolate ds:

ENTROPY CHANGE — T, v FORM
ds = cᵥ (dT / T) + R (dv / v)
Integrating between states 1 and 2 with constant specific heats yields: s₂ − s₁ = cᵥ ln(T₂/T₁) + R ln(v₂/v₁).

Second Tds Relation (T, P form)

Starting from Tds = dh − vdP and substituting dh = cp dT and v = RT/P:

ENTROPY CHANGE — T, P FORM
ds = cₚ (dT / T) − R (dP / P)
Integrating with constant specific heats: s₂ − s₁ = cₚ ln(T₂/T₁) − R ln(P₂/P₁). This is often the most frequently used form in engineering applications.

Variable Specific Heats — The s°(T) Function

When temperature changes are large (e.g., across a combustion chamber), treating cp as constant introduces significant error. In this case, we define the standard-state entropy function s°(T) as the integral of cp(T)/T from a reference temperature to T at a reference pressure (typically 1 atm). The entropy change then becomes:

VARIABLE SPECIFIC HEATS — USING s° TABLES
s₂ − s₁ = s°(T₂) − s°(T₁) − R ln(P₂/P₁)
Here s°(T) = ∫T_refT [cₚ(T′)/T′] dT′ is tabulated in standard air tables. Values of s° are looked up; no integration is performed by hand.
⚠️ Sign Convention Reminder
A positive Δs indicates the entropy of the gas has increased (consistent with heat addition or irreversibilities). A negative Δs indicates entropy has decreased (consistent with heat rejection). For an isentropic process, set Δs = 0 to recover the familiar isentropic relations: T₂/T₁ = (P₂/P₁)(k−1)/k and T₂/T₁ = (v₁/v₂)k−1, where k = cₚ/cᵥ.

Detailed Breakdown — Forms and Special Cases

The two general entropy-change formulas can be specialized for common ideal gas processes. Recognizing these special cases accelerates problem-solving and deepens physical intuition. The diagram below maps the three equivalent general forms and shows how each reduces when one thermodynamic variable is held constant.

The chart organizes the three general entropy-change forms (T–v, T–P, and P–v) and their reductions for isothermal, isochoric, isobaric, and isentropic processes. The bottom box shows the variable-specific-heat approach using s°(T) tables.
Summary of entropy-change expressions for common ideal gas processes (constant specific heats)
ProcessConstraintΔs ExpressionPhysical Meaning
IsothermalT = constR ln(v₂/v₁) = −R ln(P₂/P₁)Entropy change driven entirely by volume (or pressure) change
Isochoricv = constcᵥ ln(T₂/T₁)No work exchange; entropy reflects heat addition at constant volume
IsobaricP = constcₚ ln(T₂/T₁)Heat exchange includes both Δu and boundary work; uses cₚ > cᵥ
IsentropicΔs = 00 (by definition)Reversible and adiabatic; T, P, v linked by k = cₚ/cᵥ
PolytropicPvⁿ = constcᵥ(n − k)/(n − 1) × ln(T₂/T₁)General family; n = 1 → isothermal, n = k → isentropic

Worked Example — Entropy Change in a Compressor

Air enters a steady-flow compressor at T₁ = 300 K and P₁ = 100 kPa, and exits at T₂ = 550 K and P₂ = 600 kPa. Treating air as an ideal gas with constant specific heats (cp = 1.005 kJ/(kg·K), R = 0.287 kJ/(kg·K)), compute the specific entropy change Δs = s₂ − s₁.

Compressor Entropy Change (Constant cₚ)
1
Step 1 — Identify the appropriate formulaWe know T and P at both states, so the T–P form is most convenient: Δs = cp ln(T₂/T₁) − R ln(P₂/P₁).
2
Step 2 — Compute the temperature ratio termcp ln(T₂/T₁) = 1.005 × ln(550/300) = 1.005 × ln(1.8333) = 1.005 × 0.6061 = 0.6091 kJ/(kg·K).
Temperature term: +0.6091 kJ/(kg·K)
3
Step 3 — Compute the pressure ratio termR ln(P₂/P₁) = 0.287 × ln(600/100) = 0.287 × ln(6) = 0.287 × 1.7918 = 0.5142 kJ/(kg·K). Note the negative sign in the formula, so this contributes −0.5142.
Pressure term: −0.5142 kJ/(kg·K)
4
Step 4 — Sum to find ΔsΔs = 0.6091 − 0.5142 = 0.0949 kJ/(kg·K).
Δs = +0.0949 kJ/(kg·K)
5
Step 5 — Interpret the resultThe positive Δs indicates entropy generation, which is expected for a real (irreversible) compressor. If the process were isentropic (Δs = 0), the exit temperature would be lower: T₂,s = 300 × (600/100)(k−1)/k = 300 × 60.2857 ≈ 500.6 K. The actual exit temperature (550 K) exceeds this, confirming irreversibility and positive entropy production.

Constant vs. Variable Specific Heats — Strengths & Limitations

The choice between the constant-specific-heat (also called cold-air-standard) assumption and the variable-specific-heat (exact) approach is one of the most important practical decisions in ideal gas entropy calculations. The following comparison highlights when each method is appropriate and the magnitude of error introduced by the simpler approach.

Comparison of constant vs. variable specific heat approaches
FeatureConstant cₚ, cᵥVariable cₚ(T) — s° Tables
FormulaΔs = cₚ ln(T₂/T₁) − R ln(P₂/P₁)Δs = s°(T₂) − s°(T₁) − R ln(P₂/P₁)
Data neededSingle value of cₚ (or cᵥ and R)Tabulated s°(T) at each temperature
AccuracyGood for ΔT < 200 K near 300 K; errors grow with temperature rangeExact for ideal gases; accounts for molecular vibration modes
Ease of useAlgebraically simple; good for quick estimates and examsRequires table look-up or polynomial fits; standard in industry
Typical applicationHVAC systems, moderate-temperature compressors, classroom exercisesGas turbines, combustion analysis, rocket nozzles, precision cycle analysis
Error exampleFor air 300→1500 K: ≈ 5–10% error in ΔsNegligible (limited only by table resolution)
KEY TAKEAWAY
The constant-cₚ formulas are like using a flat-Earth approximation in navigation: perfectly adequate for short distances (small ΔT), but increasingly inaccurate over long hauls (large ΔT). The s°(T) tables act like a proper geodesic calculation—more effort to use, but they account for the curvature (temperature-dependence) of cₚ. In professional engineering practice, variable specific heats are the default; constant specific heats are reserved for quick checks and conceptual reasoning.

Connection to Advanced Theory — Real Gases and Exergy

The ideal gas entropy relations are a stepping stone to more general frameworks. When intermolecular forces and finite molecular volume matter—high pressures, low temperatures, or near the critical point—the ideal gas model breaks down and departure functions or equations of state (van der Waals, Redlich-Kwong, Peng-Robinson) must be used. Additionally, entropy changes feed directly into exergy (availability) analysis, which quantifies the maximum useful work obtainable from a system interacting with a specified environment.

Ideal gas entropy methods vs. real gas / advanced approaches
AspectIdeal Gas Δs (This Lesson)Real Gas / Advanced
Equation of StatePv = RTCubic EOS (e.g., P = RT/(v−b) − a/v²) or generalized correlations
Entropy CalculationClosed-form logarithmic expressionsΔs = Δsⁱᵍ + (s − sⁱᵍ)₂ − (s − sⁱᵍ)₁ using departure functions or tables
Phase changesNot applicable (single phase assumed)Δs includes latent heat contribution: Δs_fg = h_fg / T_sat
Exergy / Availabilityψ = (h − h₀) − T₀(s − s₀); Δs used directlySame framework, but s computed from real-substance tables or software
Entropy generationS_gen = Δs_sys + Δs_surr ≥ 0Identical inequality; more complex property evaluation

In subsequent coursework—particularly in thermodynamics of mixtures and chemical equilibrium—the ideal gas entropy-change formula extends to mixtures via Gibbs' theorem (each component contributes as if it alone occupied the total volume at the mixture temperature). The entropy of mixing for ideal gases is always positive, reflecting the irreversibility of spontaneous diffusion. Mastering the single-component entropy-change formulas in this lesson builds the foundation for all these extensions.

Practice Problems

PROBLEM 1CONCEPTUAL
An ideal gas undergoes a free expansion (unresisted expansion into an evacuated space) from volume V to 2V at constant temperature. Is the entropy change of the gas positive, negative, or zero? Justify your answer using the appropriate formula.
PROBLEM 2BASIC CALCULATION
Nitrogen (N₂, M = 28 kg/kmol) is heated at constant pressure from 350 K to 700 K. Using constant specific heats with cp = 1.039 kJ/(kg·K), compute the specific entropy change Δs.
PROBLEM 3INTERMEDIATE
Air (R = 0.287 kJ/(kg·K), cp = 1.005 kJ/(kg·K)) is compressed from state 1 (T₁ = 290 K, P₁ = 95 kPa) to state 2 (T₂ = 480 K, P₂ = 800 kPa). (a) Compute Δs using constant specific heats. (b) Determine whether the process is possible in an adiabatic device.
PROBLEM 4APPLIED
In a gas turbine engine, air enters the compressor at 300 K and 100 kPa and exits at 600 kPa. The isentropic efficiency of the compressor is ηc = 82%. Using constant specific heats (cp = 1.005 kJ/(kg·K), k = 1.4, R = 0.287 kJ/(kg·K)), find: (a) the isentropic exit temperature T2s, (b) the actual exit temperature T₂, and (c) the entropy change Δs.
PROBLEM 5CRITICAL THINKING
Starting from the T–P form of the entropy change equation, prove that for a reversible adiabatic (isentropic) process of an ideal gas with constant specific heats, T × P−(k−1)/k = constant. Then discuss what happens to this relationship when specific heats are temperature-dependent.

Lesson Summary

The entropy change of an ideal gas between two equilibrium states is computed using the Tds relations combined with the ideal gas equation of state. Two primary forms emerge: the T–v form (Δs = cᵥ ln(T₂/T₁) + R ln(v₂/v₁)) and the T–P form (Δs = cₚ ln(T₂/T₁) − R ln(P₂/P₁)). Because entropy is a state function, these expressions depend only on the initial and final states, not the process path. For moderate temperature ranges, constant specific heats yield simple logarithmic formulas; for large temperature swings, the variable specific heat method using tabulated s°(T) values provides exact results.

These formulas underpin the analysis of virtually every gas-phase device in engineering: compressors, turbines, nozzles, and heat exchangers. Setting Δs = 0 recovers the isentropic relations that define ideal device performance, while positive Δs quantifies the entropy generated by irreversibilities. Mastery of these relations prepares you for exergy analysis, cycle optimization, and real-gas corrections encountered in advanced thermodynamics courses.

Varsity Tutors • Thermodynamics • Entropy Change: Ideal Gases