where ΔE is the change in energy, Q is the heat added to the system, and W is the work done on the system.