A semiconducting nanowire has a volume charge density ρ(r)=ρ0(r/R) where R is the radius of the nanowire. How would you calculate the electric field inside the wire?
The Attempt at a Solution
I know that by symmetry the E field only points radially out. Using Gauss's law and finding the dq by integrating in terms of dr, a small ring in the gaussian cylinder. So would you integrate ρ0(r/R)2piLdr from 0 to r?