A nonconducting solid sphere of radius R carries a volume charge density that is proportional to the distance from the center: ? = Ar for r ? R, where A is a constant; ? = 0 for r > R.
(a) Find the total charge in the sphere by summing the charges on shells of thickness dr and volume 4?r2dr.
(b) Find the electric field Er both inside and outside the charge distribution.