State and derive the perfect or ideal gas equations