[Physics] Can the internal energy of an ideal gas system increase as temperature decreases

energyideal-gas

If $\Delta U = Q + W $

Then adding $x$ moles of an ideal gas of lower temperature into a system of internal energy $U$ would increase $U$ as the kinetic energies of the molecules of the colder gas would be added? And would this be a change of $+Q$?
Going further, this should therefore increase the temperature as $U\propto$ temperature of an ideal gas?
This is probably wrong as addition of a colder gas makes the overall temperature colder logically but I don't know why…
Another reason for the temperature to increase would be the work done by compression on the original gas molecules due to the input of more molecules?
But this is obviously not the case.

Finally, how does all this tie in with the Ideal Gas Equation? Because an increase of $n$ in $PV=nRT$ should increase $T$ right?

Just wanted a clarification on where my understanding is going wrong…

And what happens if the gas added is warmer or the same temperature as the original gas?

P.S I'm just a 11th grader so please no Quantum mechanics!

Best Answer

Is you are adding gas at constant volume.

Then ,

$$W = P\Delta V + V\Delta P.$$

Since $\Delta V = 0\;_,$

$$W = V\Delta P$$

Then extra gas you put in container increase pressure, increasing Work and hence increasing internal Energy.

$$\Delta U = Q + W = Q + V\Delta P$$

Now, $Q$ here is heat inside system which is a measure of Temperature and not energy of system.

Temperature decreases and hence $Q$ decreases.

Now, $$\Delta U = nC_{V}\Delta T$$

Since $\Delta T$ decreases but $n$ moles inside systems increase which compensate more than decrease in Temperature and hence internal energy of system increases.

Finally, Ideal Gas law

$$PV = nRT$$

As $n$ increases, $T$ decreases and $P$ increases.

Increase in $n$ is more than decrease in $T$ and hence pressure increased.

Try yourself for same Temp.