Hello! Welcome to your fourth lesson in the "Continuum and Fluid Mechanics" module.
In our previous lesson, we concluded our study of elementary solid mechanics by deriving the equations for bending, torsion, and buckling. We saw how applying fundamental principles to structural elements leads to powerful engineering models.
Today, we pivot from solids to fluids. We will begin our journey into fluid dynamics by deriving one of its most fundamental laws. This lesson is designed to address the learning outcome: Derive the continuity equation for fluid flow from the principle of mass conservation. This equation is the mathematical embodiment of the simple idea that mass is neither created nor destroyed in a flow.
To ensure a deep and robust understanding, we will derive this equation from two distinct but complementary perspectives:
- By analyzing an infinitesimal, fixed control volume using a Taylor series expansion.
- By analyzing a finite control volume and applying the powerful Gauss's Divergence Theorem.
This dual approach will not only solidify your understanding of the equation itself but also introduce you to the core mathematical techniques of fluid dynamics.
1. Frameworks for Describing Fluid Flow
Before we dive into derivations, we must first establish how we describe fluid motion. There are two primary viewpoints, which you will see used throughout your study of physics.
The following brief section from the MIT lecture notes on Fluids introduces these two crucial viewpoints. Understanding this distinction is key to interpreting the equations we will derive.
Please read the section titled 'Control Volumes' on the first page. Focus on the distinction between the Eulerian and Lagrangian control volumes.
To summarize:
- Lagrangian Viewpoint: You follow an individual fluid particle as it moves through space and time. This is like tracking a single car on a highway. The governing equations describe the properties (like velocity, acceleration, density) of that specific particle.
- Eulerian Viewpoint: You stay at a fixed point in space and observe the fluid as it flows past you. This is like standing on an overpass and watching the traffic go by. The governing equations describe the properties of the flow at fixed spatial coordinates .
Most of fluid mechanics, including the derivations we will do today, uses the Eulerian framework because it is often impractical to track every single fluid particle. However, the concept of a particle's acceleration is fundamentally Lagrangian. To bridge these two viewpoints, we need a special mathematical tool.
The Substantial Derivative
The substantial derivative, denoted , represents the rate of change of a property (like temperature or density) for a fluid particle that is moving with the flow. It connects the Lagrangian concept of a particle's change to the Eulerian field description. It is composed of a local part (change at a fixed point) and a convective part (change due to moving to a new location in the field).
Governing Equations of Fluid Dynamics
The following excerpt from J.D. Anderson's 'Governing Equations of Fluid Dynamics' provides a rigorous derivation and physical explanation of the substantial derivative. As you appreciate mathematical formalism, following this derivation will give you a deep understanding of this crucial operator.
Read Section 2.3, 'The Substantial Derivative' (pages 18-22). Follow the Taylor series argument that leads to Equation (2.5): ( rac{D}{Dt} \equiv rac{\partial}{\partial t} + (\vec{V} \cdot abla) ). Pay close attention to the physical meaning of the local and convective terms.
The key result is the definition of the substantial derivative operator:
where is the local (unsteady) derivative, and is the convective derivative. Understanding this operator is essential for the full derivation of the Navier-Stokes equations later on.
2. Derivation 1: The Differential Control Volume
Our first approach is to apply the principle of mass conservation to an infinitesimally small, stationary cubic volume of fluid. We will account for the mass flowing in and out of each face and equate the net outflow to the rate at which mass decreases inside the volume.

