Loading [MathJax]/jax/output/HTML-CSS/jax.js
Skip to main content
Library homepage
 

Text Color

Text Size

 

Margin Size

 

Font Type

Enable Dyslexic Font
Physics LibreTexts

2.6: Calculating Electric Fields of Charge Distributions

( \newcommand{\kernel}{\mathrm{null}\,}\)

For a line charge, a surface charge, and a volume charge, the summation in the definition of an Electric field discussed previously becomes an integral and qi is replaced by dq=λdl, σdA, or ρdV, respectively:

E(P)=14πϵ0Ni=1(qir2)ˆrPoint chargesE(P)=14πϵ0line(λdlr2)ˆrLine chargeE(P)=14πϵ0surface(σdAr2)ˆrSurface chargeE(P)=14πϵ0volume(ρdVr2)ˆrVolume charge

The integrals in Equations 2.6.1-2.6.4 are generalizations of the expression for the field of a point charge. They implicitly include and assume the principle of superposition. The “trick” to using them is almost always in coming up with correct expressions for dl, dA, or dV, as the case may be, expressed in terms of r, and also expressing the charge density function appropriately. It may be constant; it might be dependent on location.

Note carefully the meaning of r in these equations: It is the distance from the charge element (qi,λdl,σdA,ρdV) to the location of interest, P(x,y,z) (the point in space where you want to determine the field). However, don’t confuse this with the meaning of ˆr; we are using it and the vector notation E to write three integrals at once. That is, Equation 2.6.2 is actually

Ex(P)=14πϵ0line(λdlr2)x,Ey(P)=14πϵ0line(λdlr2)y,Ez(P)=14πϵ0line(λdlr2)z

Examples

Example 2.6.1a: Electric Field of a Line Segment

Find the electric field a distance z above the midpoint of a straight line segment of length L that carries a uniform line charge density λ.

Strategy

Since this is a continuous charge distribution, we conceptually break the wire segment into differential pieces of length dl, each of which carries a differential amount of charge

dq=λdl.

Then, we calculate the differential field created by two symmetrically placed pieces of the wire, using the symmetry of the setup to simplify the calculation (Figure 2.6.2). Finally, we integrate this differential field expression over the length of the wire (half of it, actually, as we explain below) to obtain the complete electric field expression.

A long, thin wire is on the x axis. The end of the wire is a distance z from the center of the wire. A small segment of the wire, a distance x to the right of the center of the wire, is shaded. Another segment, the same distance to the left of center, is also shaded. Point P is a distance z above the center of the wire, on the z axis. Point P is a distance r from each shaded region. The r vectors point from each shaded region to point P. Vectors d E 1 and d E 2 are drawn at point P. d E 1 points away from the left side shaded region and points up and right, at an angle theta to the z axis. d E 2 points away from the right side shaded region and points up and r left, making the same angle with the vertical as d E 1. The two d E vectors are equal in length.
Figure 2.6.2: A uniformly charged segment of wire. The electric field at point P can be found by applying the superposition principle to symmetrically placed charge elements and integrating.
Solution

Before we jump into it, what do we expect the field to “look like” from far away? Since it is a finite line segment, from far away, it should look like a point charge. We will check the expression we get to see if it meets this expectation.

The electric field for a line charge is given by the general expression

E(P)=14πϵ0lineλdlr2ˆr.

The symmetry of the situation (our choice of the two identical differential pieces of charge) implies the horizontal (x)-components of the field cancel, so that the net field points in the z-direction. Let’s check this formally.

The total field E(P) is the vector sum of the fields from each of the two charge elements (call them E1 and E2, for now):

E(P)=E1+E2=E1xˆi+E1zˆk+E2x(ˆi)+E2zˆk.

Because the two charge elements are identical and are the same distance away from the point P where we want to calculate the field, E1x=E2x, so those components cancel. This leaves

E(P)=E1zˆk+E2zˆk=E1cosθˆk+E2cosθˆk.

These components are also equal, so we have

E(P)=14πϵ0λdlr2cosθˆk+14πϵ0λdlr2cosθˆk=14πϵ0L/202λdxr2cosθˆk

