It employs the ‘acquisitive convention’,
in which w and q are positive if energy is transferred to the system as work or heat and
are negative if energy is lost from the system. In other words, we view the flow of
energy as work or heat from the system’s perspective.