show that the internal energy of a an ideal gas and b an incompressible substance is a function of temperature only u u t

Show that the internal energy of (a) an ideal gas and (b) an incompressible substance is a function of temperature only,

u = u ( T ) .