Electron Density in a Nanowire