---
title: The acoustic wave equation
heading: Deriving the wave equation for sound from conservation of mass, Newton's law and the adiabatic gas law, the speed of sound in gases and its temperature dependence, sound in liquids, Newton's isothermal mistake, and how small the particle motion in a sound wave really is
eyebrow: S16 · Lesson 5 · The acoustic wave equation
xp: 50
---

::: hook
Sound in air is a tiny ripple in pressure riding on the atmosphere's 101 kPa: a loud conversation changes the pressure by less than a pascal. Because the ripple is so small, the fluid equations, which are nonlinear and hard, become linear and simple, and they reduce to the same wave equation as the string's. Its speed comes from how stiff the air is against compression and how heavy it is. Newton got that speed wrong by 15% because he assumed the air stays at constant temperature; Laplace fixed it a century later by noticing that sound compresses air too fast for heat to flow.
:::

::: play
- The speed of sound in an ideal gas, $c = \sqrt{\gamma RT/M}$, against temperature, for a gas with adiabatic index γ and molar mass M.
- Air (γ = 1.40, M = 28.96 g/mol) gives 331 m/s at 0 °C and 343 m/s at 20 °C. Helium (γ = 5/3, M = 4.00) gives about 1007 m/s.
- The speed depends on temperature but not on pressure: denser air is also stiffer, in the same proportion.
:::

```sim plot
view: graph
x: T = -40..60
y: c = 0..800
slider: g = 1.1..1.67 step 0.01 = 1.4
slider: M = 2..50 step 0.1 = 28.96
plot: sqrt(g*8.314462618*(T + 273.15)/(M*1e-3)) | samples: 200 | label: speed of sound, m/s
readout: speed at 20 °C, m/s = sqrt(g*8.314462618*293.15/(M*1e-3)) | digits: 4
```

::: predict
## A 1 kHz tone at 1 Pa of pressure amplitude (about 91 dB SPL, loud) travels through air. How far do the air molecules move back and forth?

- [ ] About 1 mm
- [ ] About 0.1 mm
- [x] About 0.4 µm
- [ ] About 1 nm

::: reveal
The particle velocity is $p/\rho c$ = 1 Pa/415 rayl = 2.4 mm/s, and the displacement amplitude is that divided by ω: 2.4 mm/s/(2π × 1000) = 0.38 µm. Even loud sounds move the air by less than a micrometer, which is why the linear equations work so well.
:::
:::

::: nameit
## The linear acoustic equations

For small disturbances of pressure p, density and particle velocity u about a still fluid of density $\rho_0$:

- conservation of mass: $\partial\rho/\partial t + \rho_0\nabla\cdot\mathbf{u} = 0$;
- Newton's law (Euler's equation): $\rho_0\,\partial\mathbf{u}/\partial t = -\nabla p$;
- the equation of state: $p = c^2(\rho - \rho_0)$.

Together they give the wave equation $\nabla^2p = \frac{1}{c^2}\frac{\partial^2p}{\partial t^2}$.

## The speed of sound

Sound compresses gas too quickly for heat to flow, so the compression is adiabatic, and for an ideal gas

$$c = \sqrt{\frac{\gamma P_0}{\rho_0}} = \sqrt{\frac{\gamma RT}{M}}$$

independent of pressure. For air, $c \approx 331.3\sqrt{1 + T_C/273.15}$ m/s. Newton assumed isothermal compression, $c = \sqrt{P_0/\rho_0}$, which is low by $\sqrt{\gamma}$, 290 m/s instead of 343. In a liquid with bulk modulus B, $c = \sqrt{B/\rho}$: about 1481 m/s in water at 20 °C.

## Particle motion

In a plane wave, $u = p/\rho_0c$; air's $\rho_0c$ is about 415 rayl (Pa·s/m) at 20 °C. The displacement amplitude is $\xi = u/\omega$ and the fractional density change (the **condensation**) is $s = p/(\rho_0c^2)$, about 7 parts per million for 1 Pa.
:::

::: example
## Find the speed of sound in air at 0 °C and 20 °C, in helium at 20 °C, and in water with B = 2.19 GPa.

::: solution
1. **Air at 0 °C.**
   $$\begin{aligned} c &= \sqrt{\frac{1.402 \times 8.314 \times 273.15}{0.028964}} \\ &= 331.6\ \text{m/s} \end{aligned}$$
2. **Air at 20 °C.** The same formula at 293.15 K gives
   $$c = 343.5\ \text{m/s}$$
   (the approximation gives 343.2).
