AnyLearn
All lessons
Scienceadvanced

The Navier-Stokes Equations: Newton's Second Law for a Fluid

Build the equations of fluid motion from conservation of mass and momentum: the continuum idea, the material derivative, viscosity, the Navier-Stokes equations term by term, an exact pipe-flow solution, the Reynolds number, vorticity, and the Millennium Prize question that is still open.

Updated · AI-authored, review-gated · how lessons are made

Progress1 / 12

A fluid as a continuum

Air and water are made of molecules, but fluid dynamics pretends they are not. It treats velocity u(x,t)\mathbf{u}(\mathbf{x}, t), pressure p(x,t)p(\mathbf{x}, t) and density ρ(x,t)\rho(\mathbf{x}, t) as smooth fields defined at every point, averaged over a "parcel" small compared with the flow and large compared with the spacing of molecules.

Definition: the continuum hypothesis holds when the Knudsen number Kn=λ/L\mathrm{Kn} = \lambda / L is small, where λ\lambda is the mean free path between molecular collisions and LL is the size of the flow feature you care about.

Kinetic theory, with an effective molecular diameter of about 0.37 nm, gives a mean free path of roughly 65 nm for sea-level air. Against a 4 m wing chord, Kn≈2×10−8\mathrm{Kn} \approx 2 \times 10^{-8}: the continuum picture is superb. It degrades in the thin upper atmosphere, where re-entering spacecraft fly, and in nanoscale channels, where λ\lambda becomes comparable to LL and a molecular description takes over.

Everything that follows is three conservation laws written for these fields: mass, momentum and, for compressible flows, energy.

Sign in free to save your progress and earn certificates.

Full lesson text

All 12 steps on one page, for reading, reference, and search.

Show

1. A fluid as a continuum

Air and water are made of molecules, but fluid dynamics pretends they are not. It treats velocity u(x,t)\mathbf{u}(\mathbf{x}, t), pressure p(x,t)p(\mathbf{x}, t) and density ρ(x,t)\rho(\mathbf{x}, t) as smooth fields defined at every point, averaged over a "parcel" small compared with the flow and large compared with the spacing of molecules.

Definition: the continuum hypothesis holds when the Knudsen number Kn=λ/L\mathrm{Kn} = \lambda / L is small, where λ\lambda is the mean free path between molecular collisions and LL is the size of the flow feature you care about.

Kinetic theory, with an effective molecular diameter of about 0.37 nm, gives a mean free path of roughly 65 nm for sea-level air. Against a 4 m wing chord, Kn≈2×10−8\mathrm{Kn} \approx 2 \times 10^{-8}: the continuum picture is superb. It degrades in the thin upper atmosphere, where re-entering spacecraft fly, and in nanoscale channels, where λ\lambda becomes comparable to LL and a molecular description takes over.

Everything that follows is three conservation laws written for these fields: mass, momentum and, for compressible flows, energy.

2. Following the fluid: the material derivative

There are two ways to describe a flow. The Lagrangian view follows individual parcels. The Eulerian view, used almost everywhere in practice, watches fixed points in space. Newton's second law applies to a parcel, so we need the rate of change seen by a parcel expressed in Eulerian fields:

DuDt=∂u∂t⏟local change+(u⋅∇)u⏟advection\frac{D\mathbf{u}}{Dt} = \underbrace{\frac{\partial \mathbf{u}}{\partial t}}_{\text{local change}} + \underbrace{(\mathbf{u} \cdot \nabla)\mathbf{u}}_{\text{advection}}

The second term says a parcel's velocity changes even in a perfectly steady flow if it moves to a place where the velocity is different. Water speeding up through a nozzle accelerates, although the velocity at every fixed point never changes.

Key idea: the advective term (u⋅∇)u(\mathbf{u} \cdot \nabla)\mathbf{u} multiplies the velocity by its own gradient. That product is the nonlinearity of fluid mechanics, and almost everything hard about the subject, from turbulence to the open mathematical problem at the end of this lesson, traces back to it.

