# Electric field inside a sphere of charge density A/r

by Repetit
Tags: a or r, charge, density, electric, field, inside, sphere
 P: 129 What is the electric field inside a sphere of radius R when the charge density is given by: $$\rho=\frac{A}{r}$$ Where A is a constant, and r is the radius at where the charge density is to be evaluated. By Gauss' law I have calculated the field to be equal to: $$E=\frac{A}{2\epsilon_0}$$ But that seems quite odd as the field is then independent of the radius. But could this be explained by the fact that the charge density is inversely proportional to the radius? Thanks!
 P: 308 That's correct. If you integrate the charge density over a sphere of radius R it's a little easier to see why this is so: $$\int_0^R \int_0^{2 \pi} \int_0^{\pi} \rho r^2 \sin^2\theta d\theta d\phi dr$$ $$\int_0^R \int_0^{2 \pi} \int_0^{\pi} A r \sin^2\theta d\theta d\phi dr$$ $$A 4 \pi \int_0^R r dr$$ $$A 2 \pi R^2$$ So, the ammount of charge which is inside a sphere of radius R increases with the square of the radius. The surface area of that sphere which the electric field lines are spread out over also increases with R^2, although it's larger by a factor of two. This is why there is no R dependence on the electric field, the two competing effects of total charge and surface area over which the electric field is spread cancel out.
 P: 60 I'm just starting my second Calculus course, those nested integrals look fun
P: 308

## Electric field inside a sphere of charge density A/r

 Quote by Ubern0va I'm just starting my second Calculus course, those nested integrals look fun
It's really not bad, you just start on the inside and work your way out. With a lot of problems you run into the same integrals over and over again and you just end up memorizing the answer, for instance:

$$\int_0^{2 \pi} \int_0^{\pi} \sin^2\theta d\theta d\phi = 4 \pi$$

comes up all the time (such as in this problem).
 P: 1 This is good, except I'm pretty sure the volume element on that integral is r2 sin[theta] dr d[theta] d[phi] for spherical coordinates instead of having a sin2 [theta] component. This is from Griffith's Intro to E&M

 Related Discussions Introductory Physics Homework 10 Advanced Physics Homework 5 Introductory Physics Homework 0 Advanced Physics Homework 5 Introductory Physics Homework 1