3. **Helium at 20 °C.**
   $$\begin{aligned} c &= \sqrt{\frac{(5/3) \times 8.314 \times 293.15}{0.004003}} \\ &= 1007\ \text{m/s} \end{aligned}$$
   which is why helium raises the voice's resonances.
4. **Water.**
   $$\begin{aligned} c &= \sqrt{\frac{2.19 \times 10^9}{998}} \\ &= 1481\ \text{m/s} \end{aligned}$$

**Answer:** 331.6 m/s in air at 0 °C and 343.5 m/s at 20 °C, 1007 m/s in helium and 1481 m/s in water.
:::
:::

::: example
## What speed would Newton's isothermal formula give for air at 101.3 kPa and 1.204 kg/m³? And what's the condensation for 1 Pa?

::: solution
1. **Newton's isothermal speed.**
   $$\begin{aligned} c &= \sqrt{101325/1.204} \\ &= 290\ \text{m/s} \end{aligned}$$
   15% below the measured 343 m/s.
2. **The missing factor.** Multiplying by $\sqrt{1.40}$ fixes it.
3. **Condensation for 1 Pa.**
   $$\begin{aligned} s &= \frac{1}{1.204 \times 343^2} \\ &= 7.06 \times 10^{-6} \end{aligned}$$

**Answer:** Newton's formula gives 290 m/s, 15% too low, and the condensation for 1 Pa is 7.06 × 10⁻⁶.
:::
:::

::: example
## A 1 Pa sound wave passes through air at 20 °C and 101.3 kPa. How much does the temperature swing, and by what fraction does the density change?

::: solution
1. **Temperature swing.** Sound in air is adiabatic, so the temperature follows the pressure:
   $$\begin{aligned} \Delta T &= T\,\frac{\gamma - 1}{\gamma}\,\frac{p}{P_0} \\ &= 293 \times \frac{0.4}{1.4} \times \frac{1}{101{,}325} \\ &= 0.83\ \text{mK} \end{aligned}$$
2. **Density change.**
   $$\begin{aligned} \frac{\Delta\rho}{\rho} &= \frac{p}{\gamma P_0} \\ &= 7.0 \times 10^{-6} \end{aligned}$$
3. **Why the linear equation works.** Both are minute, which is why the linear wave equation works so well.
4. **Why it's adiabatic.** The temperature swing is also too fast for heat to flow between compressions and rarefactions, the condition that makes the process adiabatic.

**Answer:** the temperature swings by 0.83 mK, and the density changes by a fraction of 7.0 × 10⁻⁶.
:::
:::

::: check
given: g = 1.4 | 1.667 | 1.3; M = 4 | 29 | 44; T = 10 | 20 | 40
answer: sqrt(g*8.314462618*(T + 273.15)/(M*1e-3))
unit: m/s
tolerance: 0.5%

## A gas has γ = {g} and molar mass {M} g/mol. What's the speed of sound in it at {T} °C?

::: right
Right. $\sqrt{\gamma RT/M}$ = {answer} m/s.
:::

::: misses
- [sqrt(g*8.314462618*T/(M*1e-3))] Use the absolute temperature in kelvins.
- [any] Not yet. Ideal-gas sound speed.
:::
:::

::: check
given: T = -20 | 0 | 15 | 35
answer: 331.3*sqrt(1 + T/273.15)
unit: m/s
tolerance: 0.5%

## About how fast does sound travel in air at {T} °C?

::: right
Right. $331.3\sqrt{1 + T/273.15}$ = {answer} m/s.
:::

::: misses
- [any] Not yet. Scale the 0 °C speed by the square root of absolute temperature.
:::
:::

::: check
given: B = 1.5 | 2.2 | 2.4; p = 800 | 1000 | 1030
answer: sqrt(B*1e9/p)
unit: m/s
tolerance: 0.5%

## A liquid has a bulk modulus of {B} GPa and density {p} kg/m³. What's its speed of sound?

::: right
Right. $\sqrt{B/\rho}$ = {answer} m/s.
:::

::: misses
- [any] Not yet. $c = \sqrt{B/\rho}$.
:::
:::

::: check
given: P = 0.02 | 1 | 20; z = 415 | 1.48e6
answer: P/z*1000
unit: mm/s
tolerance: 0.5%

## A plane wave has a pressure amplitude of {P} Pa in a medium with ρc = {z} rayl. What's the particle velocity amplitude?