3. Mass conservation: the continuity equation

Mass in a small fixed box changes only by what flows through its faces. In differential form:

∂ρ∂t+∇⋅(ρ u)=0\frac{\partial \rho}{\partial t} + \nabla \cdot (\rho\,\mathbf{u}) = 0

If parcels keep their density as they move, Dρ/Dt=0D\rho/Dt = 0, this collapses to a purely kinematic constraint:

∇⋅u=0\nabla \cdot \mathbf{u} = 0

Whatever flows into a region must flow out. That is why a river speeds up where it narrows, and why squeezing the end of a garden hose makes the jet faster.

Predict first

Air is obviously compressible. At what flight speed does treating it as incompressible become a real error?

4. Forces on a parcel: pressure and viscous stress

Newton's second law per unit volume, for any continuum, is Cauchy's momentum equation:

ρDuDt=−∇p+∇⋅τ+ρ g\rho \frac{D\mathbf{u}}{Dt} = -\nabla p + \nabla \cdot \boldsymbol{\tau} + \rho\,\mathbf{g}

Pressure pushes parcels from high to low. The viscous stress τ\boldsymbol{\tau} is friction between neighbouring layers moving at different speeds. A Newtonian fluid is one where that stress is proportional to the rate of strain: for incompressible flow, τ=μ (∇u+∇uT)\boldsymbol{\tau} = \mu\,(\nabla\mathbf{u} + \nabla\mathbf{u}^{\mathsf{T}}), with one constant, the dynamic viscosity μ\mu. Air, water and most simple liquids qualify; blood, paint and ketchup do not.

FluidDynamic viscosity μ\muKinematic viscosity ν=μ/ρ\nu = \mu/\rhoSource
Water, 20 C1.002×10−31.002 \times 10^{-3} Pa s1.00×10−61.00 \times 10^{-6} m²/sNIST (Swindells, Coe and Godfrey, 1952)
Air, sea level, 15 C1.789×10−51.789 \times 10^{-5} Pa s1.46×10−51.46 \times 10^{-5} m²/sU.S. Standard Atmosphere, 1976

Gotcha: air is about 56 times less viscous than water by μ\mu, yet about 15 times more viscous by ν\nu, because it is so light. Momentum diffuses through a fluid at a rate set by ν\nu, so for flow behaviour the kinematic viscosity is the one that matters.

5. The incompressible Navier-Stokes equations, term by term

Substitute the Newtonian stress into Cauchy's equation, use ∇⋅u=0\nabla \cdot \mathbf{u} = 0, and divide by ρ\rho. Claude-Louis Navier reached this form in 1822 from a molecular model; George Gabriel Stokes derived it on continuum grounds in 1845:

∂u∂t+(u⋅∇)u=−1ρ∇p+ν∇2u+g,∇⋅u=0\frac{\partial \mathbf{u}}{\partial t} + (\mathbf{u} \cdot \nabla)\mathbf{u} = -\frac{1}{\rho}\nabla p + \nu \nabla^2 \mathbf{u} + \mathbf{g}, \qquad \nabla \cdot \mathbf{u} = 0
TermPhysical meaningMathematical character
∂u/∂t\partial \mathbf{u}/\partial tlocal accelerationtime evolution
(u⋅∇)u(\mathbf{u} \cdot \nabla)\mathbf{u}advection: the flow carrying its own momentumnonlinear
−∇p/ρ-\nabla p/\rhopush from high to low pressureenforces ∇⋅u=0\nabla \cdot \mathbf{u} = 0
ν∇2u\nu \nabla^2 \mathbf{u}viscous diffusion of momentumsmoothing, like heat conduction
g\mathbf{g}gravity or other body forcesource

Four unknowns, ux,uy,uz,pu_x, u_y, u_z, p, and four equations. In incompressible flow pressure has no equation of its own: it takes whatever value keeps the velocity field divergence-free at every instant, which is why pressure can respond instantly across the whole domain.

6. From conservation laws to Navier-Stokes

Each box adds one assumption; the arrows show which law or modelling choice it rests on.

