Let $A$ be a plane area bounded by a curve $\partial A$. Then, is
$$ \iint_A \nabla f\, \textrm{d}x \textrm{d}y = \oint_{\partial A} f\ \hat{\mathbf{n}}\ dl $$
where $f=f(x,y)$ and $\mathbf{\hat n}$ is the outward unit normal?
Let $A$ be a plane area bounded by a curve $\partial A$. Then, is
$$ \iint_A \nabla f\, \textrm{d}x \textrm{d}y = \oint_{\partial A} f\ \hat{\mathbf{n}}\ dl $$
where $f=f(x,y)$ and $\mathbf{\hat n}$ is the outward unit normal?
Under the assumptions for the Divergence Theorem to apply, we have
$$\iint_A \nabla \cdot \vec F\,dx\,dy=\oint_{\partial A} \vec F\cdot \hat n\, d\ell$$
Now, let $\vec F=\hat x_i f$. Then, we have
$$\iint_A \frac{\partial f}{\partial x_i}\,dx\,dy=\oint_{\partial A}f\,(\hat x_i\cdot \hat n)\,d\ell \tag 1$$
Multiplying $(1)$ by $\hat x_i$ and summing over $i$ from $i=1$ to $i=2$ yields
$$\iint_A \nabla f\,dA=\oint_{\partial A} f\,\hat n\,d\ell$$
as was to be shown!