Delta E = q + w
w is work and q is heat.