Electric Field of Continuous Charge (1D Distributions)

Finding Electric Field with Integrals
When we are presented with a continuous charge distribution rather than a set of point charges, we need to use integrals to find the electric field. Remember that an integral is basically a fancy way of adding up a lot of very small things, and these problems all follow similar steps.
Steps to finding the electric field of continuous distributions:
- Draw a diagram if one is not already drawn in the question
- Define one small charge element, dq, on the diagram
- Draw the electric field, dE, at the point of interest based on your charge element.
- If the problem has more than one dimension, break the electric field element into components, such as dEx and dEy for two-dimensional problems.
- Find expressions for each electric field element. (If you have angles in your expressions, these need to be re-written in terms of your integration variables.)
- Integrate your expressions for each electric field element. The bounds of the integrals are defined by the shape of the continuous charge distribution.

Example: Electric Field from a Rod (on-axis)
A charge q=5 μCis placed at point P, near a uniformly charged rod of total charge Q.

For 𝑄 = 70 μC, 𝑙 = 50 cm and 𝑎 = 1.0 m, calculate the force that the rod exerts on the test charge.
Following the steps, we start by identifying a piece of the charge distribution as our infinitesimal charge dq.

The charge distribution is positive, so the electric field at point P points away from the distribution, to the right. This is a one-dimensional problem - the electric field will only have a horizontal component.
The field due to an infinitesimal segment is as follows:
We'll write the charge contribution dq in terms of the integration variable, x, by using the linear charge density, dq=λdx.
We'll also re-write the distance r in terms of the integration variable. r is the distance from the charge element dq to the point P, and x is the distance from the origin to dq. As shown in the diagram above, we can re-write it in terms of x: r=l+a−x
Now, we have an expression for the electric field only in terms of the integration variable (x) and constants. The limits of our integral will be defined by the length of the rod:
We'll carry this integral out by substitution. Define the variable u=l+a−x, which gives du=−dx.
The integration limit x=0 becomes u=l+a−(0)=l+a, and the limit x=l becomes u=l+a−(l)=a. Now we can finish the integral:
We can also re-write the charge density in terms of the charge and length to simplify further:
We have successfully found the magnitude of the electric field at the point P!
The question actually asks for force on a charge q placed at this point:
Example: Electric Field from a Rod (off-axis)
Find an expression for the electric field at point P in the figure below.

You might find this integral useful:
As usual, we start by defining an infinitesimal charge element, and drawing the corresponding electric field:

We need to know the distance between our charge element and point P to find the electric field. Using the Pythagorean theorem:
This gives the magnitude of the electric field as follows:
We have re-written the charge element in terms of our integration variable by using the linear charge density, dq=λdx.
We can see in the symmetry of this problem that the total force will point upward; the horizontal components will all cancel out. Let's find the vertical component of the electric field:
Now, we need to integrate this over the length of the rod:
This matches the integral given in the question. Using it here:
This points in the upward direction.
Practice: Rod with Positive and Negative Charge
A rod of length l has a uniform charge distribution, except the left-hand side is positively charged and the right-hand side is negatively charged. Find the electric field at point P which is at a distanceafrom the origin.

Direction
Mark Yourself Question
- Grab a piece of paper and try this problem yourself.
- When you're done, check the "I have answered this question" box below.
- View the solution and report whether you got it right or wrong.
Practice: Rod Electric Field Without Symmetry
Find the electric field at point P from the uniform positive charge distribution below.

You might find this integral useful: