Assuming the cube is closed, you can use the divergence theorem:
where is the surface of the cube and is the region bounded by .
We have
so the flux is 0.
8.3m questions
11.0m answers