Physics
Mechanical waves calculator: strings, sound, Doppler and beats
Pick a relation and clear the quantity you are after. Unlike light, the speed here is not a constant: it belongs to the medium — to a string's tension, or to the air's temperature.
The frequency belongs to the source, the speed to the medium
The relation v = λf holds for every wave, but in mechanical waves it carries a consequence that is easier to miss with light: the speed is a property of the medium, not of the wave. A tighter string carries waves faster, warm air faster than cold. The frequency, by contrast, is imposed by whatever generates the wave and never changes on crossing into another medium. When a sound passes from air into water the frequency stays put, the speed roughly quadruples, and the wavelength quadruples with it.
On a string the speed goes as the square root of tension over linear density. That square root is why tuning an instrument is delicate work: raising the pitch by ten per cent takes twenty per cent more tension, and doubling it would take four times the tension, which the string would not survive. It is also why low notes come from heavier strings rather than from absurdly slack ones.
The Doppler effect and beats are two different ways frequencies combine. Doppler changes the frequency of a single source because it changes the rate at which wavefronts arrive; beats instead come from two stationary sources close in frequency, drifting in and out of phase. The first depends on motion, the second does not — and confusing them is the commonest conceptual slip in the chapter.
Common mistakes
- Thinking the frequency changes when a wave enters another medium: speed and wavelength change, frequency does not. It is fixed by the source.
- Treating the speed on a string as proportional to tension: it goes as the square root. Quadrupling the tension doubles the speed, it does not quadruple it.
- Using the Doppler formula with source and observer swapped: the two situations do not give the same answer. The observer's speed enters the numerator, the source's the denominator.
- Adding decibels as though they were intensities: two 60 dB sources together give about 63 dB, not 120, because the intensities add and only then is the logarithm taken again.
Frequently asked questions
What does the speed of sound in air depend on?
Essentially only on temperature: about 331 m/s at 0 °C, rising by 0.6 m/s per degree. It does not depend on pressure, because as pressure rises so does density and the two effects cancel.
Why does a heavier string sound lower?
Because the wave speed is √(T/µ): at the same tension, a greater linear density means a lower speed. The fundamental is v/(2L), so a lower speed gives a lower frequency. This is why a guitar's bass strings are wound.
What is the difference between the Doppler effect and beats?
Doppler concerns a single source and arises from relative motion: approaching, the wavefronts arrive more closely spaced and the perceived frequency rises. Beats concern two stationary sources at slightly different frequencies, alternately reinforcing and cancelling.
What is the beat frequency?
The absolute difference between the two frequencies: notes at 440 and 444 Hz produce 4 pulses per second. Note that given a beat frequency there are two possible notes, one above the reference and one below.
Why don't decibels add up?
Because it is a logarithmic scale. Doubling the intensity adds about 3 dB, it does not double the decibel figure. Every 10 dB is a factor of ten: 70 dB is ten times the intensity of 60 dB.
How this calculation works
Fundamental relation: v = λ·f, valid for every wave. Transverse wave on a stretched string: v = √(T/µ), with T the tension and µ the mass per unit length. Speed of sound in dry air: v ≈ 331.3 + 0.606·T with T in degrees Celsius. Doppler effect: f' = f·(v + v₀)/(v − vₛ), speeds positive when they bring source and observer together; for vₛ ≥ v the formula fails and a shock front forms. Beats: f_b = |f₁ − f₂|; given f_b there are two compatible frequencies, f ± f_b. Sound level: β = 10·log₁₀(I/I₀) with I₀ = 10⁻¹² W/m², so I = I₀·10^(β/10). String fixed at both ends: fₙ = n·v/(2L) with n a whole number, and the nth harmonic's wavelength is 2L/n.
Related calculators
Electromagnetic waves and optics
Wavelength and frequency, photon energy, Snell's law, intensity and interference fringes.
Polarisation and diffraction
Wave optics: Malus, Brewster, diffraction, resolving power and interference.
Lenses and mirrors
Geometrical optics: focal length, image distance, magnification and optical power.