University Physics Volume 2

# 6.3Applying Gauss’s Law

University Physics Volume 26.3 Applying Gauss’s Law

### Learning Objectives

By the end of this section, you will be able to:
• Explain what spherical, cylindrical, and planar symmetry are
• Recognize whether or not a given system possesses one of these symmetries
• Apply Gauss’s law to determine the electric field of a system with one of these symmetries

Gauss’s law is very helpful in determining expressions for the electric field, even though the law is not directly about the electric field; it is about the electric flux. It turns out that in situations that have certain symmetries (spherical, cylindrical, or planar) in the charge distribution, we can deduce the electric field based on knowledge of the electric flux. In these systems, we can find a Gaussian surface S over which the electric field has constant magnitude. Furthermore, if $E→E→$ is parallel to $n^n^$ everywhere on the surface, then $E→·n^=E.E→·n^=E.$ (If $E→E→$ and $n^n^$ are antiparallel everywhere on the surface, then $E→·n^=−E.E→·n^=−E.$) Gauss’s law then simplifies to

$Φ=∮SE→·n^dA=E∮SdA=EA=qencε0,Φ=∮SE→·n^dA=E∮SdA=EA=qencε0,$
(6.6)

where A is the area of the surface. Note that these symmetries lead to the transformation of the flux integral into a product of the magnitude of the electric field and an appropriate area. When you use this flux in the expression for Gauss’s law, you obtain an algebraic equation that you can solve for the magnitude of the electric field, which looks like

$E~qencε0area.E~qencε0area.$

The direction of the electric field at point P is obtained from the symmetry of the charge distribution and the type of charge in the distribution. Therefore, Gauss’s law can be used to determine $E→.E→.$ Here is a summary of the steps we will follow:

#### Problem-Solving Strategy: Gauss’s Law

1. Identify the spatial symmetry of the charge distribution. This is an important first step that allows us to choose the appropriate Gaussian surface. As examples, an isolated point charge has spherical symmetry, and an infinite line of charge has cylindrical symmetry.
2. Choose a Gaussian surface with the same symmetry as the charge distribution and identify its consequences. With this choice, $E→·n^E→·n^$ is easily determined over the Gaussian surface.
3. Evaluate the integral $∮SE→·n^dA∮SE→·n^dA$ over the Gaussian surface, that is, calculate the flux through the surface. The symmetry of the Gaussian surface allows us to factor $E→·n^E→·n^$ outside the integral.
4. Determine the amount of charge enclosed by the Gaussian surface. This is an evaluation of the right-hand side of the equation representing Gauss’s law. It is often necessary to perform an integration to obtain the net enclosed charge.
5. Evaluate the electric field of the charge distribution. The field may now be found using the results of steps 3 and 4.

Basically, there are only three types of symmetry that allow Gauss’s law to be used to deduce the electric field. They are

• A charge distribution with spherical symmetry
• A charge distribution with cylindrical symmetry
• A charge distribution with planar symmetry

To exploit the symmetry, we perform the calculations in appropriate coordinate systems and use the right kind of Gaussian surface for that symmetry, applying the remaining four steps.

### Charge Distribution with Spherical Symmetry

A charge distribution has spherical symmetry if the density of charge depends only on the distance from a point in space and not on the direction. In other words, if you rotate the system, it doesn’t look different. For instance, if a sphere of radius R is uniformly charged with charge density $ρ0ρ0$ then the distribution has spherical symmetry (Figure 6.21(a)). On the other hand, if a sphere of radius R is charged so that the top half of the sphere has uniform charge density $ρ1ρ1$ and the bottom half has a uniform charge density $ρ2≠ρ1,ρ2≠ρ1,$ then the sphere does not have spherical symmetry because the charge density depends on the direction (Figure 6.21(b)). Thus, it is not the shape of the object but rather the shape of the charge distribution that determines whether or not a system has spherical symmetry.

