Stokes' theorem
For the first term, we substitute from the governing equation, and then apply Stokes' theorem, thus: