I have learned 2 different opinions on 'work done ON/BY the system'.
1. When there is compression to the system, then it is work done ON the system and the value is positive. Whereas, when the system undergoes expansion, then it is work done BY the system and the value is negative.
2. When the system undergoes compression, the work done ON the system is positve value. While for the same situation, the work done BY the system is negative value. When the system undergoes expansion, the work done ON the system is negative value. But, the work done BY the system is positive value when the system undergoes expansion.
I am so confusing on it!!!!