this is first law of thermodynamics in which meaning of each term is given as
= change in internal energy
Q = Heat given to the system
W = work done by the system
so here we will have
∆U=Q-W , which means Change in internal energy in a system is equal to heat given added, minus work done by the system. the units for these variables are in joule .