Let us consider a spherical shell of radius x and thickness dx.Charge on this shell dq=ρ⋅4π2dx=ρ0(45−Rx)⋅4πx2dx∴ Total charge in the spherical region from center to r(r<R) is q=∫dq=4πρ00∫r(45−Rx)x2dx=4πρ0[45⋅3r3−R1⋅4r4]=πρ0r3(35−Rr)∴ Electric field at r,E=4πE01⋅r2q=4πE01⋅r2πρ0r3(35−Rr)=4E0ρ0r(35−Rr)