Figure 6.21(c) shows a sphere with four different shells, each with its own uniform charge density. Although this is a situation where charge density in the full sphere is not uniform, the charge density function depends only on the distance from the center and not on the direction. Therefore, this charge distribution does have spherical symmetry.

Figure 6.21 Illustrations of spherically symmetrical and nonsymmetrical systems. Different shadings indicate different charge densities. Charges on spherically shaped objects do not necessarily mean the charges are distributed with spherical symmetry. The spherical symmetry occurs only when the charge density does not depend on the direction. In (a), charges are distributed uniformly in a sphere. In (b), the upper half of the sphere has a different charge density from the lower half; therefore, (b) does not have spherical symmetry. In (c), the charges are in spherical shells of different charge densities, which means that charge density is only a function of the radial distance from the center; therefore, the system has spherical symmetry.

One good way to determine whether or not your problem has spherical symmetry is to look at the charge density function in spherical coordinates, $ρ(r,θ,ϕ)ρ(r,θ,ϕ)$. If the charge density is only a function of r, that is $ρ=ρ(r)ρ=ρ(r)$, then you have spherical symmetry. If the density depends on $θθ$ or $ϕϕ$, you could change it by rotation; hence, you would not have spherical symmetry.

#### Consequences of symmetry

In all spherically symmetrical cases, the electric field at any point must be radially directed, because the charge and, hence, the field must be invariant under rotation. Therefore, using spherical coordinates with their origins at the center of the spherical charge distribution, we can write down the expected form of the electric field at a point P located at a distance r from the center:

$Spherical symmetry:E→P=EP(r)r^,Spherical symmetry:E→P=EP(r)r^,$
(6.7)

where $r^r^$ is the unit vector pointed in the direction from the origin to the field point P. The radial component $EPEP$ of the electric field can be positive or negative. When $EP>0,EP>0,$ the electric field at P points away from the origin, and when $EP<0,EP<0,$ the electric field at P points toward the origin.

#### Gaussian surface and flux calculations

We can now use this form of the electric field to obtain the flux of the electric field through the Gaussian surface. For spherical symmetry, the Gaussian surface is a closed spherical surface that has the same center as the center of the charge distribution. Thus, the direction of the area vector of an area element on the Gaussian surface at any point is parallel to the direction of the electric field at that point, since they are both radially directed outward (Figure 6.22).

Figure 6.22 The electric field at any point of the spherical Gaussian surface for a spherically symmetrical charge distribution is parallel to the area element vector at that point, giving flux as the product of the magnitude of electric field and the value of the area. Note that the radius R of the charge distribution and the radius r of the Gaussian surface are different quantities.

The magnitude of the electric field $E→E→$ must be the same everywhere on a spherical Gaussian surface concentric with the distribution. For a spherical surface of radius r,

$Φ=∮SE→P·n^dA=EP∮SdA=EP4πr2.Φ=∮SE→P·n^dA=EP∮SdA=EP4πr2.$

#### Using Gauss’s law

According to Gauss’s law, the flux through a closed surface is equal to the total charge enclosed within the closed surface divided by the permittivity of vacuum $ε0ε0$. Let $qencqenc$ be the total charge enclosed inside the distance r from the origin, which is the space inside the Gaussian spherical surface of radius r. This gives the following relation for Gauss’s law:

$4πr2E=qencε0.4πr2E=qencε0.$

Hence, the electric field at point P that is a distance r from the center of a spherically symmetrical charge distribution has the following magnitude and direction:

$Magnitude:E(r)=14πε0qencr2Magnitude:E(r)=14πε0qencr2$
(6.8)

Direction: radial from O to P or from P to O.

The direction of the field at point P depends on whether the charge in the sphere is positive or negative. For a net positive charge enclosed within the Gaussian surface, the direction is from O to P, and for a net negative charge, the direction is from P to O. This is all we need for a point charge, and you will notice that the result above is identical to that for a point charge. However, Gauss’s law becomes truly useful in cases where the charge occupies a finite volume.

