TSny
Science Advisor
Homework Helper
Gold Member
- 14,808
- 4,805
Whether or not you write the first law as ##\Delta U = Q+W## or as ##\Delta U = Q-W## depends on whether you define ##W## as the work done on the system or as the work done by the system. It is OK to write the first law as ##\Delta U = Q + W##, but you need to be clear on the meaning of ##W## when writing the first law this way.Hak said:I made a mistake writing internal energy that way, the plus should be replaced by a minus.
Once you have this cleared up, you can decide if ##W## is positive or negative for the air that is compressed. Then you should be able to deduce from ##\Delta U = Q + W## the sign of ##Q##. From the sign of ##Q## you should be able to conclude whether the air gained heat or lost heat.