The first law of thermodynamics states that:
\[
\Delta U = Q - W
\]
Where:
- \( \Delta U \) is the change in internal energy.
- \( Q \) is the heat added to the system.
- \( W \) is the work done by the system.
For an ideal gas undergoing an expansion at constant pressure, the work done is given by:
\[
W = P \Delta V = P (V_2 - V_1)
\]
Now, the heat added at constant pressure is:
\[
Q = n C_p \Delta T
\]
Using the relation for specific heats:
\[
C_p = \gamma C_V
\]
We know the relationship between the specific heat at constant pressure and constant volume. The change in temperature can be calculated from the ideal gas law, where \( V_2 = 3V_1 \), leading to:
\[
\Delta U = n C_V \Delta T = \frac{2PV}{(\gamma - 1)}
\]
Thus, the change in internal energy of the gas is \( \frac{2PV}{(\gamma - 1)} \).