GAUSS'S LAW:-
Gauss's law is used to find total electric flux and total electric field due to number of charges enclosed by the surface
EXPLANATION & DERIVATION:-

Consider a closed surface enclosing number of charges
q1, q2, q3,---------
qn randomly distributed inside the surface then electric flux due to charge q1 is