First law of thermodynamics states that $$\tag{1} dU=\delta Q + \delta W$$
whereas second law of thermodynamics states that, for a reversible process, $$\tag{2} dS= \frac{\delta Q}{T} $$
I have also seen $(1)$ and $(2)$ expressed in terms of variations, as follows:
$$\tag{3} \Delta U=\Delta Q + \Delta W$$
$$\tag{4} \Delta S= \frac{\Delta Q}{T} $$
In bothy equations $(1)$ and $2$ appears the inexact differential symbol, $\delta$, so I assume that those variables labelled with the $\delta$ need an integrating factor to be solved. However, it seems that the new equations have been achieved simply by performing an integral.
Then,
How are these equations transformed from their differential forms to their integral ones?
Are $(3)$ and $(4)$ as general $(1)$ and $(2)$, or they can be used only under certain conditions?