Consider a system with ideal gas only.
External P > internal P. System is compressed.
Initial temp = final temp. Tᵢ = Tf.
What work is done?
PV = nRT.
Pressure is increasing. Volume is decreasing.
1) Work is done on our system, since we are compressing?
2) Work is considered PV work and system energy decreases?