Mathematical statement of the first law of thermodynamics

The first law of thermodynamics can be mathematically represented as:

ΔU = Q − W

Where ΔU is the change in internal energy of a system, Q is the heat added to the system, and W is the work done by the system. This equation states that the change in internal energy of a system is equal to the heat added to the system minus the work done by the system.