I'll assume a generic cube of side length , so that
By the divergence theorem, the flux of
across the boundary of is equivalent to the volume integral of over .
We have
and so the flux is
1.6m questions
2.0m answers