with equality holding only in the case of a quasistatic process, i.e. when one takes the system from A to B infinitely slowly (such that all intermediate states are in thermodynamic equilibrium). In contrast to the thermodynamic statement above, the JE remains valid no matter how fast the process happens. The JE states: