When gases are compressed or expanded, the relationship between pressure and density depends on the nature of the process.

  • Isothermal process:
  • Isentropic process:

where , which are the specific heats at constant pressure and constant volume. The two specific heats are related by the gas constant, .