For ideal gases, the internal energy (U) is a function of temperature only.
Energy can be transferred from one body to another through heat, work, or a combination of both. For ideal gases, the internal energy (U) is
where ΔE is the change in energy, Q is the heat added to the system, and W is the work done by the system. For ideal gases