Question
Let there be a spherically symmetric charge distribution with charge density varying as upto r = R, and ρ(r) = 0 for r > R, where r is the distance from the origin. The electric field at a distance r ( r < R) from the origin is given by
Solution
B.

Apply shell theorem, the total charge upto distance r can be calculated as follows