i got a better methord of solving such problems.
instead of considering multiple shells just consider one gaussian concentric sphere such that it touches the pt at which the ele fld has to be calc.
frm gauss eq
here

q
=
[ 0]
[x] dq =
[ 0]
[x]
o(r
2-r
3/a)dr
and,

EdA=EA= E 4

x
2 sub and solve u get E as the same. the steps r similar to the previous methord but the one is easier to understand.

EdA=EA is apllicable due to spherical symmetry(where A is the surface area of the gaussian sur). all u need to do is to calcutate the total charge enclosed and just plug it in the eq
this is applicable to any type of spherical charge dist evn a non conducting sphere.( this is 4 u akku).