To find the change in internal energy during the compression of a spring, we need to apply the first law of thermodynamics. The first law is mathematically given by the formula:
\(\Delta U = Q - W\)
where:
In this context:
Since the work is done on the system, it is considered positive, and since the heat is lost to the surroundings, it is considered a negative value. Therefore, substituting these values into the equation gives:
\(\Delta U = -2\,kJ - 10\,kJ\)
\(\Delta U = -2 -(-10)\)
Upon calculating:
\(\Delta U = 8\,kJ\)
Therefore, the change in internal energy is 8 kJ. This matches the correct answer option, which is 8.