What is the harmonic wave equation?
A harmonic (sinusoidal) traveling wave is described by \( y(x, t) = A \sin(kx - \omega t + \varphi) \). It models the transverse displacement y of any point on a one-dimensional medium — a string, a sound column, or an electromagnetic field component — as it varies with position x and time t. The minus sign in front of ωt produces a wave traveling in the positive x-direction.
$$ y(x, t) = A \sin\!\left( kx - \omega t + \varphi \right) $$
What the symbols mean
A is the amplitude (maximum displacement). k is the angular wave number in rad/m, related to wavelength by \( k = 2\pi/\lambda \). ω is the angular frequency in rad/s, related to frequency by \( \omega = 2\pi f \). φ is the phase constant in radians, which shifts the wave at \( t = 0 \) and \( x = 0 \).
How to use the calculator
Enter the amplitude, wave number k, angular frequency ω, phase constant φ, and the position x and time t you want to evaluate. The calculator returns the instantaneous displacement plus the wave's wavelength, frequency, period and phase speed. All angle quantities are in radians.
Worked example
Take \( A = 0.05 \ \text{m} \), \( k = 2 \ \text{rad/m} \), \( \omega = 3 \ \text{rad/s} \), \( \varphi = 0 \), at \( x = 1 \ \text{m} \) and \( t = 0 \ \text{s} \). The phase is $$ kx - \omega t + \varphi = 2(1) - 3(0) + 0 = 2 \ \text{rad}. $$ So $$ y = 0.05 \cdot \sin(2) = 0.05 \times 0.909297 \approx \mathbf{0.0454649 \ \text{m}}. $$ The wavelength is \( 2\pi/2 \approx 3.1416 \ \text{m} \), the frequency is \( 3/2\pi \approx 0.4775 \ \text{Hz} \), the period is \( 2\pi/3 \approx 2.0944 \ \text{s} \), and the wave speed is \( 3/2 = 1.5 \ \text{m/s} \).
Typical Wave Speeds and Frequencies in Common Media
The wave speed, frequency and wavelength of a harmonic wave are tied together by \(\lambda = v/f\), which is the same as \(v = \omega/k\) with \(k = 2\pi/\lambda\) and \(\omega = 2\pi f\). The speeds below are approximate textbook values; real speeds depend on temperature, pressure, tension and material.
| Wave / medium | Typical speed v | Example frequency f | Wavelength \(\lambda = v/f\) |
|---|---|---|---|
| Sound in air (20 °C) | ≈ 343 m/s | 20 Hz (lowest audible) | ≈ 17.15 m |
| Sound in air (20 °C) | ≈ 343 m/s | 1 kHz | ≈ 0.343 m |
| Sound in air (20 °C) | ≈ 343 m/s | 20 kHz (highest audible) | ≈ 0.01715 m (1.715 cm) |
| Sound in water | ≈ 1480 m/s | 1 kHz | ≈ 1.48 m |
| Sound in steel | ≈ 5960 m/s | 1 kHz | ≈ 5.96 m |
| Wave on a stretched string | tens of m/s (e.g. 50 m/s) | 100 Hz | 0.5 m (for 50 m/s) |
| Light in vacuum (red end of visible) | 299,792,458 m/s | ≈ 4.0×1014 Hz | ≈ 7.5×10-7 m (≈ 750 nm) |
| Light in vacuum (violet end of visible) | 299,792,458 m/s | ≈ 7.5×1014 Hz | ≈ 4.0×10-7 m (≈ 400 nm) |
Audible sound spans roughly 20 Hz to 20 kHz for a healthy young listener, and visible light spans roughly 4–7.5×1014 Hz. Speeds for string waves depend on tension and mass per unit length, \(v = \sqrt{T/\mu}\).
Effect of Changing Phase Constant and Parameters
Base case: A = 0.05 m, k = 2 rad/m, ω = 3 rad/s, x = 1 m, t = 0. Then \(y = 0.05\sin(2 + \varphi)\) and, for the base case, \(\lambda = 2\pi/k \approx 3.1416\) m, \(f = \omega/2\pi \approx 0.4775\) Hz, \(T = 2\pi/\omega \approx 2.0944\) s, \(v = \omega/k = 1.5\) m/s.
| Case | φ (rad) | k | ω | y (m) | λ (m) | f (Hz) | T (s) | v (m/s) |
|---|---|---|---|---|---|---|---|---|
| Base | 0 | 2 | 3 | 0.045465 | 3.1416 | 0.4775 | 2.0944 | 1.5 |
| Phase shift | π/2 | 2 | 3 | −0.020807 | 3.1416 | 0.4775 | 2.0944 | 1.5 |
| Phase shift | π | 2 | 3 | −0.045465 | 3.1416 | 0.4775 | 2.0944 | 1.5 |
| Phase shift | −π/2 | 2 | 3 | 0.020807 | 3.1416 | 0.4775 | 2.0944 | 1.5 |
| Doubled k | 0 | 4 | 3 | −0.037840 | 1.5708 | 0.4775 | 2.0944 | 0.75 |
| Doubled ω | 0 | 2 | 6 | 0.045465 | 3.1416 | 0.9549 | 1.0472 | 3 |
Substitution examples: for φ = π/2, \(y = 0.05\sin(2 + \pi/2) = 0.05\cos 2 = 0.05 \times (-0.41615) = -0.020807\) m. For doubled k, \(y = 0.05\sin(4) = 0.05 \times (-0.75680) = -0.037840\) m.
Takeaways: φ only shifts the wave pattern and does not change λ, f, T or v. Doubling k halves the wavelength and halves the speed (for fixed ω). Doubling ω doubles the frequency, halves the period and doubles the speed (for fixed k). At t = 0 the value of y does not depend on ω.
Interpreting the Displacement and Wave Parameters
- Range of y: Because the sine function lies between −1 and 1, the displacement always satisfies \(-A \le y \le A\). The amplitude A is the maximum displacement from equilibrium.
- Crest, trough and equilibrium: \(y = +A\) is a crest, \(y = -A\) is a trough, and \(y = 0\) means the point is passing through its equilibrium position at that instant (where its speed is greatest).
- Phase: The argument \(kx - \omega t + \varphi\) is the phase. The constant φ sets the displacement at \(x = 0,\ t = 0\) and shifts the pattern without altering its shape.
- Phase difference between two points: At the same time, points separated by \(\Delta x\) differ in phase by \(\Delta\varphi = k\,\Delta x = 2\pi\,\Delta x/\lambda\). For \(\Delta x = \lambda/2\), \(\Delta\varphi = \pi\), so the points oscillate in opposite phase; for \(\Delta x = \lambda\), they oscillate in phase.
- Constructive and destructive relation: When two waves of equal frequency meet, a phase difference of \(0, 2\pi, 4\pi, \dots\) gives constructive interference (amplitudes add), while \(\pi, 3\pi, \dots\) gives destructive interference (equal amplitudes cancel).
- Wave speed: The phase velocity is \(v = \omega/k = \lambda f\), with \(\lambda = 2\pi/k\), \(f = \omega/2\pi\) and \(T = 1/f = 2\pi/\omega\). With the form \(\sin(kx - \omega t + \varphi)\), a positive \(\omega/k\) means the wave travels in the +x direction; a \(+\omega t\) term (or negative \(\omega/k\)) would indicate travel in the −x direction.
- Units and angles: Use k in rad/m, ω in rad/s, and φ and the sine argument in radians. Entering degrees where radians are expected is a common source of wrong results.
FAQ
Do I use degrees or radians? Radians. The sine function operates on the phase expressed in radians, and k, ω and φ are all in radian-based units.
What if I want a wave moving in the −x direction? Use a plus sign: \( y = A \sin(kx + \omega t + \varphi) \). You can mimic this by entering a negative ω.
Why is wave speed \( v = \omega/k \)? A point of constant phase satisfies \( kx - \omega t = \text{const} \), so \( dx/dt = \omega/k \). This phase velocity equals \( \lambda \cdot f \).