I have to integrate $$ \int_S^\ x~dy~dz + y~dz~dx + z~dx~dy\ $$ where '$S$' is the cube of unit length.
I have the solution of the problem which converts this surface integral into a volumetric integral using the gauss divergence theorem, in this way $$ \nabla\cdot F = 1 + 1 + 1 = 3 $$ $$\int_V\ \nabla \cdot F~dV = \int_V3~dV = 3\cdot 1 = 3 $$
From what I have been doing till now is that I used to have a vector on which I applied the gauss divergence theorem where $\hat{i}$,$\hat{j}$ and $\hat{k}$ were defined.
How did they apply $ \nabla \cdot F $ to a scalar? It makes no sense to me.
Thank You