Let us consider a spherical shell of thickness dx and radius x. The volume of this spherical shell =4πr2dr. The charge enclosed within shell =πR4Qr[4πr2dr] The charge enclosed in a sphere of radius r1 is R44Q0∫r1r3dr=R44Q[4r4]0r1=R4Qr14∴ The electric field at point p inside the sphere at a distance r1 from the center of the sphere isE=4πE01r12[R4Qr14]=4πE01R4Qr12