Please help me, a mathematician doing his elective course on Physical Chemistry, out with this very simple question: why does the relation between enthalpy and heat $$\Delta H = \Delta U + p\,\Delta V = \Delta Q$$ hold only under constant pressure? With the integral definition of work, couldn't one just as well write $$\Delta H = \Delta U + \int_{V_i}^{V_f} p(V)\,\mathrm dV = \Delta Q $$ in the case where the pressure is not constant during expansion?
I'm still having some trouble with chemical notation of derivatives/infinitesimals as well as with the physical realities behind the formulae, so there might any number of basic things I'm missing here.
Thanks in advance. Also as this is my first question here, apologies if I did anything wrong or if I missed a similar question.