Let a charge of q coulombs be placed inside a hollow enclosure as shown in figure:
The flux density D' (considered in the direction of the radius vector d) will be:
=q4ฯd2 Coulombs/ sq.meter or C/m2
and its component D, normal to the surface will be
=q4ฯd2cos ๐ C/m2
where ๐ is the angle between D and D'.
Now, the flux d๐ crossing normally the surface of area dA = D ⤬ area
or dฯ=q4ฯd2cos ฮธ⋅dA coulombs
By definition,
solid angle=surface arearadius
∴ dฯ=dA cos ฮธd2
∴ dฯ=q4ฯ⋅dฯ
or the total flux ๐ , crossing the total surface of the imagined enclosure is
∫dฯ=q4ฯ ∫dฯ
ฯ=q4ฯ×4ฯ
or ฯ=q coulombs
Thus the total electric flux due to a charge at any point in an enclosure is equal to the charge enclosed in that enclosure.
If there are a number of charges +๐₁ , +๐₂ , -๐₃ and +๐₄ placed in an enclosure, the total electric flux due to all the charges will be
๐ = ๐₁ + ๐₂ - ๐₃ + ๐₄
or ๐ = ๐ด๐