#### Computing enclosed charge

The more interesting case is when a spherical charge distribution occupies a volume, and asking what the electric field inside the charge distribution is thus becomes relevant. In this case, the charge enclosed depends on the distance r of the field point relative to the radius of the charge distribution R, such as that shown in Figure 6.23.

Figure 6.23 A spherically symmetrical charge distribution and the Gaussian surface used for finding the field (a) inside and (b) outside the distribution.

If point P is located outside the charge distribution—that is, if $r≥Rr≥R$—then the Gaussian surface containing P encloses all charges in the sphere. In this case, $qencqenc$ equals the total charge in the sphere. On the other hand, if point P is within the spherical charge distribution, that is, if $r then the Gaussian surface encloses a smaller sphere than the sphere of charge distribution. In this case, $qencqenc$ is less than the total charge present in the sphere. Referring to Figure 6.23, we can write $qencqenc$ as

$qenc={qtot(total charge)ifr≥Rqwithinr

The field at a point outside the charge distribution is also called $E→outE→out$, and the field at a point inside the charge distribution is called $E→in.E→in.$ Focusing on the two types of field points, either inside or outside the charge distribution, we can now write the magnitude of the electric field as

$Poutside sphereEout=14πε0qtotr2Poutside sphereEout=14πε0qtotr2$
(6.9)
$Pinside sphereEin=14πε0qwithinr
(6.10)

Note that the electric field outside a spherically symmetrical charge distribution is identical to that of a point charge at the center that has a charge equal to the total charge of the spherical charge distribution. This is remarkable since the charges are not located at the center only. We now work out specific examples of spherical charge distributions, starting with the case of a uniformly charged sphere.

### Example 6.6

Uniformly Charged Sphere A sphere of radius R, such as that shown in Figure 6.23, has a uniform volume charge density $ρ0ρ0$. Find the electric field at a point outside the sphere and at a point inside the sphere.

Strategy Apply the Gauss’s law problem-solving strategy, where we have already worked out the flux calculation.

Solution The charge enclosed by the Gaussian surface is given by

$qenc=∫ρ0dV=∫0rρ04πr′2dr′=ρ0(43πr3).qenc=∫ρ0dV=∫0rρ04πr′2dr′=ρ0(43πr3).$

The answer for electric field amplitude can then be written down immediately for a point outside the sphere, labeled $Eout,Eout,$ and a point inside the sphere, labeled $Ein.Ein.$

$Eout=14πε0qtotr2,qtot=43πR3ρ0,Ein=qenc4πε0r2=ρ0r3ε0,sinceqenc=43πr3ρ0.Eout=14πε0qtotr2,qtot=43πR3ρ0,Ein=qenc4πε0r2=ρ0r3ε0,sinceqenc=43πr3ρ0.$

It is interesting to note that the magnitude of the electric field increases inside the material as you go out, since the amount of charge enclosed by the Gaussian surface increases with the volume. Specifically, the charge enclosed grows $∝r3∝r3$, whereas the field from each infinitesimal element of charge drops off $∝1/r2∝1/r2$ with the net result that the electric field within the distribution increases in strength linearly with the radius. The magnitude of the electric field outside the sphere decreases as you go away from the charges, because the included charge remains the same but the distance increases. Figure 6.24 displays the variation of the magnitude of the electric field with distance from the center of a uniformly charged sphere.

Figure 6.24 Electric field of a uniformly charged, non-conducting sphere increases inside the sphere to a maximum at the surface and then decreases as $1/r21/r2$. Here, $ER=ρ0R3ε0ER=ρ0R3ε0$. The electric field is due to a spherical charge distribution of uniform charge density and total charge Q as a function of distance from the center of the distribution.

The direction of the electric field at any point P is radially outward from the origin if $ρ0ρ0$ is positive, and inward (i.e., toward the center) if $ρ0ρ0$ is negative. The electric field at some representative space points are displayed in Figure 6.25 whose radial coordinates r are $r=R/2r=R/2$, $r=Rr=R$, and $r=2Rr=2R$.

Figure 6.25 Electric field vectors inside and outside a uniformly charged sphere.

Significance Notice that $EoutEout$ has the same form as the equation of the electric field of an isolated point charge. In determining the electric field of a uniform spherical charge distribution, we can therefore assume that all of the charge inside the appropriate spherical Gaussian surface is located at the center of the distribution.

### Example 6.7

Non-Uniformly Charged Sphere A non-conducting sphere of radius R has a non-uniform charge density that varies with the distance from its center as given by

$ρ(r)=arn(r≤R;n≥0),ρ(r)=arn(r≤R;n≥0),$

where a is a constant. We require $n≥0n≥0$ so that the charge density is not undefined at $r=0r=0$. Find the electric field at a point outside the sphere and at a point inside the sphere.

Strategy Apply the Gauss’s law strategy given above, where we work out the enclosed charge integrals separately for cases inside and outside the sphere.

Solution Since the given charge density function has only a radial dependence and no dependence on direction, we have a spherically symmetrical situation. Therefore, the magnitude of the electric field at any point is given above and the direction is radial. We just need to find the enclosed charge $qenc,qenc,$ which depends on the location of the field point.

A note about symbols: We use $r′r′$ for locating charges in the charge distribution and r for locating the field point(s) at the Gaussian surface(s). The letter R is used for the radius of the charge distribution.

As charge density is not constant here, we need to integrate the charge density function over the volume enclosed by the Gaussian surface. Therefore, we set up the problem for charges in one spherical shell, say between $r′r′$ and $r′+dr′,r′+dr′,$ as shown in Figure 6.26. The volume of charges in the shell of infinitesimal width is equal to the product of the area of surface $4πr′24πr′2$ and the thickness $dr′dr′$. Multiplying the volume with the density at this location, which is $ar′nar′n$, gives the charge in the shell:

$dq=ar′n4πr′2dr′.dq=ar′n4πr′2dr′.$
Figure 6.26 Spherical symmetry with non-uniform charge distribution. In this type of problem, we need four radii: R is the radius of the charge distribution, r is the radius of the Gaussian surface, $r′r′$ is the inner radius of the spherical shell, and $r′+dr′r′+dr′$ is the outer radius of the spherical shell. The spherical shell is used to calculate the charge enclosed within the Gaussian surface. The range for $r′r′$ is from 0 to r for the field at a point inside the charge distribution and from 0 to R for the field at a point outside the charge distribution. If $r>Rr>R$, then the Gaussian surface encloses more volume than the charge distribution, but the additional volume does not contribute to $qencqenc$.

(a) Field at a point outside the charge distribution. In this case, the Gaussian surface, which contains the field point P, has a radius r that is greater than the radius R of the charge distribution, $r>Rr>R$. Therefore, all charges of the charge distribution are enclosed within the Gaussian surface. Note that the space between $r′=Rr′=R$ and $r′=rr′=r$ is empty of charges and therefore does not contribute to the integral over the volume enclosed by the Gaussian surface:

$qenc=∫dq=∫0Rar′n4πr′2dr′=4πan+3Rn+3.qenc=∫dq=∫0Rar′n4πr′2dr′=4πan+3Rn+3.$

This is used in the general result for $E→outE→out$ above to obtain the electric field at a point outside the charge distribution as

$E→out=[aRn+3ε0(n+3)]1r2r^,E→out=[aRn+3ε0(n+3)]1r2r^,$

where $r^r^$ is a unit vector in the direction from the origin to the field point at the Gaussian surface.

(b) Field at a point inside the charge distribution. The Gaussian surface is now buried inside the charge distribution, with $r. Therefore, only those charges in the distribution that are within a distance r of the center of the spherical charge distribution count in $rencrenc$:

$qenc=∫0rar′n4πr′2dr′=4πan+3rn+3.qenc=∫0rar′n4πr′2dr′=4πan+3rn+3.$

Now, using the general result above for $E→in,E→in,$ we find the electric field at a point that is a distance r from the center and lies within the charge distribution as

$E→in=[aε0(n+3)]rn+1r^,E→in=[aε0(n+3)]rn+1r^,$

where the direction information is included by using the unit radial vector.

Check that the electric fields for the sphere reduce to the correct values for a point charge.

### Charge Distribution with Cylindrical Symmetry

A charge distribution has cylindrical symmetry if the charge density depends only upon the distance r from the axis of a cylinder and must not vary along the axis or with direction about the axis. In other words, if your system varies if you rotate it around the axis, or shift it along the axis, you do not have cylindrical symmetry.

Figure 6.27 shows four situations in which charges are distributed in a cylinder. A uniform charge density $ρ0.ρ0.$ in an infinite straight wire has a cylindrical symmetry, and so does an infinitely long cylinder with constant charge density $ρ0.ρ0.$ An infinitely long cylinder that has different charge densities along its length, such as a charge density $ρ1ρ1$ for $z>0z>0$ and $ρ2≠ρ1ρ2≠ρ1$ for $z<0z<0$, does not have a usable cylindrical symmetry for this course. Neither does a cylinder in which charge density varies with the direction, such as a charge density $ρ1ρ1$ for $0≤θ<π0≤θ<π$ and $ρ2≠ρ1ρ2≠ρ1$ for $π≤θ<2ππ≤θ<2π$. A system with concentric cylindrical shells, each with uniform charge densities, albeit different in different shells, as in Figure 6.27(d), does have cylindrical symmetry if they are infinitely long. The infinite length requirement is due to the charge density changing along the axis of a finite cylinder. In real systems, we don’t have infinite cylinders; however, if the cylindrical object is considerably longer than the radius from it that we are interested in, then the approximation of an infinite cylinder becomes useful.

Figure 6.27 To determine whether a given charge distribution has cylindrical symmetry, look at the cross-section of an “infinitely long” cylinder. If the charge density does not depend on the polar angle of the cross-section or along the axis, then you have cylindrical symmetry. (a) Charge density is constant in the cylinder; (b) upper half of the cylinder has a different charge density from the lower half; (c) left half of the cylinder has a different charge density from the right half; (d) charges are constant in different cylindrical rings, but the density does not depend on the polar angle. Cases (a) and (d) have cylindrical symmetry, whereas (b) and (c) do not.

#### Consequences of symmetry

In all cylindrically symmetrical cases, the electric field $E→PE→P$ at any point P must also display cylindrical symmetry.

Cylindrical symmetry: $E→P=EP(r)r^E→P=EP(r)r^$,

where r is the distance from the axis and $r^r^$ is a unit vector directed perpendicularly away from the axis (Figure 6.28).

Figure 6.28 The electric field in a cylindrically symmetrical situation depends only on the distance from the axis. The direction of the electric field is pointed away from the axis for positive charges and toward the axis for negative charges.

#### Gaussian surface and flux calculation

To make use of the direction and functional dependence of the electric field, we choose a closed Gaussian surface in the shape of a cylinder with the same axis as the axis of the charge distribution. The flux through this surface of radius s and height L is easy to compute if we divide our task into two parts: (a) a flux through the flat ends and (b) a flux through the curved surface (Figure 6.29).

Figure 6.29 The Gaussian surface in the case of cylindrical symmetry. The electric field at a patch is either parallel or perpendicular to the normal to the patch of the Gaussian surface.

The electric field is perpendicular to the cylindrical side and parallel to the planar end caps of the surface. The flux through the cylindrical part is

$∫SE→·n^dA=E∫SdA=E(2πrL),∫SE→·n^dA=E∫SdA=E(2πrL),$

whereas the flux through the end caps is zero because $E→·n^=0E→·n^=0$ there. Thus, the flux is

$∫SE→·n^dA=E(2πrL)+0+0=2πrLE.∫SE→·n^dA=E(2πrL)+0+0=2πrLE.$

#### Using Gauss’s law

According to Gauss’s law, the flux must equal the amount of charge within the volume enclosed by this surface, divided by the permittivity of free space. When you do the calculation for a cylinder of length L, you find that $qencqenc$ of Gauss’s law is directly proportional to L. Let us write it as charge per unit length $(λenc)(λenc)$ times length L:

$qenc=λencL.qenc=λencL.$

Hence, Gauss’s law for any cylindrically symmetrical charge distribution yields the following magnitude of the electric field a distance s away from the axis:

$Magnitude:E(r)=λenc2πε01r.Magnitude:E(r)=λenc2πε01r.$

The charge per unit length $λencλenc$ depends on whether the field point is inside or outside the cylinder of charge distribution, just as we have seen for the spherical distribution.

#### Computing enclosed charge

Let R be the radius of the cylinder within which charges are distributed in a cylindrically symmetrical way. Let the field point P be at a distance s from the axis. (The side of the Gaussian surface includes the field point P.) When $r>Rr>R$ (that is, when P is outside the charge distribution), the Gaussian surface includes all the charge in the cylinder of radius R and length L. When $r (P is located inside the charge distribution), then only the charge within a cylinder of radius s and length L is enclosed by the Gaussian surface:

$λencL={(total charge)ifr≥R(only charge withinr

### Example 6.8

Uniformly Charged Cylindrical Shell A very long non-conducting cylindrical shell of radius R has a uniform surface charge density$σ0.σ0.$ Find the electric field (a) at a point outside the shell and (b) at a point inside the shell.

Strategy Apply the Gauss’s law strategy given earlier, where we treat the cases inside and outside the shell separately.

Solution

1. Electric field at a point outside the shell. For a point outside the cylindrical shell, the Gaussian surface is the surface of a cylinder of radius $r>Rr>R$ and length L, as shown in Figure 6.30. The charge enclosed by the Gaussian cylinder is equal to the charge on the cylindrical shell of length L. Therefore, $λencλenc$ is given by
$λenc=σ02πRLL=2πRσ0.λenc=σ02πRLL=2πRσ0.$

Figure 6.30 A Gaussian surface surrounding a cylindrical shell.

Hence, the electric field at a point P outside the shell at a distance r away from the axis is
$E→=2πRσ02πεo1rr^=Rσ0εo1rr^(r>R)E→=2πRσ02πεo1rr^=Rσ0εo1rr^(r>R)$

where $r^r^$ is a unit vector, perpendicular to the axis and pointing away from it, as shown in the figure. The electric field at P points in the direction of $r^r^$ given in Figure 6.30 if $σ0>0σ0>0$ and in the opposite direction to $r^r^$ if $σ0<0σ0<0$.
2. Electric field at a point inside the shell. For a point inside the cylindrical shell, the Gaussian surface is a cylinder whose radius r is less than R (Figure 6.31). This means no charges are included inside the Gaussian surface:
$λenc=0.λenc=0.$

Figure 6.31 A Gaussian surface within a cylindrical shell.

This gives the following equation for the magnitude of the electric field $EinEin$ at a point whose r is less than R of the shell of charges.
$Ein2πrL=0(r

This gives us
$Ein=0(r

Significance Notice that the result inside the shell is exactly what we should expect: No enclosed charge means zero electric field. Outside the shell, the result becomes identical to a wire with uniform charge $Rσ0.Rσ0.$

A thin straight wire has a uniform linear charge density $λ0.λ0.$ Find the electric field at a distance d from the wire, where d is much less than the length of the wire.

### Charge Distribution with Planar Symmetry

A planar symmetry of charge density is obtained when charges are uniformly spread over a large flat surface. In planar symmetry, all points in a plane parallel to the plane of charge are identical with respect to the charges.

#### Consequences of symmetry

We take the plane of the charge distribution to be the xy-plane and we find the electric field at a space point P with coordinates (x, y, z). Since the charge density is the same at all (x, y)-coordinates in the $z=0z=0$ plane, by symmetry, the electric field at P cannot depend on the x- or y-coordinates of point P, as shown in Figure 6.32. Therefore, the electric field at P can only depend on the distance from the plane and has a direction either toward the plane or away from the plane. That is, the electric field at P has only a nonzero z-component.

Uniform charges in xy plane: $E→=E(z)z^E→=E(z)z^$

where z is the distance from the plane and $z^z^$ is the unit vector normal to the plane. Note that in this system, $E(z)=E(−z),E(z)=E(−z),$ although of course they point in opposite directions.

Figure 6.32 The components of the electric field parallel to a plane of charges cancel out the two charges located symmetrically from the field point P. Therefore, the field at any point is pointed vertically from the plane of charges. For any point P and charge $q1,q1,$ we can always find a $q2q2$ with this effect.

#### Gaussian surface and flux calculation

In the present case, a convenient Gaussian surface is a box, since the expected electric field points in one direction only. To keep the Gaussian box symmetrical about the plane of charges, we take it to straddle the plane of the charges, such that one face containing the field point P is taken parallel to the plane of the charges. In Figure 6.33, sides I and II of the Gaussian surface (the box) that are parallel to the infinite plane have been shaded. They are the only surfaces that give rise to nonzero flux because the electric field and the area vectors of the other faces are perpendicular to each other.

Figure 6.33 A thin charged sheet and the Gaussian box for finding the electric field at the field point P. The normal to each face of the box is from inside the box to outside. On two faces of the box, the electric fields are parallel to the area vectors, and on the other four faces, the electric fields are perpendicular to the area vectors.

Let A be the area of the shaded surface on each side of the plane and $EPEP$ be the magnitude of the electric field at point P. Since sides I and II are at the same distance from the plane, the electric field has the same magnitude at points in these planes, although the directions of the electric field at these points in the two planes are opposite to each other.

Magnitude at I or II: $E(z)=EP.E(z)=EP.$

If the charge on the plane is positive, then the direction of the electric field and the area vectors are as shown in Figure 6.33. Therefore, we find for the flux of electric field through the box

$Φ=∮SE→P·n^dA=EPA+EPA+0+0+0+0=2EPAΦ=∮SE→P·n^dA=EPA+EPA+0+0+0+0=2EPA$
(6.11)

where the zeros are for the flux through the other sides of the box. Note that if the charge on the plane is negative, the directions of electric field and area vectors for planes I and II are opposite to each other, and we get a negative sign for the flux. According to Gauss’s law, the flux must equal $qenc/ε0qenc/ε0$. From Figure 6.33, we see that the charges inside the volume enclosed by the Gaussian box reside on an area A of the xy-plane. Hence,

$qenc=σ0A.qenc=σ0A.$
(6.12)

Using the equations for the flux and enclosed charge in Gauss’s law, we can immediately determine the electric field at a point at height z from a uniformly charged plane in the xy-plane:

$E→P=σ02ε0n^.E→P=σ02ε0n^.$

The direction of the field depends on the sign of the charge on the plane and the side of the plane where the field point P is located. Note that above the plane, $n^=+z^n^=+z^$, while below the plane, $n^=−z^n^=−z^$.

You may be surprised to note that the electric field does not actually depend on the distance from the plane; this is an effect of the assumption that the plane is infinite. In practical terms, the result given above is still a useful approximation for finite planes near the center.