Question: what is the relationship between heat work and internal energy?
Answer: Positive (negative) work is done by a thermodynamic system when it expands (contracts) under an external pressure. Heat is the energy transferred between two objects (or two parts of a system) because of a temperature difference. Internal energy of a thermodynamic system is its total mechanical energy.