# Introduction to Mathematical Physics/Continuous approximation/Matter conservation

Setting ${\displaystyle A_{i}=\rho ={\frac {dm}{d\tau }}}$ in equation eqcon one obtains the matter conservation equation:

${\displaystyle {\frac {\partial \rho }{\partial t}}+{\mbox{ div }}(\rho u)=0}$

${\displaystyle \rho }$ is called the volumic mass. This law can be proved by calculations using elementary fluid volumes. So, variation of mass ${\displaystyle M}$ in volume ${\displaystyle d\tau }$ per time unit is opposed to the outgoing mass flow:

${\displaystyle {\frac {dM}{dt}}=-\int _{d\tau }\rho vdr}$

Local form of this equation is thus:

${\displaystyle {\frac {\partial \rho }{\partial t}}+{\mbox{ div }}(\rho u)=0}$

But this law can also be proved in calculating the first moment of the Vlasov equation (see equation eqvlasov). Volumic mass is then defined as the zeroth order moment of the repartition function times mass ${\displaystyle m}$ of one particle:

${\displaystyle \rho =m\int dpf(r,p,t)}$

Taking the first moment of Vlasov equation, it yields:

${\displaystyle {\frac {\partial \rho }{\partial t}}+\nabla (\rho v)=0}$

Charge conservation equation is completely similar to mass conservation equation:

${\displaystyle {\frac {\partial \rho }{\partial t}}+{\mbox{ div }}{j}=0}$

where here ${\displaystyle \rho }$ is the volumic charge and ${\displaystyle j}$ the electrical current density:

${\displaystyle j=\rho v}$

Flow of ${\displaystyle j}$ trough an open surface ${\displaystyle S}$ is usually called electrical current going through surface ${\displaystyle S}$.