The electric field at one face of a parallelopiped is uniform over the entire face and is directed out of the face. At the opposite face, the electric field is also uniform over the entire face and is directed into that face (as shown in figure). The two faces in question are inclined at 30o from the horizontal, and (both horizontal) have magnitudes of , respectively. Assuming that no other electric field lines cross the surfaces of the parallelopiped, the net charge contained within is
To find the charge enclosed, we need the flux through the parallelepiped:
So, the total flux is
There must be a net charge (negative) in the parallelepiped since there is a net flux flowing into the surface. Also, there must be an external field, otherwise all lines would point toward the slab.