Formula and Method for the Harmonic Wave Equation Calculator
A harmonic wave is a disturbance that repeats sinusoidally in both space and time, such as a wave on a stretched string, a sound wave, or a light wave. Its displacement at any position x and time t is given by the harmonic wave equation: y(x,t) = A sin(kx − ωt + φ), where A is the amplitude, k is the wave number, ω is the angular frequency, and φ is the phase constant. This calculator derives k and ω from wavelength and frequency, then evaluates the displacement at the position and time you specify.
How the calculation works
Start from the wavelength (λ) and frequency (f). Wave speed follows directly: v = λf (equivalently v = λ/T, since f = 1/T). The angular frequency converts cycles per second into radians per second: ω = 2πf. The wave number converts wavelength into radians of phase per unit distance: k = 2π/λ. With k, ω, and your chosen amplitude and phase constant, the displacement at any point in space and time is y(x,t) = A sin(kx − ωt + φ). Setting x = 0 and t = 0 with φ = 0 recovers y = 0, the wave's starting position; sweeping t forward at fixed x traces out the oscillation a stationary observer would see pass by.
Common mistakes
- Mixing degrees and radians: the sine function in the equation expects radians. This calculator converts a phase constant entered in degrees automatically, but wave number and angular frequency are always computed in radians.
- Confusing frequency with angular frequency: f is in hertz (cycles per second); ω = 2πf is in radians per second. Using f directly inside the sine function instead of ω gives a result that is 2π times too fast.
- Confusing wave speed with particle velocity: v = λf is the speed at which the waveform's pattern (such as a crest) moves through space. It is not the speed of an individual particle oscillating up and down, which instead depends on ∂y/∂t at a fixed point.
- Wrong sign convention: y = A sin(kx − ωt + φ) travels in the +x direction; y = A sin(ωt − kx + φ) travels in the −x direction. Swapping the sign flips the direction of travel, not just the numeric result.
Real-world applications
- Acoustics: sound waves in air are modeled as pressure oscillations following this same harmonic form, with frequency setting pitch and amplitude setting loudness.
- Optics and radio: electromagnetic waves (light, radio, microwaves) use the identical equation for the oscillating electric and magnetic field components.
- Mechanical waves: waves on strings, springs, and water surfaces are analyzed with the same relationships between wavelength, frequency, and wave speed.
- Seismology and engineering: seismic waves and vibration analysis use wave number and angular frequency to characterize how a disturbance propagates through a medium.