None of the constant terms will result in a nonzero contribution to the flux, so we focus on the x-dependent term only:
The face of the cube located at has an area (and it 鈥渇aces鈥 the +j direction) and has a 鈥渃ontribution鈥 to the flux that is given using equation (1) as:
The face of the cube located at has the same area A (however, this one 鈥渇aces鈥 the 鈥搄 direction) and a contribution to the flux that is given using equation (1) as:
Thus, the net flux is given using equations (a) and (b) as given:
.
According to Gauss鈥檚 law, the net charge contained by the face is given as:
Hence, the value of the charge is .