Coulomb's law to find electric field for charge density function

AI Thread Summary
The discussion focuses on calculating the electric field from a given volumetric charge density using Coulomb's law. The initial approach involved direct integration, but participants noted that this method leads to complex integrals, making it less practical. Instead, they recommended using Gauss's law, which simplifies the problem significantly due to the symmetry of the charge distribution. Concerns were raised about the charge density potentially growing without limit, suggesting the need for limits on the radius. Ultimately, while direct integration is possible, applying Gauss's law is the preferred method for this scenario.
Su6had1p
Messages
8
Reaction score
3
Thread moved from the technical forums to the schoolwork forums
The volumetric charge density is given as

$$\rho(r) = \rho_0 \left(1 - \frac{ar}{R}\right)$$

What shall be the Electric field at any distance ##r## ?

My approach was to directly use the coulomb's law and integrate with respect to volume.
$$ \mathbf{E}(\mathbf{r}) = \frac{1}{4\pi\epsilon_0} \int \frac{\rho({r})}{r^2} d\tau $$
$$E(r) = K \rho_0 \int_V \left(1 - \frac{ar}{R}\right) \frac{1}{r^2} r^2 \sin \theta dr d\theta d\phi $$
$$E(r) = K \rho_0 4\pi \int_0^r \left(1 - \frac{ar}{R}\right) dr $$
$$E(r) = K \rho_0 4\pi (r- \frac{ar^2}{2R})$$
$$E(r) = \frac{\rho_0}{\epsilon_0} (r- \frac{ar^2}{2R})$$

But this wrong according to my answer key and all the websites I've searched, use gauss law to get ##\vec{E}##.
My question is what did I get wrong, and can't this problem be solved using coulomb's law
 
Last edited by a moderator:
Physics news on Phys.org
Su6had1p said:
what did I get wrong

Coulomb's law ?

1722000796537.png



##\ ##
 
  • Like
Likes Delta Prime, nasu and Orodruin
BvU said:
This. The actual integrals you obtain from applying Coulomb’s law are rather nasty. This is why applying Gauss’ law makes this problem soooo much simpler.
 
I think the problem should set a limit to the charge density (r<???). Otherwise, the charge density grows without limit and we could get nasty results.
 
Last edited by a moderator:
Gordianus said:
I think the problem should set a limit to the charge density (r<???). Otherwise, the charge density grows without limit and we could get nasty results.

I second this notion. I assume ##R## is the radius of the sphere. So you have to specify whether ##r## is less than or greater than ##R##

you really ought to use Gauss’ Law as suggested above otherwise your r^2 term becomes really complicated because you have to realize that not every point on the sphere is the same distance from the field point. Furthermore you have to account for components (even if they are cancelled by symmetry)
 
BvU said:
ok, lets apply this formula!
what does it change ?
as far my thinking goes-
this integral simply adds up the product of elemental charges with the function next to them, now take for instance this ##\rho(r')## describes charge density for a sphere of radius ##R##. Now in the interior of the sphere suppose at an arbitrary distance ##r<R##, we wish to evaluate the integral, wouldn't that mean ##r'=r## ? But then we run into another problem...
 
Orodruin said:
This. The actual integrals you obtain from applying Coulomb’s law are rather nasty. This is why applying Gauss’ law makes this problem soooo much simpler.
damn!!!! a whole prof. engaging in my doubts ! thanks, and please point out if im conceptually wrong somewhere.
 
You aren't wrong. If you feel up to it, write down Coulomb's law integrand, just the integrand.
 
  • #10
Hopefully I'm not breaking PF rules but I'm going to (partially) do what @Gordianus said which is set up the integral for part ##a## and then you should ask yourself if direct integration is the best approach (I get a feeling you will find that it is not)

We know a priori the field is radially symmetric because the charge density depends solely on the radial distance so we can arbitrarily set ## \vec{r} = \left(\frac{R}{2},0,0\right)##. We know that ##\vec{r}' = \left( r' \sin \theta' \cos \phi', r' \sin \theta' \sin \phi', r' \cos \phi' \right)##

Given your ##\rho = \rho_0 \left( 1 - \frac{ar’}{R}\right)##, ##d \tau' = r'^{2} \sin \theta' d \theta' d \phi'## and your ##\vec{r}## and ##\vec{r}'##

is ##E_r = \frac{1}{4 \pi \epsilon_0} \int \,\frac{\rho \left(r’\right)}{\left| \vec{r} - \vec{r}' \right|^2} d\tau'## really something you want to tackle?
 
Last edited:
  • #11
PhDeezNutz said:
Hopefully I'm not breaking PF rules but I'm going to (partially) do what @Gordianus said which is set up the integral for part ##a## and then you should ask yourself if direct integration is the best approach (I get a feeling you will find that it is not)

We know a priori the field is radially symmetric because the charge density depends solely on the radial distance so we can arbitrarily set ## \vec{r} = \left(\frac{R}{2},0,0\right)##. We know that ##\vec{r}' = \left( r' \sin \theta' \cos \phi', r' \sin \theta' \sin \phi', r' \cos \phi' \right)##

Given your ##\rho = \rho_0 \left( 1 - \frac{ar}{R}\right)##, ##d \tau' = r'^{2} \sin \theta' d \theta' d \phi'## and your ##\vec{r}## and ##\vec{r}'##

is ##E_r = \frac{1}{4 \pi \epsilon_0} \int \,\frac{\rho \left(r\right)}{\left| \vec{r} - \vec{r}' \right|^2} d\tau'## really something you want to tackle?
No, it would be very difficult, I get your point.
 
  • #12
PhDeezNutz said:
should ask yourself if direct integration is the best approach (I get a feeling you will find that it is not)
While definitely not the easiest way forward, it should be pointed out that it is certainly possible to solve the integral. It essentially amounts to deriving Newton’s shell theorem by integration and is a pretty nice exercise in multivariable integration if one feels like it.

The easiest way of course is applying symmetry arguments and Gauss’ law, as mentioned earlier.
 
Back
Top