Exergy is the maximum useful work obtainable from a system reaching equilibrium with surroundings: Ex = (H - H₀) - T₀(S - S₀) + (KE + PE). Unlike energy which is conserved, exergy is destroyed by irreversibilities: Ex_destroyed = T₀*S_gen. Exergy balance pinpoints where efficiency is lost and guides design improvements to power cycles, refrigerators, and industrial processes.
From your second-law studies you know that entropy is generated by every real, irreversible process — friction, heat transfer across a temperature difference, unrestrained expansion. But entropy generation alone doesn't tell you how much work you've wasted. Exergy (also called availability) answers that question directly: it is the maximum useful work extractable from a system as it comes to equilibrium with its surroundings (the dead state), characterized by T₀ and P₀. Anything the system can do that the surroundings can't "undo" is exergy; anything the surroundings could always supply for free (e.g., pushing against atmospheric pressure) is not.
The exergy of a flowing stream is Ex = (H − H₀) − T₀(S − S₀) + KE + PE. The term (H − H₀) represents the enthalpy the stream carries above the dead state — the potential to do flow work. The term −T₀(S − S₀) is the penalty: higher entropy relative to the dead state means less ability to do work. This is exactly the Carnot logic you already know: a heat source at T delivers less work per unit of heat as T approaches T₀, because the Carnot efficiency η = 1 − T₀/T shrinks. The exergy formula generalizes that logic to any stream or system state.
The crucial connection to your second-law prerequisite is the Gouy-Stodola theorem: exergy destroyed equals T₀ times the entropy generated: Ex_destroyed = T₀ · Ṡ_gen. Every source of irreversibility you learned to quantify with entropy generation — heat exchangers, turbines, mixing — now has a direct work cost. A heat exchanger that generates 2 W/K of entropy at T₀ = 300 K destroys 600 W of work potential, even if it moves the right amount of energy. This makes exergy analysis a practical diagnostic: it converts entropy generation (which has no units of work) into destroyed work potential (in watts or joules), making different types of inefficiency directly comparable.
To perform an exergy balance on a control volume, you account for exergy entering (with mass flows and heat transfers), exergy leaving, and exergy destroyed. For a heat transfer Q̇ at temperature T, the exergy transferred is Q̇(1 − T₀/T) — the Carnot-factor-weighted portion. For a Rankine turbine, you can now split losses into three categories: isentropic inefficiency (entropy generated inside the turbine), condenser heat rejection (unavoidable exergy loss to the environment), and auxiliary losses. This decomposition tells you where design improvements will actually help: improving turbine isentropic efficiency recovers the internal destruction, but no improvement in condenser design eliminates the fundamental T₀/T limit on heat rejection.
Exergy efficiency ε = Ex_out/Ex_in (sometimes written as the ratio of exergy gain to exergy cost) provides a second-law analog to first-law efficiency. Unlike first-law efficiency, it reaches 100% only for reversible processes, and values above 100% are impossible. For a power plant, comparing ε across components reveals the biggest opportunities: a combustion chamber often has the largest exergy destruction (mixing fuels at high temperature irreversibly), not the turbine or condenser. This insight — that the biggest thermodynamic loss is often at the flame, not the rotating machinery — could not be reached from energy balances alone, and is the primary reason exergy analysis is used in industrial process design.