flowchart TD
  A["Continuum hypothesis: smooth fields u, p, rho"]
  B["Conservation of mass"]
  C["Continuity equation"]
  D["Newton's second law for a parcel"]
  E["Cauchy momentum equation"]
  F["Newtonian stress: proportional to strain rate"]
  G["Constant density: div u = 0"]
  H["Incompressible Navier-Stokes equations"]
  A --> B
  A --> D
  B --> C
  D --> E
  C --> G
  E --> H
  F --> H
  G --> H

7. An exact solution: flow down a pipe

Exact solutions are rare, but steady flow in a long straight pipe of radius RR is one. The velocity is purely along the axis and depends only on the distance rr from it, so the nonlinear term vanishes identically and the equations reduce to a balance between pressure drop and viscosity. With no slip at the wall:

u(r)=Δp4μL(R2−r2),Q=πR4Δp8μLu(r) = \frac{\Delta p}{4\mu L}\left(R^2 - r^2\right), \qquad Q = \frac{\pi R^4 \Delta p}{8 \mu L}

A parabolic profile, fastest on the axis, and the Hagen-Poiseuille law for the flow rate QQ, found experimentally by Gotthilf Hagen in 1839 and Jean Poiseuille in 1840, before the equations that explain it.

Worked numbers: water (μ=1.002×10−3\mu = 1.002 \times 10^{-3} Pa s) through a pipe 1 cm across and 1 m long, driven by a pressure drop of 10 Pa, gives Q≈2.4×10−6Q \approx 2.4 \times 10^{-6} m³/s, about 0.15 litres per minute, at a mean speed of 3.1 cm/s.

In practice: the R4R^4 is brutal. Halve a pipe's radius and, at the same pressure drop, the flow falls by a factor of 16. The solution also only exists while the flow stays laminar, which is the subject of the next lesson.

8. Making it dimensionless: the Reynolds number

Pick a characteristic speed UU and length LL for a flow. Measure velocity in units of UU, lengths in units of LL, time in units of L/UL/U and pressure in units of ρU2\rho U^2. Dropping gravity, the Navier-Stokes equation becomes

∂u∗∂t∗+(u∗⋅∇∗)u∗=−∇∗p∗+1Re ∇∗2u∗,Re=ULν\frac{\partial \mathbf{u}^*}{\partial t^*} + (\mathbf{u}^* \cdot \nabla^*)\mathbf{u}^* = -\nabla^* p^* + \frac{1}{\mathrm{Re}}\,\nabla^{*2}\mathbf{u}^*, \qquad \mathrm{Re} = \frac{U L}{\nu}

One number is left. The Reynolds number estimates the ratio of inertial to viscous effects: advection scales as U2/LU^2/L, viscous diffusion as νU/L2\nu U/L^2, and their ratio is UL/νUL/\nu.

Key idea: two geometrically similar flows with the same Reynolds number obey the same dimensionless equations, so they have the same dimensionless solution. This dynamic similarity is what makes scale models useful: a model in a wind tunnel predicts the full-size aircraft only if the Reynolds number (and, at speed, the Mach number) is matched or corrected for. Pressurised and cryogenic wind tunnels exist to push a small model's Reynolds number up toward flight values.

9. Reynolds numbers across twelve orders of magnitude

The same equation governs a swimming bacterium and an airliner wing; only Re\mathrm{Re} changes. The speeds and sizes below are illustrative round numbers; the viscosities are the NIST and U.S. Standard Atmosphere values from earlier.

NU_WATER = 1.002e-3 / 998.2     # m^2/s at 20 C
NU_AIR_SL = 1.789e-5 / 1.225    # sea level, 15 C
NU_AIR_11KM = 1.4216e-5 / 0.3639  # 11 km altitude

