Background:
Let $\vec{V} : \mathbb{R}^n \to \mathbb{R}^n$ be treated as a vector field, $V_i$ denote the corresponding scalar coordinate functions $\mathbb{R}^n \to \mathbb{R}$, and then if these partial derivatives exist define $\operatorname{div}(\vec{V}) = \sum_{i=1}^n \partial_{x_i} V_i$. For the sake of simplicity below feel free to assume $n=2$.
Either by first proving the divergence theorem and then deriving this as a consequence, or first proving this (and then deriving the divergence theorem from it) something to the effect of the following is stated in many sources:
- "the divergence at a point is equal to the limit of the ratio of the flux of $\vec{V}$ through the boundary of an enclosing region as the volume of that region approaches zero", and
- "it doesn't matter what the precise sequence of enclosing regions are, as long as their volumes approach zero".
Questions:
Is it necessary, but not sufficient, for the volumes of the enclosing regions to approach zero?
Consider for example enclosing regions for which the diameters (maximum distance between any two points) do not approach zero even as the volumes approaches zero -- presumably such regions could continue to "catch flux away from the point of interest" (via "a long, skinny part") even as the volumes technically approach zero.
Does $\vec{V}$ need to be continuously differentiable? (Equivalently totally/Frechet differentiable with continuous partial derivatives?)
Or does it suffice merely to be totally differentiable? Gateaux differentiable? Or even only the $\partial_{x_i} V_i$ need to exist and not necessarily be continuous (which would suffice for the divergence as defined above and in most sources to exist)?
Additional context:
To the extent that this result is equivalent to the divergence theorem (but is it equivalent, or is one stronger than the other?), the regularity conditions needed of $\vec{V}$ for the divergence theorem would suffice to answer the second question.
However the conditions of the divergence theorem of course would not address the first question about regularity conditions on the limiting sequence of enclosing regions.
In the case of $n=2$ I have tried to prove the result using square contours parallel to the $x$ and $y$ axes, centered at the point in question, and with area $\epsilon^2$ as $\epsilon \to 0$. I haven't been able to make the proof work even assuming that $\vec{V}$ is totally differentiable, so I suspect that the continuous differentiability assumption is necessary (although I am bad at proofs).
I am also not familiar with many examples of totally differentiable functions that aren't also continuously differentiable, so am not sure what to check for potential counterexamples. I suspect that for the Gateaux differentable vector field $\vec{V}(x,y) = |y|$ that the limit of the flux surrounding $(x_0,0)$ depends on the shape of the enclosing contour but haven't tried yet to prove or disprove it. (Because I'm more interested in the totally differentiable case.)
In Kreyszig, Advanced Engineering Mathematics, in the statement of the divergence theorem for $n=3$ (chapter 10.7) it is assumed that $\vec{V}$ is continuously differentiable (in order to allow turning a multiple integral of one of the partial derivatives into an iterated integral inside of the proof). In formula (2) of chapter 10.8 of the same book, the result about "divergence = flux density" is stated (for $n=3$) with the requirement that the diameters of the enclosing regions approach zero, not merely that their volumes approach zero.
When $n=1$, the analogous statement that the derivative equals the limit of the difference quotient only requires the function in question to be differentiable, not necessarily continuously differentiable. So it would be interesting to me if for $n \ge 2$ suddenly additional regularity assumptions (beyond being totally differentiable) are needed.
This question is related but the answers to that question do not address what is asked here: Conditions for existence of divergence of a vector field Specifically I already understand the distinction between Gateaux differentiability, Frechet differentiability, and continuous differentiability.
The comments on that question do seem to strongly suggest (if not outright state) that continuous differentiability is not only sufficient, but necessary. However, no explicit counterexamples of a totally differentiable but not continuously differentiable vector field for which the result fails are given. Moreover, the discussion for that question does not address the concern about "diameters approaching zero" vs. "merely volumes approaching zero" that are the first part of this question.