Engineering Acoustics/Speed of sound
When sound waves propagate in a medium, they cause fluctuations in the pressure, density, temperature and particle velocity in the medium. The total pressure, , in the medium can be expressed as:
where is the hydrostatic or ambient pressure and is the acoustic pressure or pressure fluctuation.
The hydrostatic pressure can be thought as the mean pressure while the acoustic pressure represents fluctuations around the mean pressure. Similarly, the density, temperature, and particle velocity are separated into mean and fluctuating components.
where is the ambient density; , the density fluctuation; , the ambient temperature; , the temperature fluctuation; , the mean velocity; and , the particle velocity. Notice that pressure, density, and temperature are scalar quantities and the particle velocity is a vectorial quantity.
Let's consider a planar wave traveling in the x-direction inside a tube filled with a fluid at rest () with constant pressure, density and temperature (, , and , respectively). As the wave moves through the fluid at a speed, , it creates infinitesimally small fluctuations in the initially stagnant fluid in front. All four quantities describing the fluid vary around their mean value, increasing or decreasing depending on whether the fluid is being compressed or expanded. To obtain a relation for the propagating speed, , an inertial frame of reference is used and a control volume is drawn around the wave.
and neglecting higher order terms,
Applying conservation of momentum,
neglecting higher order terms,
and using the continuity equation,
The speed of sound is related to the ratio of pressure fluctuation (acoustic pressure) to density fluctuation. Given that the speed of sound is always a positive quantity, an increase in the fluid pressure implies an increase in the fluid density and vice versa. The total pressure is expressed as a Taylor series expansion about the ambient density to relate its infinitesimally small fluctuations to the total pressure and density.
Neglecting second order terms and higher, the speed of sound can be related to the total pressure and density.
As a sound wave moves through a fluid, the fluid is usually assumed to follow an adiabatic and reversible thermodynamic path. So, the heat transfer between fluid particles is negligible and the changes caused by the sound wave onto the fluid can be reverse to their original state without changing the entropy of the system. For an isentropic process, the total pressure and density are related by the thermodynamic relation,
Taking the partial derivative and using the ideal gas law, ,
The speed of sound can be expressed in terms of the ambient pressure, density and temperature using,
Using the definition of the Bulk modulus,
the speed of sound can written as,
Original Document 
Acoustics Wikibooks: Sound Speed