Here the idea of a quasi-equilibrium process is introduced. It’s important to understand that, even though the driving force (say a pressure difference) is infinitesimal, it is enough to move the state of a system very gradually in one direction. Inverting the infinitesimal difference will cause the process to reverse completely (albeit infinitely slowly).