The field outside the sphere is what it would be if all the charge is concentrated at the origin of the sphere. For , a fraction of the total charge is enclosed within the gaussian surface, so that
The field inside is