Analytical Solutions For 1D Displacement By Gases