Therefore, the internal energy of an ideal gas depends solely on its temperature (and the number of gas particles): U = U ( N , T ) . It is not dependent on other thermodynamic quantities such as pressure or density.