For a spherically symmetric charge distribution the electric field at a distance r from the centre depends only on the total charge enclosed inside a Gaussian sphere of radius r. By Gauss’s law,
∮E⋅dS=E(4πr2)=ε0Qenc⟹E=4πε01r2Qenc
Hence we first calculate Qenc for r<R.
Charge density in the sphere is given by ρ(r)=ρ0(45−Rr).
A thin shell of radius r′ and thickness dr′ has volume dV=4πr′2dr′, so the charge in this shell is
dq=ρ(r′)dV=ρ0(45−Rr′)4πr′2dr′
Total charge enclosed within radius r:
Qenc=∫0r4πρ0(45−Rr′)r′2dr′=4πρ0∫0r(45r′2−Rr′3)dr′=4πρ0[453r′3−4Rr′4]0r=4πρ0(125r3−4Rr4)=4πρ0r3(125−4Rr)
Insert this Qenc into Gauss’s law:
E=4πε01r24πρ0r3(125−4Rr)=ε0ρ0r(125−4Rr)
Simplify the bracket by taking the common denominator 12R:
125−4Rr=12R5R−3r
Thus
E=ε0ρ0r12R5R−3r=12ε0Rρ0r(5R−3r)
Factor out 41 to match the given options:
E=4ε0ρ0r(35−Rr)
This expression corresponds to Option B.
Option B which is: 4ε0ρ0r(35−Rr)