Electric Field and Potential in One Dimension