The relationship depends on the gas being compressed. For those gases that can be treated as perfect gases, the perfect gas equations can be used. For those gases that cannot be treated as perfect gases, real gas relationships must be used. For additional information including gas equations see Chapter 2 of "Compressors, Selection and Sizing" by Brown. Also see Chapter 5 for application to centrifugal compressors.