It is typical for chemistry texts to write the first law as DU=Q+W. It is the same law, of course - the thermodynamic expression of the conservation of energy principle. It is just that W is defined as the work done on the system instead of work done by the system. In the context of physics, the common scenario is one of adding heat to a volume of gas and using the expansion of that gas to do work, as in the pushing down of a piston in an internal combustion engine. In the context of chemical reactions and process, it may be more common to deal with situations where work is done on the system rather than by it.