Deriving Feild from Gauss law is sometimes confusing for Students
Remember these three steps to Derive the field of Some Symmetrical Surface.
Step 1 Define the Gaussian Surface
Step 2 Find Flux through the surface using the Definition of Flux
Step 3 Find Flux using Gauss Law and Equate with value in step 2