The quintessential concept in the application of the laws of thermodynamics is how to derive that useful quantity from the second law. Their derivation depend on what aspects of the material can vary--in other words, a precise description of the experiment that would be performed on the material in which you are interested. The two most famous such quantities are the Gibbs Free Energy and Helmholtz Free energies.
The entropy allows us to define two new extensive thermodynamic variables: the Helmholtz
free energy,
, is the maximum amount of work a system can do a constant volume and temperature;
the Gibbs free energy
is the maximum amount of work a system can do at constant pressure
and temperature.
is a minimum for a closed systems at equilibrium with a fixed temperature
and pressure.
Why define all these different functions--can't we just have one? No, because in practice, systems have different constraints imposed on them, and to understand them we need to find the physical principles that describe their behavior.