Identification of the phase of a fluid using partial derivatives of pressure, volume, and temperatur