A non-conducting solid sphere of radius R has a volume charge density that is proportional to the distance from the center, i.e., p = ar^2 for r ≤ R, where A is the constant.
a) Find the total charge on the sphere.
b) Find the expressions for the electric field inside the sphere (r < R) and outside the sphere (r > R).