::: right
Right. $p/\rho c$ = {answer} mm/s.
:::

::: misses
- [P*z*1000] Divide by the characteristic impedance.
- [any] Not yet. $u = p/\rho_0c$.
:::
:::

::: check
given: P = 0.02 | 1 | 20; f = 100 | 1000 | 10000
answer: P/(415*2*pi*f)*1e9
unit: nm
tolerance: 0.5%

## A {f} Hz tone in air (ρc = 415 rayl) has a pressure amplitude of {P} Pa. What's the particle displacement amplitude?

::: right
Right. $p/(\rho c\omega)$ = {answer} nm.
:::

::: misses
- [P/(415*f)*1e9] Divide by ω = 2πf.
- [any] Not yet. Velocity over ω.
:::
:::

::: check
given: g = 1.3 | 1.4 | 1.667
answer: sqrt(g)
tolerance: 0.5%

## For a gas with γ = {g}, by what factor does the true speed of sound exceed Newton's isothermal estimate?

::: right
Right. $\sqrt{\gamma}$ = {answer}.
:::

::: misses
- [g] The speed goes as the square root of the stiffness.
- [any] Not yet. Compare $\sqrt{\gamma P/\rho}$ with $\sqrt{P/\rho}$.
:::
:::

::: check
kind: parts
given: p = 0.1 | 1 | 20; T = 0 | 20 | 35; P = 90 | 101.3

## A sound wave of {p} Pa amplitude passes through air (γ = 1.4) at {T} °C and {P} kPa.

::: part
answer: (T + 273.15)*0.4/1.4*p/(P*1e3)*1e3
unit: mK
tolerance: 0.5%

### How large is its temperature swing?

::: misses
- [(T + 273.15)*p/(P*1e3)*1e3] Adiabatic: the factor is (γ − 1)/γ.
- [any] $T\frac{\gamma - 1}\gamma\frac p{P_0}$.
:::
:::

::: part
answer: p/(1.4*P*1e3)*1e6
unit: ppm
tolerance: 0.5%

### By how many parts per million does the density change?

::: misses
- [p/(P*1e3)*1e6] The condensation is $p/\gamma P_0$.
- [any] $p/(\gamma P_0)$.
:::
:::
:::

::: check
kind: derivation
vars: g = 1.1..1.7, M = 0.002..0.2, T = 200..400

## A gas has heat-capacity ratio γ and molar mass M (kg/mol), at temperature T (K).

::: step
answer: sqrt(g*8.314*T/M)

### What is its speed of sound?
:::

::: step
answer: sqrt(g)

### By what factor does that exceed Newton's isothermal speed?
:::

::: right
Right. Laplace's correction, √γ, was the first evidence that sound is adiabatic.
:::
:::

::: explain
## Why is sound in air adiabatic, and why doesn't the speed of sound depend on pressure?

::: model
In a sound wave, compressions and rarefactions are a half-wavelength apart, centimeters to meters, and they alternate hundreds or thousands of times a second. Heat would have to diffuse across that distance within a fraction of a period to keep the temperature even, and air conducts heat far too slowly for that, so each parcel heats as it's compressed and cools as it expands. That makes the gas stiffer by the factor γ. The speed depends on stiffness over density, $\gamma P/\rho$, and for an ideal gas at a given temperature the pressure and density rise in the same proportion, so their ratio, and the speed, depend only on temperature and the gas.
:::
:::

::: practice

::: check
given: g = 1.1 | 1.67; M = 2 | 150; T = -50 | 100
answer: sqrt(g*8.314462618*(T + 273.15)/(M*1e-3))
unit: m/s
tolerance: 0.5%

## c: γ = {g}, M = {M} g/mol, {T} °C?

::: misses
- [any] $\sqrt{\gamma RT/M}$.
:::
:::

::: check
given: B = 0.5 | 5; p = 600 | 1500
answer: sqrt(B*1e9/p)
unit: m/s
tolerance: 0.5%

## Liquid c: B = {B} GPa, ρ = {p}?

::: misses
- [any] $\sqrt{B/\rho}$.
:::
:::

::: check
given: P = 0.001 | 100; f = 20 | 20000
answer: P/(415*2*pi*f)*1e9
unit: nm
tolerance: 0.5%

## Displacement: {P} Pa at {f} Hz in air?

::: misses
- [any] $p/(\rho c\omega)$.
:::
:::
:::