flows = [
    ("bacterium, 2 um at 30 um/s",   30e-6, 2e-6,   NU_WATER),
    ("human swimmer, 2 m at 1.5 m/s", 1.5,  2.0,    NU_WATER),
    ("golf ball drive, 43 mm at 70 m/s", 70, 0.0427, NU_AIR_SL),
    ("car, 4.5 m at 30 m/s",         30,    4.5,    NU_AIR_SL),
    ("airliner wing chord, 4 m at 230 m/s", 230, 4.0, NU_AIR_11KM),
]
for name, U, L, nu in flows:
    print(f"{name:38s} Re = {U * L / nu:.1e}")

Output:

bacterium, 2 um at 30 um/s             Re = 6.0e-05
human swimmer, 2 m at 1.5 m/s          Re = 3.0e+06
golf ball drive, 43 mm at 70 m/s       Re = 2.0e+05
car, 4.5 m at 30 m/s                   Re = 9.2e+06
airliner wing chord, 4 m at 230 m/s    Re = 2.4e+07

The bacterium and the airliner differ by a factor of about 4×10114 \times 10^{11}. They live in physically different worlds, governed by the same equation.

10. Two limits, and why neither is simple

The Reynolds number suggests two simplifications. Both are useful, and one hides a trap.

Stokes flow, Re→0\mathrm{Re} \to 0Euler flow, Re→∞\mathrm{Re} \to \infty
Equation0=−∇p+μ∇2u0 = -\nabla p + \mu \nabla^2 \mathbf{u}Du/Dt=−∇p/ρD\mathbf{u}/Dt = -\nabla p / \rho
Characterlinear, instantaneous, reversiblenonlinear, inviscid
Wall conditionno slipfluid may slide along walls
Typical worldbacteria, sperm, honey off a spoon, lubrication filmsthe flow away from walls around aircraft and ships

At low Re\mathrm{Re} inertia is irrelevant. E. M. Purcell's 1977 lecture "Life at low Reynolds number" (American Journal of Physics) showed the striking consequence: a swimmer that only opens and closes one hinge, like a scallop, goes nowhere, because reversing the stroke exactly reverses the motion. Microorganisms swim with rotating or travelling-wave flagella instead.

Gotcha: setting ν=0\nu = 0 deletes the highest derivative, ∇2u\nabla^2\mathbf{u}, so the Euler equations cannot satisfy no slip. The high-Re\mathrm{Re} limit is a singular one: viscosity never becomes negligible in a thin layer next to every wall. Ignoring that layer predicts that bodies feel no drag at all, a famous failure examined in the next lesson.

11. Vorticity and circulation

Two more quantities carry through to turbulence and to lift. Vorticity is the local spin of the fluid, and circulation is its total around a closed loop CC:

ω=∇×u,Γ=∮Cu⋅dl=∬Sω⋅dS\boldsymbol{\omega} = \nabla \times \mathbf{u}, \qquad \Gamma = \oint_C \mathbf{u} \cdot d\mathbf{l} = \iint_S \boldsymbol{\omega} \cdot d\mathbf{S}

Taking the curl of the Navier-Stokes equation eliminates pressure and gives the vorticity equation:

DωDt=(ω⋅∇)u+ν∇2ω\frac{D\boldsymbol{\omega}}{Dt} = (\boldsymbol{\omega} \cdot \nabla)\mathbf{u} + \nu \nabla^2 \boldsymbol{\omega}

The first term on the right is vortex stretching: a vortex tube that is stretched gets thinner and spins faster, like a skater pulling in their arms. It exists only in three dimensions, and it drives the cascade of turbulent eddies to small scales. The second term diffuses vorticity like heat.

Key idea: Kelvin's circulation theorem (1869) states that in inviscid flow with constant density and conservative body forces, the circulation around a loop moving with the fluid never changes. Fluid that starts without vorticity stays without it, so in real flows vorticity is born at solid walls, through viscosity. That fact is the seed of the lift explanation in the final lesson.

12. What is still unknown, and what engineers do anyway

