Don't forget to check for the necessary measurability & integrability of the sections (f(a, y), f(x, b)) before switching the order: https://en.wikipedia.org/wiki/Fubini%27s_theorem?useskin=vec....