The Derivation of Conservation Laws

To see how conservation laws arise from physical principles, we will begin by deriving the equation for conservation of mass in a one-dimensional gas dynamics problem, for example flow in a tube where properties of the gas such as density and velocity are assumed to be constant across each cross section of the tube. Let x represent the distance along the tube and let p(x, t) be the density of the gas at point x and time t.