The equation ΔU=Q-W is commonly referred to as the first law of thermodynamics.
Where...
"ΔU" represents the change in internal energy of a system.
"Q" represents the sum of all heat transferred in and out of a system.
"W" represents the work done by the system.
The law simply states that energy is not created nor destroyed, it can only be converted from one form to another (such as heat, light, etc..).