This method relies on using Taylor series to express the change in flow properties across this tiny volume. The following video provides a clear, step-by-step walkthrough of this derivation.
Fluid Mechanics Lesson 10B: The Continuity Equation
Dr. John Cimbala's lesson on the continuity equation offers a fantastic and rigorous derivation using the differential control volume method. It's a great example of applying calculus to a physical principle.
Watch from the beginning to 6:08. Follow the logic closely: Application of Taylor series to find the mass flux out of a face. Summing the net mass flux for all three dimensions (x, y, z). Equating the net flux to the rate of change of mass inside the control volume, ( rac{\partial ho}{\partial t} dV). Canceling terms to arrive at the final differential equation.
After summing the contributions from all six faces and equating the net outflow to the decrease of mass inside the volume, we arrive at the continuity equation in Cartesian coordinates:
Using the divergence operator , which in Cartesian coordinates is , we can write this much more compactly. If , then the equation becomes:
This is the conservation form of the continuity equation. It is one of the most important equations in fluid dynamics.
3. Derivation 2: The Integral Control Volume (Gauss's Theorem)
Our second approach is more general and showcases the power of vector calculus. We will start with a finite control volume with surface , and state the principle of mass conservation in an integral form.
The principle is:
The time rate of change of mass inside the volume is equal to the negative of the net rate at which mass flows out across the surface.
The MIT lecture notes provide a concise and mathematically elegant derivation using this integral approach. This method highlights the deep connection between differential and integral forms of physical laws.
Please read the section 'Mass Conservation' on page 2. Follow the steps from the integral statement (Equation 1) to the final differential form (Equation 2). The key step is the application of Gauss's Divergence Theorem.
Let's trace the key steps of the derivation:
-
Integral Statement: The principle of mass conservation is written as:
The left side is the rate of mass increase in volume . The right side is the net mass flux into the volume. -
Applying Gauss's Divergence Theorem: The divergence theorem states . Applying this to the right side of our equation (with ) transforms the surface integral into a volume integral:
-
Final Step: Since the control volume is fixed in space, we can bring the time derivative inside the integral. Combining all terms under one integral gives:
Because this equation must hold for any arbitrary control volume , the only way for the integral to always be zero is if the integrand itself is zero everywhere. This gives us the differential form:
We have arrived at the exact same equation as our first derivation, but through a more powerful and generalizable method.
4. Conservation vs. Non-Conservation Forms
The equation is in conservation form. We can use a vector identity to rewrite it in a different, but equivalent, non-conservation form that involves the substantial derivative we learned earlier.
Governing Equations of Fluid Dynamics
The J.D. Anderson text masterfully derives both forms of the equation and explicitly shows their equivalence. This is an important piece of theory to understand.
Please read from the bottom of page 27 to the top of page 28, starting from the vector identity ( abla \cdot ( ho \vec{V}) \equiv ho abla \cdot \vec{V} + \vec{V} \cdot abla ho). Follow the short derivation that transforms the conservation form into the non-conservation form.
As the text shows, by expanding , the continuity equation becomes:
Recognizing that the first two terms are the substantial derivative of density, , we get the non-conservation form:
5. Incompressible Flow: A Major Simplification
Many liquids (like water) and gases at low speeds can be modeled as incompressible, meaning their density is constant everywhere. This leads to a massive simplification of the continuity equation.
If is constant, then its derivative in time and space is zero. Therefore, the substantial derivative . The continuity equation reduces to:
Since , we must have:
This is the incompressible continuity equation. It is a simple but profound statement: the velocity field of an incompressible flow must be divergence-free. This means that fluid cannot accumulate at or spread out from any point in the flow.
To see what this looks like in different coordinate systems and how it's used in practice, let's return to Dr. Cimbala's video.
Fluid Mechanics Lesson 10B: The Continuity Equation
This next segment of the video discusses the simplifications for steady and incompressible flow and then presents the incompressible continuity equation in Cartesian and cylindrical coordinates, which is essential for problem-solving.
Watch from 5:54 to 9:12. Pay attention to: The reasoning behind the simplification for incompressible flow (( ho = ext{constant})). The physical meaning related to the infinite speed of sound in an incompressible fluid. The final forms of the equation in Cartesian and cylindrical coordinates.
The incompressible continuity equation in Cartesian coordinates is:
This is a powerful constraint that any valid incompressible velocity field must satisfy.
Test your understanding!
Consider a 2D, incompressible velocity field given by , where . Find the most general form of the y-component of velocity, , that satisfies the continuity equation.
Show answer
For a 2D incompressible flow, the continuity equation is .
First, we calculate :
Now, we substitute this into the continuity equation:
To find , we integrate this expression with respect to , treating as a constant:
The "constant" of integration is not necessarily a true constant, but can be any arbitrary function of , since its partial derivative with respect to would be zero. Therefore, the most general form for is .
Conclusion
In this lesson, we have rigorously derived the continuity equation, the mathematical statement of mass conservation in a fluid. This is the first of the fundamental governing equations of fluid dynamics.
Key Takeaways:
- The principle of mass conservation can be expressed for a fluid flow as the continuity equation.
- The general, compressible form is .
- This equation can be derived by analyzing either a differential element (using Taylor series) or an integral volume (using the Divergence Theorem).
- For an incompressible flow (), the equation simplifies dramatically to . This means the velocity field must be divergence-free.
Preview of the Next Lesson:
With mass conservation established, we will next turn to the conservation of energy. In our next lesson, we will derive and apply Bernoulli's equation for ideal, incompressible, steady fluid flow. This famous equation relates pressure, velocity, and height in a moving fluid and is a cornerstone of aerodynamics and hydraulics.