The third Maxwell equation states that $$\nabla \times \mathbf E = -\frac{\partial\mathbf B}{\partial t}.$$
Then I have in my notes: $$\nabla \times (\nabla \times \mathbf E) = -\nabla \times \frac{\partial\mathbf B}{\partial t} \color{red}{=} -\frac{\partial}{\partial t}\nabla \times \mathbf B.$$
I don't understand why it's possible to swap the two operators. What are the conditions that have to be satisfied in order to do so?
Since both $\frac{\partial}{\partial t}$ and $\nabla$ are first-order differential operators (that is, linear operators), the sought condition boils down to the symmetry of second partial derivatives.
Schwarz's theorem is relevant here.
Now, since both $\mathbf E$ and $\mathbf B$ have continuous second partial derivatives, the two linear differential operators can be swapped.