The equations are nearly two centuries old, and a basic mathematical question about them is open. In 2000 the Clay Mathematics Institute made it one of its seven Millennium Prize Problems, with a prize of one million US dollars. In the official statement by Charles Fefferman, the question is whether, in three dimensions, smooth, rapidly decaying initial velocity fields always lead to solutions that stay smooth for all time, or whether a solution can develop a singularity, an infinite velocity gradient, in finite time.

  • Two dimensions: settled. Smooth solutions exist for all time, a classical result from the work of Jean Leray and Olga Ladyzhenskaya, among others.
  • Three dimensions: Leray proved in 1934 that weak solutions exist, but whether they stay smooth and unique is unknown. Vortex stretching, absent in 2D, is the term that could in principle concentrate vorticity without limit.

In practice: engineering does not wait for the proof. Computational fluid dynamics discretises the equations on a mesh and solves them numerically; the methods themselves belong to numerical analysis, and the practical limit is set by turbulence, whose range of scales grows rapidly with Reynolds number. The next lesson explains that limit, and the boundary layers where viscosity refuses to disappear.

Check your understanding

The lesson ends with a 5-question quiz. Take it in the player above to see your score.

  1. Why does the term (u dot grad) u make the Navier-Stokes equations hard to solve?
    • It is the only term containing pressure
    • It multiplies the velocity by its own gradient, making the equations nonlinear
    • It vanishes in steady flow, so it cannot be measured
    • It contains the viscosity, which is hard to measure
  2. Air has a much smaller dynamic viscosity than water. Which statement about their kinematic viscosities is correct?
    • They are equal, because kinematic viscosity is a universal constant
    • Air's kinematic viscosity is also smaller, by about the same factor
    • Kinematic viscosity only applies to liquids
    • Air's kinematic viscosity is about 15 times larger, because air is so much less dense
  3. A 1:10 scale model is tested in the same air at the same speed as the full-size object. How does the model's Reynolds number compare?
    • It is 10 times smaller, so the flows are not dynamically similar
    • It is the same, because the fluid is the same
    • It is 10 times larger
    • It is 100 times smaller, because area scales with length squared
  4. At the same pressure drop, what happens to laminar flow rate in a pipe whose radius is halved?
    • It halves
    • It falls by a factor of 4
    • It falls by a factor of 16
    • It stays the same, because the pressure drop is unchanged
  5. Why is the infinite-Reynolds-number limit of the Navier-Stokes equations called singular?
    • Because the pressure becomes infinite
    • Because dropping viscosity removes the highest derivative, so the no-slip condition can no longer be met and thin viscous layers persist at walls
    • Because the continuity equation stops holding
    • Because the flow becomes time-reversible

Related lessons

Science
intermediate

Boundary Layers and Turbulence: Where Viscosity Refuses to Vanish

Why inviscid theory predicts zero drag, and how Prandtl's boundary layer fixed it. Work through layer thickness on a real wing, separation and wakes, Reynolds' pipe experiment and the onset of turbulence, the drag crisis behind golf-ball dimples, Kolmogorov's cascade, the closure problem, and why turbulence limits simulation.

11 steps·~17 min
Science
intermediate

Why Aircraft Fly: Lift, Circulation, and the Equal Transit Time Myth

Why the popular equal-transit explanation of lift is wrong, and what actually happens: flow turning, pressure from curved streamlines, Bernoulli used correctly, circulation and the Kutta condition, thin-airfoil theory and stall, a worked airliner example, and the tip vortices behind induced drag.

11 steps·~17 min
Math
intermediate

Symmetry Groups: Crystals, Conservation Laws, and Neural Networks

Group theory earns its keep when a symmetry argument settles a physical question no calculation was going to answer. This lesson covers group actions and counting up to symmetry, why crystals cannot have five-fold rotation and what happened when one did, Noether's link between symmetry and conservation, and how the same idea is built into modern networks.

10 steps·~15 min
Science
advanced

Why Nobody Deploys It: The Gap Between Proof and Product

QKD has an unconditional security proof and almost no deployment. This lesson covers the authentication bootstrap it cannot solve, distance limits and the trusted node compromise, attacks on real hardware that the proof does not cover, why NSA and NCSC recommend against it, and where quantum genuinely delivers.

8 steps·~12 min