An infinite, uniformly charged sheet with surface charge density σ cuts through a spherical Gaussian surface of radius R at a distance x from its center, as shown in the figure. The electric flux Φ through the Gaussian surface is :
Here the infinite sheet inside the spherical Gaussian surface is a circular sheet of radius a=√R2−x2
using Gauss's law, the electric flux, ϕ=Qenclosedϵ0
here, Qenclosed=πa2σ=π(R2−x2)σ
thus, ϕ=π(R2−x2)σϵ0