Harmonic Wave Equation Calculator
Find the displacement y = A sin(kx − ωt + φ) of a sinusoidal wave at any position and time from amplitude, wavenumber, angular frequency and phase.
Harmonic Wave Equation Calculator
Background.
Flick one end of a long rope up and down at a steady rhythm and a train of identical humps runs along it. Freeze the motion and the rope traces a sine curve in space; watch one spot on it and that spot bobs up and down as a sine curve in time. The harmonic wave function y(x, t) = A sin(kx − ωt + φ) captures both pictures in a single line, giving the sideways displacement of any point x at any instant t.
Each symbol controls one feature of the wave. The amplitude A is the height of a crest above the rest position. The wavenumber k sets how tightly the crests are packed, since the wavelength is 2π/k. The angular frequency ω sets how quickly each point cycles, since the period is 2π/ω. The phase constant φ slides the whole pattern so that the point at x = 0 can begin its cycle anywhere at t = 0, not just at zero.
The minus sign between kx and ωt carries the direction. As time increases, a crest keeps the same phase only if x increases too, so the pattern moves toward positive x at a speed of ω/k. Swap the minus for a plus and the identical wave runs the other way.
This is the simplest wave possible: one frequency, one dimension, no loss of energy and nothing for it to reflect from. Real waves on strings, in air or on water are sums of many terms like this one, which is why it is worth knowing thoroughly before tackling them.
What is harmonic wave equation calculator?
The harmonic wave function describes a sinusoidal wave travelling in one direction along a line. It gives the transverse displacement y, in metres, of the medium at position x and time t. It is one solution of the wave equation, the differential equation ∂²y/∂t² = v² ∂²y/∂x², with wave speed v = ω/k. Every point of the medium performs simple harmonic motion with the same amplitude and frequency, each one slightly behind its neighbour in phase.
How to use this calculator.
- Enter the amplitude in metres and the wavenumber in radians per metre. If you know the wavelength λ instead, k = 2π/λ.
- Enter the angular frequency in radians per second. From an ordinary frequency f in hertz, ω = 2πf, so a 2 Hz wave needs 12.566.
- Enter the position x in metres, which may be negative, and the time t in seconds, which must be zero or more.
- Enter the phase constant in radians; multiply degrees by π/180. A phase of π/2, about 1.5708, makes the point x = 0 start at a crest.
- Read the displacement: positive above the rest line, negative below, and never larger in size than the amplitude.
The formula.
y = A sin(kx − ωt + φ). The bracket is the phase of the wave, in radians. The term kx turns distance into phase, adding k radians for every metre along the line; the term ωt turns elapsed time into phase, removing ω radians every second; φ is the starting offset. The sine of the phase lies between −1 and 1, and multiplying by A scales it to a displacement in metres. Following a point of constant phase, kx − ωt stays fixed, so x moves at ω/k, the wave speed. Wavelength λ = 2π/k, period T = 2π/ω and frequency f = ω/2π follow directly. Because the sine repeats every 2π, shifting x by one wavelength or t by one period leaves y unchanged. Amplitude, wavenumber and angular frequency must be positive.
A worked example.
Take a wave with amplitude 0.5 m, wavenumber 2 rad/m and angular frequency 3 rad/s, phase constant 0.2 rad, and look at the point x = 1 m at t = 0.25 s. The phase is k·x − ω·t + φ = 2 × 1 − 3 × 0.25 + 0.2 = 2 − 0.75 + 0.2 = 1.45 rad. The sine of 1.45 rad is 0.992713, and multiplying by the amplitude gives y = 0.5 × 0.992713 = 0.496356 m, almost the full crest height. This wave has a wavelength of 2π/2 = 3.1416 m, a period of 2π/3 = 2.0944 s and moves at 3/2 = 1.5 m/s. A crest corresponds to a phase of π/2 = 1.5708 rad, so the crest passed x = 1 m about 0.040 s earlier and the point is now on its way down, moving at 0.181 m/s. Half a period later it will sit at −0.496356 m.
Frequently asked questions.
How do I get the wavenumber and angular frequency from wavelength and frequency?
Is the wave speed the same as how fast the rope moves?
My textbook writes sin(ωt − kx). Does that change the answer?
What does the phase constant actually change?
Can this describe a standing wave on a guitar string?
References& sources.
How this page was produced
- Published by
- Quanta Calculator
- Overseen by
- Daniel, Quanta Calculator Researcher
- Primary sources
- 3 cited below
- Method
- y(x,t) = A sin(kx - omega t + phi)
- Published
- Last verified
Built with AI assistance and verified by automated tests against the cited sources — every worked example on this page is computed by the same code that runs the calculator. How we build and check calculators.
In this category
Embed
Quanta Pro
Paid features are coming later.
- All 1560 calculators remain free
- No billing is enabled