Answer:
Electric field,

Given:
charge density,

a = constant
Solution:
Area of sphere =

Small charge dq on a sphere of thickness r is:
dq =

dq =
(1)
Integrating both the sides, we get:



Therefore, the total charge enclosed by a sphere of radius r is

Now, by Gauss Law, flux emerging out of the surface is equal to
times the total charge enclosed:




where
E = electric field