where our differential line element dl is dx, in this example, since we are integrating along a line of charge that lies on the x-axis. (The limits of integration are 0 to L2, not L2 to +L2, because we have constructed the net field from two differential pieces of charge dq. If we integrated along the entire length, we would pick up an erroneous factor of 2.)

In principle, this is complete. However, to actually calculate this integral, we need to eliminate all the variables that are not given. In this case, both r and θ change as we integrate outward to the end of the line charge, so those are the variables to get rid of. We can do that the same way we did for the two point charges: by noticing that

r=(z2+x2)1/2

and

cosθ=zr=z(z2+x2)1/2.

Substituting, we obtain

E(P)=14πϵ0L/202λdx(z2+x2)z(z2+x2)1/2ˆk=14πϵ0L/202λz(z2+x2)3/2dxˆk=2λz4πϵ0[xz2z2+x2]L/20ˆk.

which simplifies to

E(z)=14πϵ0λLzz2+L24ˆk.

Significance

Notice, once again, the use of symmetry to simplify the problem. This is a very common strategy for calculating electric fields. The fields of nonsymmetrical charge distributions have to be handled with multiple integrals and may need to be calculated numerically by a computer.

Example 2.6.1b: Electric Field of a Line Segment along the axis of the segment

Find the electric field at the origin (point P), a distance a to the left of a straight line segment of length L=ba that carries a uniform positive line charge density λ.

A long, thin wire is on the x axis. The end of the wire is a distance a from the origin and it has a length of b-a. Point P is positioned at the origin.
Figure 2.6.3: A uniformly charged segment of wire. Symmetry implies that the electric field at point P is along the x-axis.
Strategy

Since this is a continuous charge distribution, we conceptually break the wire segment into differential pieces of length dl, each of which carries a differential amount of charge

dq=λdl.

Then, we conclude that because of symmetry, the field due to each segment is along the x-axis and directed towards (ˆi). The field will point towards (+ˆi) if the charge were negative. We then integrate the differential field expression over the length of the wire, from x=a to x=b to obtain the complete electric field expression.

A long, thin wire is on the x axis. The end of the wire is a distance a from the origin and it has a length of b-a. Point P is positioned at the origin. A small segment of the wire, a distance x to the right of the origin, is shaded. Point P is a distance r from each shaded region. The r vectors point from each shaded region to point P. Vectors d E 1 and d E 2 are drawn at point P. d E 1 points away from the left side shaded region and points up and right, at an angle theta to the z axis. d E 2 points away from the right side shaded region and points up and r left, making the same angle with the vertical as d E 1. The two d E vectors are equal in length.
Figure 2.6.4: A uniformly charged segment of wire. The electric field at point P can be found by applying the superposition principle to symmetrically placed charge elements and integrating.
Solution

The electric field for a line charge is given by the general expression

E(P)=14πϵ0lineλdlr2ˆr.

The symmetry of the situation implies that there are only horizontal (x)-components of the field. Since the charge is positive, the direction of the field is (ˆi).

So we have

E(P)=14πϵ0λdlr2ˆi=14πϵ0baλdxx2ˆi

