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