Click ex4-1D-electron-gas.pdf link to view the file.