The Gauss’s law is the extension of Faraday’s experiment as described in the previous section.

# Gauss’s Law

Gauss provided a mathematical description of Faraday’s experiment of electric flux, which stated that **electric flux passing through a closed surface is equal to the charge enclosed within that surface**. A +Q coulombs of charge at the inner surface will yield a charge of -Q coulombs on the outer surface.

Let’s take an example of charges Q, enclosed in a closed surface of an arbitrary shape as shown in Fig. 1(a). As the charge enclosed by this surface is Q coulombs, it will also have Q coulombs of flux as well, from our previous understanding. If we take an **infinitely small** surface area **ΔS** on this surface (represented by darker blue shade on Fig. 1(a)), the **ΔS will be a vector quantity** of a plane surface since it will be defined by a specific place and is infinitely small. Moreover, the vector of **flux density** (**D**) will have a value of D_{s}, and this value will change from point to point. The surface ΔS has a unique direction, which is normal to each specific ΔS. Therefore, in mathematical form, the flux from **ΔS** can be defined as follows.

Therefore, the total flux passing through any closed surface will be an integral of **D** from all such infinitely small segments of that surface.

The circle on the integral represents that this integral is applicable to a surface, which is a closed one. Consequently, only one integral with o means it is applicable to a surface and will be requiring two integrals. Since flux is equal to the enclosed charge we can write the following expression (Eq. 1).

The charge in the aforementioned expression can be anything, either a point charge, line charge, surface (sheet) charge, or volume charge. For all of these charge distributions, we can write an expression for Q.

For generalization, we can take volume charge distribution, and substitute the value of Q in Eq. 1.

We can find the charge enclosed in a sphere by considering Fig. 1(b). The flux density from a darker blue surface will be given by following.

At r=a,

The surface of a sphere for r=a is,

Now let’s find the charge enclosed in a cylinder having a height from **z=0** to **z= l** as shown in Fig. 1(c). The flux density from the cylinder would be radially outwards and

**D**would be

**D**. We first find the Q enclosed in the cylinder.

_{ρ}a_{ρ}If we take **Q=ρ _{l}l** we can have the same formula for electric flux density as for this case as we get with

**Coulomb’s law**.

Now if we take two concentric cylinders, where the radius (**ρ**) of the inner cylinder is **ρ=a** and the radius of the outer cylinder is **ρ=b** and are extended to infinity. The outer surface of the cylinder with radius **a** has a charge of **ρ _{s}** (as shown in Fig. 1(d)). From our previous discussion,

and the total charge can be calculated as,

and when we equate two charge distributions, we have,

The two concentric cylinder problem is an example of a **coaxial cable**. Here, if the outer surface of the inner cylinder has a charge of **2πaρl**, the inner surface of the outer cylinder will have a charge of **-2πaρl**. This leads to the conclusion that the outer surface of the outer cylinder will have no charge enclosed as there are cylinders with equal and opposite charges present inside. Similarly, there will be no charge in the inner surface of the inner cylinder.

## Application of Gauss’s law

As an application of Gauss’s law, we can calculate the charge enclosed in a cube in the cartesian coordinate system. A cube has 6 faces, which we will denote by front, back, left, right, top and bottom.

The front side will lie on the y-axis and z-axis and it’s normal to the surface area will lie on the x-axis.

we can calculate the electric flux density by considering it as the rate of change of electric flux as the volume cube gets infinitely small, with **D _{xo}** representing the initial flux density. The electric flux density can be found from the formula below where

**∂D**represents the rate of change of

_{x}/∂x**D**with respect to x.

_{x}Similarly, for backside,

combining **D _{x-front}** and

**D**,

_{x-back}Similarly, we can calculate the charge enclosed for all the other sides.

Therefore, the charge enclosed in a volume is given by Eq. 2.

## Divergence

**The divergence in terms of electric flux density is the flux from a unit volume as the volume goes to zero**. The divergence is a vector operator that operates on vectors but produces a scalar quantity. The divergence of a vector field relates to the extent of that vector field behaving like a source with its flux flowing outward from an infinitely small volume. The **divergence **is written by **div** and it is a **dot product** of vector field with **nabla **(or **del operator**). The Eq. 2 can be written as the divergence of **D**.

The Eq. 3 represents the first equation of Maxwell which is derived from Gauss’s law. As we move further down our discussion we will discuss other Maxwell’s equations that form the basis of electromagnetics. The Eq. 3 can be simply written as Eq. 4 (The Maxwell’s equation of Gauss’s law).

for other coordinate systems, the divergence of D can be written as follows (for cylinderical and spherical coordinate systems). For cylinderical coordinate system.

For spherical coordinate system.

The divergence has units of C/m3 since it is the charge per unit volume.

### Example 1

**We have an electric flux density D=3r ^{2}a_{r} nC/m^{2}, and we need to find**

**a) Electric field intensity at r=3,**

**b) Total charge enclosed by sphere of radius r=4, and**

**c) Total electric flux leaving the sphere of radius r=6.**

a) We have relation

b) We have,

c) Similarly, as (b),

### Example 3

We need to find divergence at (1,2,3) if D=3e^{-x}cos(y)a_{x}-3e^{-x}sin(y)a_{y}+5za_{z}.

## Further readings

If you found this topic interesting, you might be interested in reading the following topics.