# Continuity equation for compressible fluid

A question is given as

Consider a fluid of density $\rho(x, y, z, t)$ which moves with velocity $v(x, y, z, t)$ without sources or sink. Show that $\nabla \cdot \vec J + \frac{\partial \rho }{\partial t} = 0 ;$ where $\vec J = \rho \vec v \hspace{0.5 cm}$ ( $\vec v$ being velocity of fluid and $\rho$ density).

In the solution it assumes, $- \nabla \cdot \vec J$ is the change in $\vec J$ within the volume element which should be equal to $\frac{\partial \rho}{\partial t}$ (why equal?). I don't understand this part and I doubt if this question is correct. I think the question should be $$\rho (\nabla \cdot \vec v) + \frac{\partial \rho}{\partial t} = 0$$ Is the question correct? If it's correct help me to understand the solution (if it's right) or please provide me correct answer. Thank you!!

-

The continuity equation without sink and sources reads

$$\frac{\partial \rho }{\partial t} + \nabla \cdot (\rho\vec v) ~=~ 0.$$

Hint on how to derive it:

1. Establish first the integral form of the continuity equation for an arbitrary (sufficiently regular) 3D spatial integration region.

2. Next use the definition of the 3D divergence to argue the differential form of the continuity equation.

The continuity equation can be rewritten with the help of a material derivative $\frac{D \rho }{D t}$ as

$$\frac{D \rho }{D t} + \rho \nabla \cdot \vec v ~=~ 0.$$

Thus for an incompressible fluid $\nabla \cdot \vec v = 0$, the density $\rho$ of a certain fluid parcel does not change as a function of time.

-
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 1, "mathjax_display_tex": 1, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.9767456650733948, "perplexity": 182.72618478386542}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2015-35/segments/1440645311026.75/warc/CC-MAIN-20150827031511-00280-ip-10-171-96-226.ec2.internal.warc.gz"}