Charge densities are used for two types of problems in E&M.
Computing using Coulomb’s law due to an continuous distribution of charge and
Computing the charge enclosed in a Gaussian sphere.
Charges are quantized, and so technically, it does not make sense to discuss a continuous charge distribution. However, when there are many charges, the continuous approximation is very accurate when used for computing an electric field.
To create a discrete charge distribution, imagine smearing discrete charges along a line, on a surface, or within a volume.
A line of length with a charge spread uniformly on it has a charge density of with units of . If the charge is nonuniformly distributed, the notation or is used and is the the density at a location where is in a length .
A surface with area and a charge spread uniformly on it has a charge density of with units of . If the charge is nonuniformly distributed, the notation or is used and is density at a location where is in an area .
A volume with volume and a charge spread uniformly in it has a charge density of with units of . If the charge is nonuniformly distributed, the notation or is used and at a location where is in a volume .
is the charge per unit length. The total charge on a line of length when is uniform is .
If the line is curved, integration may be needed to compute the length of the line using .
In order to do an integration, the general differential length must be written in terms of a coordinate system (e.g., Cartesian, cylindrical, spherical). For example, if the line of charge is along the -axis, then . If the line of charge is along the -axis, then . If the line of charge is a circle of radius in the - plane centered on the origin, then , where is a differential length along the circle. When cannot be written by inspection, the following general procedure is needed.
In the following diagram, a differential element of a curve is shown. To write this in Cartesian coordinates, a right triangle is used to relate , , and .
This equation cannot yet be used for integration because it involves two differentials. Factoring out gives
(The factor in the square root also appears in the equation for the unit normal vector to a line derived in Vectors.) If we integrate in the direction of increasing , then and so
If the uniformly spaced point charges each with charge and shown by dots are uniformly smeared onto the line they are on, what is ?
Answer: (a) and (b) 5.
A 2-meter line has Coulombs of charge spread uniformly on it.
Compute .
How many electrons does this correspond to?
What is the spacing between the electrons on the line of charge?
A parabola from to has a uniform linear charge denstiy . Compute the total charge on the line.
Answer
Using
with gives
Although this integral can be solved with a trig substitution, the use of Wolfram|Alpha is acceptable on a homework problem. (On exams, I am only interested in seeing that you set up the integral if the integral is non–trivial to evaluate.)
A line from to has a uniform linear charge density . Compute the total charge on the line.
Answer:
As shown in the previous figure, when varies along a line, it is related to the total charge according to
where is a generic differential length and is a position on the line. Equivalently,
Integration of over the length of the line gives the total charge on a line.
In order to do an integration, the generic length variable (and ) must be written in terms of a coordinate system (e.g., Cartesian, cylindrical, spherical) as described previously.
A line of charge of length has a linearly increasing charge density, a charge density of zero on the left end, and a total charge . Compute in terms of , , where is the distance from the left end of the line.
Answer
Based on the problem statement, we can write where is the distance from the left end of the line. To find , use
Along a line from to , a total charge is distributed non-uniformly such that . What is the constant in terms of and ?
Answer:
A parabola from to has a non–uniform linear charge denstiy . Compute the total charge on the line.
Answer:
and so
Charge is distributed on a half–circle of radius from to .
The charge density is .
Compute the total charge on the line.
Answer
Check: Before attempting to solve the problem, note that is positive in the range , so we expect a non–zero and positive net charge .
Approach I
Before doing integration, we need to write in terms of a differential length using a coordinate system. Given that was given in cylindrical coordinates, it makes sense to write using cylindrical coordinates. From the following figure, . (A useful way to check if you have written down the correct is to integrate it – if you get the length of the line, you likely have the correct .)
Approach II
This problem was straightforward to solve using cylindrical coordinates. In the following, it is solved in cartesian coordinates. The technique used here can be used for arbitrary curves for which is not simple.
For the given circle, , so and
In cartesian coordinates, . The integral is then
(The was written because it follows from and sometimes keeping the absolute value sign matters. However, because is positive by definition, , the absolute value was not needed.)
Before integrating, we note that depends on the differential variable , so it must be written in terms of . Subtitution of and then integrating gives the same result as Approach I:
is the charge per unit length. The total charge on a surface is , where is the surface area .
As with lines, to perform the integral, the differential written in terms of a generic differential area and must be expressed in a coordinate system. This is demonstrated in the following example.
A total charge is uniformly distributed on a square that lies between and .
Compute the charge density on the square.
Verify that , where is the surface on which there is a charge, gives the expected answer.
Answer
, so .
The relationship between the total charge and when varies over an area is
If is uniform in the direction, . That is, the surface charge distribution can be described by linear charge distribution. To demonstrate this visually, consider the charge distribution shown below. The amount of charge in the thin rectangle can be written as or . As a result, .
To demonstrate this mathematically, suppose is uniform in so that
As a result, we can find the total charge by integrating over the full area or only over .
A square that lies between and has a charge distribution of on it.
Compute the total charge on the square.
Answer
Assume the square is in the – plane and is centered on the origin. A differential area in cartesian coordinates in the – plane is .
A variation on this problem is when the charge density is given in cylindrical coordinates as . In this case, prior to integration we would need to express in cartesian coordinates: .
A total charge is uniformly distributed on a disk of radius that lies in the – plane and is centered on the origin.
Compute the charge density on the square without integration.
Compute the charge density on the square with integration.
Lines of charge of length and uniform charge density are placed side-by-side to form a sheet of width . Compute .
A rectangle in the region and has a charge density .
Show that the charge can be computed by integrating over the area or over the line from to .
A total charge is uniformly distributed within a sphere of radius that is centered on the origin.
1. Compute the charge density .
2. Integrate this over the volume and show that it gives .
Answer:
1.
2. To do the integral, we need to choose a coordinate system and write the differential in this coordinate system. From calculus, in spherical coordinates, and so the equation for charge in integral form is
In the above was be factored out of the integral because it does not depend on , , or . Substitution of
gives
A sphere of radius has volume charge density of . Compute the total charge.
A sphere of radius is centered on the origin and has a surface charge density of , where is the spherical coordinate polar angle. Compute the total charge on the surface of the sphere.
When using Gauss’s law, one often needs to find the amount of charge enclosed in a surface. An example is computing the amount of charge inside of a cylinder that intersects a plane with a charge distribution .
A total of is uniformly distributed on a line of length . The blue Gaussian cylinder shown has a length , radius , and the same centerline as the charged line. Assume .
Find the charge density of the line.
Find an equation that relates and . Plot vs .
Answer:
1. Because the charge is uniformly distributed on the line, the the charge density is simply the total charge divided by the length: .
2. The dashed line in the figure is the part of the line inside of the Gaussian cylinder. The length of the dashed line is . The charge enclosed for all four cases is . In retrospect, one could have obtained this equation without considering the charge density – the charge enclosed is the total charge the ratio .
The equation for the charge enclosed does not depend on the radius of the Gaussian cylinder, and so the plot is a horizontal line with an amplitude of . Visually, this is expected. If the radius of the cylinder increases, the length of the line inside the cylinder does not change.
Check: As , we expect from the diagram that the amount of charge enclosed should approach zero. This equation also says that as the ratio , . Does this make sense?
A hollow cylinder of radius and length has a charge of distributed on its curved surface. The blue Gaussian cylinder shown has a length and radius and has the same centerline as the charged cylinder. Assume .
Find both the surface charge density of the charged cylinder and its charge per unit length.
Find an equation that relates and . Plot vs .
A solid cylinder of radius and length has a charge of uniformly distributed within it. The blue Gaussian cylinder shown has the same centerline as the charged cylinder, length , and radius . Assume .
Find the volume charge density of the charged cylinder and its charge per unit length.
Find an equation that relates and . Plot vs .
A solid cylinder of radius and length has a charge of uniformly distributed within it. The blue Gaussian cylinder shown has the same center line as the solid cylinder, length , and radius .
Find the volume charge density of the charged cylinder and its charge per unit length.
Find an equation that relates , the charge inside the Gaussian cylinder, and . Draw a plot of vs .
Answer
Note: An earlier version of this solution had in place of .
; , so
,
,
A sphere of radius has a charge of distributed on its surface.
Find the surface charge density on the sphere.
Find an equation that relates and for a Gaussian sphere of radius with the same center as the charged sphere. Plot vs .
A sphere of radius has a charge of distributed uniformly throughout it.
Find the charge density of the sphere.
Find an equation that relates and for a Gaussian sphere of radius with the same center as the charge sphere. Plot vs .
A solid sphere of radius that is centered on the origin has a charge density of .
Compute and plot the charge enclosed in a Gaussian sphere centered on the origin versus the radius of the Gaussian sphere.
Answer:
A common error was to write . This is only true if is constant within . To avoid this type of error, always start by writing the general equation: . (Do this for Gauss’s law in integral form – don’t start with , start with .)
:
:
A square sheet with side length has a charge of distributed uniformly on it. The blue Gaussian cylinder has a height and radius , and half of it is above the sheet.
Find the charge density of the sheet.
Find an equation that relates and for . Plot vs .