An ideal gas is continuously being pumped into the container. Therefore, the number of moles, n are continuously increasing. In a certain interval,Pressure,P2​ = 2P1​ n2​=2n1​ Thus, internal energy, U=nCv​T  will double as the number of moles get doubled.