This theorem states that the total electric flux through any closed surface surrounding a charge, is equal to the net positive charge enclosed by that surface.
Suppose the charges Q1, Q2_ _ _ _Qi, _ _ _ Qn are enclosed by a surface, then the theorem may be expressed mathematically by surface integral as