Lemma (Fubini's theorem)

If $f: [a,b]\times [c,d]\to \C$ is continuous, then $$ \begin{align*} \int_{a}^{b} \left(\int_{c}^{d} f(x,y) \d y\right) \d x = \int_{c}^{d} \left(\int_{a}^{b} f(x,y) \d x\right) \d y. \end{align*} $$

Proof