Let $A$ be open in $\mathbb{R}^2$; let $f:A\rightarrow\mathbb{R}$ be of class $C^2$. Let $Q$ be a rectangle contained in $A$.
(a) Use Fubini's theorem and the fundamental theorem of calculus to show that $$\int_QD_2D_1f=\int_QD_1D_2f.$$
(b) Give a proof that $D_2D_1f(\textbf{x})=D_1D_2f(\textbf{x})$ for each $\textbf{x}\in A$.
I'm quite confused about this exercise. Shouldn't (b) come first before (a)? If we know $D_2D_1f(\textbf{x})=D_1D_2f(\textbf{x})$ for each $\textbf{x}\in A$, then certainly it also holds for each $\textbf{x}\in Q$, and the two integrals in part (a) must be equal.
Also, in part (a), I don't see how to apply the two theorems here. The fundamental theorem of calculus is for one variable. Fubini needs the assumption that the integral over $Q$ exists in the first place, and then states that you can integrate over direction $y$ (or find the lower/upper integrals) and then integrate over direction $x$.