where our differential line element dl is dx, in this example, since we are integrating along a line of charge that lies on the x-axis. (The limits of integration are a to b.

In principle, this is complete. However, to actually calculate this integral, we need to eliminate all the variables that are not given. In this case, both r and θ change as we integrate outward to the end of the line charge, so those are the variables to get rid of. We can do that the same way we did for the two point charges: by noticing that

E(P)=14πϵ0baλdxx2ˆi=λ4πϵ0[1x]baˆi=λ4πϵ0[1b1a]ˆi=λ4πϵ0[1a1b]ˆi.

The result is then:

E(x)=λ4πϵ0(1a1b)ˆi.

Example 2.6.1c: Electric Field of a Line Segment With No Symmetry

Find the electric field a distance z above the midpoint of a straight line segment of length L that carries a uniform line charge density λ.

A long, thin wire is on the x axis. The end of the wire is a distance z from the center of the wire. A small segment of the wire, a distance x to the right of the center of the wire, is shaded. Another segment, the same distance to the left of center, is also shaded. Point P is a distance z above the center of the wire, on the z axis. Point P is a distance r from each shaded region. The r vectors point from each shaded region to point P. Vectors d E 1 and d E 2 are drawn at point P. d E 1 points away from the left side shaded region and points up and right, at an angle theta to the z axis. d E 2 points away from the right side shaded region and points up and r left, making the same angle with the vertical as d E 1. The two d E vectors are equal in length.
Figure 2.6.5: A uniformly charged segment of wire. The electric field at point P can be found by applying the superposition principle to symmetrically placed charge elements and integrating.
Strategy

Since this is a continuous charge distribution, we conceptually break the wire segment into differential pieces of length dl, each of which carries a differential amount of charge

dq=λdl.

Then, we calculate the x and y components of the differential field created by a piece of the wire. We then integrate these differential field expressions over the length of the wire.

A long, thin wire is on the x axis. The end of the wire is a distance z from the center of the wire. A small segment of the wire, a distance x to the right of the center of the wire, is shaded. Another segment, the same distance to the left of center, is also shaded. Point P is a distance z above the center of the wire, on the z axis. Point P is a distance r from each shaded region. The r vectors point from each shaded region to point P. Vectors d E 1 and d E 2 are drawn at point P. d E 1 points away from the left side shaded region and points up and right, at an angle theta to the z axis. d E 2 points away from the right side shaded region and points up and r left, making the same angle with the vertical as d E 1. The two d E vectors are equal in length.
Figure 2.6.2: A uniformly charged segment of wire. The electric field at point P can be found by applying the superposition principle to symmetrically placed charge elements and integrating.
Solution

Before we jump into it, what do we expect the field to “look like” from far away? Since it is a finite line segment, from far away, it should look like a point charge. We will check the expression we get to see if it meets this expectation.

The electric field for a line charge is given by the general expression

E(P)=14πϵ0lineλdlr2ˆr.

The symmetry of the situation (our choice of the two identical differential pieces of charge) implies the horizontal (x)-components of the field cancel, so that the net field points in the z-direction. Let’s check this formally.

The total field E(P) is the vector sum of the fields from each of the two charge elements (call them E1 and E2, for now):

E(P)=E1+E2=E1xˆi+E1zˆk+E2x(ˆi)+E2zˆk.

Because the two charge elements are identical and are the same distance away from the point P where we want to calculate the field, E1x=E2x, so those components cancel. This leaves

E(P)=E1zˆk+E2zˆk=E1cosθˆk+E2cosθˆk.

These components are also equal, so we have

E(P)=14πϵ0λdlr2cosθˆk+14πϵ0λdlr2cosθˆk=14πϵ0L/202λdxr2cosθˆk

where our differential line element dl is dx, in this example, since we are integrating along a line of charge that lies on the x-axis. (The limits of integration are 0 to L2, not L2 to +L2, because we have constructed the net field from two differential pieces of charge dq. If we integrated along the entire length, we would pick up an erroneous factor of 2.)

In principle, this is complete. However, to actually calculate this integral, we need to eliminate all the variables that are not given. In this case, both r and θ change as we integrate outward to the end of the line charge, so those are the variables to get rid of. We can do that the same way we did for the two point charges: by noticing that

r=(z2+x2)1/2

and

cosθ=zr=z(z2+x2)1/2.

Substituting, we obtain

E(P)=14πϵ0L/202λdx(z2+x2)z(z2+x2)1/2ˆk=14πϵ0L/202λz(z2+x2)3/2dxˆk=2λz4πϵ0[xz2z2+x2]L/20ˆk.

which simplifies to

E(x)=λ4πϵ0[1a2+t21b2+t2].

E(y)=14πϵ0λt[bb2+t2aa2+t2].

clipboard_e46a7ea167006d173e3581e3e003e68ed.png

Significance

Notice, once again, the use of symmetry to simplify the problem. This is a very common strategy for calculating electric fields. The fields of nonsymmetrical charge distributions have to be handled with multiple integrals and may need to be calculated numerically by a computer.

 
Example 2.6.2: Electric Field of an Infinite Line of Charge

Find the electric field a distance z above the midpoint of an infinite line of charge that carries a uniform line charge density λ.

Strategy

This is exactly like the preceding example, except the limits of integration will be to +.

Solution

Again, the horizontal components cancel out, so we wind up with

E(P)=14πϵ0λdxr2cosθˆk

where our differential line element dl is dx, in this example, since we are integrating along a line of charge that lies on the x-axis. Again,

cosθ=zr=z(z2+x2)1/2.

Substituting, we obtain

E(P)=14πϵ0λdx(z2+x2)z(z2+x2)1/2ˆk=14πϵ0λz(z2+x2)3/2dxˆk=14πϵ0[xz2z2+x2]ˆk

which simplifies to

E(z)=14πϵ02λzˆk.

Significance

Our strategy for working with continuous charge distributions also gives useful results for charges with infinite dimension.

In the case of a finite line of charge, note that for zL, z2 dominates the L in the denominator, so that Equation 2.6.10 simplifies to

E14πϵ0λLz2ˆk.

If you recall that λL=q the total charge on the wire, we have retrieved the expression for the field of a point charge, as expected.

In the limit L on the other hand, we get the field of an infinite straight wire, which is a straight wire whose length is much, much greater than either of its other dimensions, and also much, much greater than the distance at which the field is to be calculated:

E(z)=14πϵ02λzˆk.

An interesting artifact of this infinite limit is that we have lost the usual 1/r2 dependence that we are used to. This will become even more intriguing in the case of an infinite plane.

Example 2.6.3A: Electric Field due to a Ring of Charge

A ring has a uniform charge density λ, with units of coulomb per unit meter of arc. Find the electric field at a point on the axis passing through the center of the ring.

Strategy

We use the same procedure as for the charged wire. The difference here is that the charge is distributed on a circle. We divide the circle into infinitesimal elements shaped as arcs on the circle and use polar coordinates shown in Figure 2.6.3.

A ring of radius R is shown in the x y plane of an x y z coordinate system. The ring is centered on the origin. A small segment of the ring is shaded. The segment is at an angle of theta from the x axis, subtends an angle of d theta, and contains a charge of d q equal to lambda R d theta. Point P is on the z axis, a distance of z above the center of the ring. The distance from the shaded segment to point P is equal to the square root of R squared plus squared.
Figure 2.6.3: The system and variable for calculating the electric field due to a ring of charge.
Solution

The electric field for a line charge is given by the general expression

E(P)=14πϵ0lineλdlr2ˆr.

A general element of the arc between θ and θ+dθ is of length Rdθ and therefore contains a charge equal to λRdθ. The element is at a distance of r=z2+R2 from P, the angle is cosϕ=zz2+R2 and therefore the electric field is

E(P)=14πϵ0lineλdlr2ˆr=14πϵ02π0λRdθz2+R2zz2+R2ˆz=14πϵ0λRz(z2+R2)3/2ˆz2π0dθ=14πϵ02πλRz(z2+R2)3/2ˆz=14πϵ0qtotz(z2+R2)3/2ˆz.

Significance

As usual, symmetry simplified this problem, in this particular case resulting in a trivial integral. Also, when we take the limit of zR, we find that

E14πϵ0qtotz2ˆz,

as we expect.

Example 2.6.3B: The Field of a Disk

Find the electric field of a circular thin disk of radius R and uniform charge density at a distance z above the center of the disk (Figure 2.6.4)

A disk of radius R is shown in the x y plane of an x y z coordinate system. The disk is centered on the origin. A ring, concentric with the disk, of radius r prime and width d r prime is indicated and two small segments on opposite sides of the ring are shaded and labeled as having charge d q. The test point is on the z axis, a distance of z above the center of the disk. The distance from each shaded segment to the test point is r. The electric field contributions, d E, due to the d q charges are shown as arrows in the directions of the associated r vectors. The d E vectors are at an angle of theta to the z axis.
Figure 2.6.4: A uniformly charged disk. As in the line charge example, the field above the center of this disk can be calculated by taking advantage of the symmetry of the charge distribution.
Strategy

The electric field for a surface charge is given by

E(P)=14πϵ0surfaceσdAr2ˆr.

To solve surface charge problems, we break the surface into symmetrical differential “stripes” that match the shape of the surface; here, we’ll use rings, as shown in the figure. Again, by symmetry, the horizontal components cancel and the field is entirely in the vertical (ˆk) direction. The vertical component of the electric field is extracted by multiplying by θ, so

E(P)=14πϵ0surfaceσdAr2cosθˆk.

As before, we need to rewrite the unknown factors in the integrand in terms of the given quantities. In this case,

dA=2πrdr

r2=r2+z2

cosθ=z(r2+z2)1/2.

(Please take note of the two different “r’s” here; r is the distance from the differential ring of charge to the point P where we wish to determine the field, whereas r is the distance from the center of the disk to the differential ring of charge.) Also, we already performed the polar angle integral in writing down dA.

Solution

Substituting all this in, we get

E(P)=E(z)=14πϵ0R0σ(2πrdr)z(r2+z2)3/2ˆk=14πϵ0(2πσz)(1z1R2+z2)ˆk

or, more simply,

E(z)=14πϵ0(2πσ2πσzR2+z2)ˆk.

Significance

Again, it can be shown (via a Taylor expansion) that when zR, this reduces to

E(z)14πϵ0σπR2z2ˆk,

which is the expression for a point charge Q=σπR2.

Exercise 2.6.3

How would the above limit change with a uniformly charged rectangle instead of a disk?

Answer

The point charge would be Q=σab where a and b are the sides of the rectangle but otherwise identical.

As R, Equation 2.6.19 reduces to the field of an infinite plane, which is a flat sheet whose area is much, much greater than its thickness, and also much, much greater than the distance at which the field is to be calculated:

E=limR14πϵ0(2πσ2πσzR2+z2)ˆk=σ2ϵ0ˆk.

Note that this field is constant. This surprising result is, again, an artifact of our limit, although one that we will make use of repeatedly in the future. To understand why this happens, imagine being placed above an infinite plane of constant charge. Does the plane look any different if you vary your altitude? No—you still see the plane going off to infinity, no matter how far you are from it. It is important to note that Equation 2.6.21 is because we are above the plane. If we were below, the field would point in the ˆk direction.

Example 2.6.4: The Field of Two Infinite Planes

Find the electric field everywhere resulting from two infinite planes with equal but opposite charge densities (Figure 2.6.5).

The figure shows two vertically oriented parallel plates A and B separated by a distance d. Plate A is positively charged and B is negatively charged. Electric field lines are parallel between the plates and curved outward at the ends of the plates. A charge q is moved from A to B. The work done W equals q times V sub A B, and the electric field intensity E equals V sub A B over d.
Figure 2.6.5: Two charged infinite planes. Note the direction of the electric field.
Strategy

We already know the electric field resulting from a single infinite plane, so we may use the principle of superposition to find the field from two.

Solution

The electric field points away from the positively charged plane and toward the negatively charged plane. Since the σ are equal and opposite, this means that in the region outside of the two planes, the electric fields cancel each other out to zero. However, in the region between the planes, the electric fields add, and we get

E=σϵ0ˆi

for the electric field. The ˆi is because in the figure, the field is pointing in the +x-direction.

Significance

Systems that may be approximated as two infinite planes of this sort provide a useful means of creating uniform electric fields.

Exercise 2.6.4

What would the electric field look like in a system with two parallel positively charged planes with equal charge densities?

Answer

The electric field would be zero in between, and have magnitude σϵ0 everywhere else.


This page titled 2.6: Calculating Electric Fields of Charge Distributions is shared under a CC BY 4.0 license and was authored, remixed, and/or curated by OpenStax via source content that was edited to the style and standards of the LibreTexts platform.

Support Center

How can we help?