Consider the cube with vertices: Let this cube be oriented with outward pointing normal vectors. Compute the flux of the field across the surface of the cube.
You will need to compute: where is the cube above.
One way to proceed is to break the integral above into different integrals, one for each face of the cube.
Start by considering the top face of the cube, call it . In this case .
Here .
Moreover on this side, .
The calculations for the other five sides are similar.