Waves and the Fourier spectrum: amplitude, frequency and phase
What amplitude, period, frequency, wavelength and phase mean, and how Fourier series and the Fourier transform turn a signal into an amplitude spectrum and a phase spectrum.
Seismic data, sound and images are all made of waves. Before getting into seismic wavelets or image filters, I wanted clear words for describing a single wave (amplitude, frequency, phase) and a tool that breaks any signal into lots of simple waves. That tool is Fourier analysis. I first wrote this in Persian in 2017, while working on seismic data quality control, and this is a rewritten English version.
What a wave is
A wave is energy spread out in space that moves through it. There are three big families: mechanical waves, electromagnetic waves and matter waves. Seismic surveys use sound waves, which are mechanical. Mechanical waves follow Newton’s laws and need some material to travel through, like air, water or rock layers.
You can describe a wave as a function of time (what one sensor records) or as a function of space (a snapshot along a line). A seismic section is a 2D wave field: one axis is time and the other is distance along the surface.
The parts of a simple wave

For a sine wave recorded over time:
- Amplitude is the biggest distance from zero. A positive maximum is a peak and a negative one is a trough. In seismic recording, amplitude is often a voltage.
- Period is the time between two neighbouring peaks (or troughs), so the time for one full cycle. It’s measured in seconds.
- Frequency is the number of full cycles per second, measured in hertz (Hz). It’s just one over the period: .
- Phase tells you where in its cycle the wave is at some reference time, usually . It’s an angle: one full cycle is , or radians.
If you look at the wave along a line in space instead:
- Wavelength is the distance between two neighbouring peaks, in metres.
- Wavenumber is the space version of frequency: the number of cycles per unit length, . Geophysicists often give it in cycles per kilometre. Physicists often use the angular wavenumber instead, so check which one a text means.
A cosine wave with all these pieces is
There are two terms inside the cosine. The first, , is the angle the wave has gone through by time . The second, , is the phase constant: the angle the wave started at when . It’s worth keeping these two terms apart in your head. Changing either one shifts the phase, but the two kinds of change behave differently, as Seismic wavelets: amplitude and phase spectra shows.
Phase as a time delay
Say a sine wave with period s hits its first peak s later than a reference wave that peaks at . We say it has a time lag of s. One full cycle is radians, so the phase lag is
By convention, phase is minus the phase lag, so this wave has phase . This sign confused me at first, and a simple picture helped: put the start time of each oscillator on a number line with zero at the origin. Starting late (to the right in time) gives a negative phase. Starting early gives a positive phase. Starting exactly at zero gives phase zero.
A spring as a one-frequency system
Hang a weight on an ideal spring, pull it down by units and let go at . The position traces a cosine. With a period of ms, the frequency is Hz. A stiffer spring released from units might have a period of ms, so Hz.
Now take a third spring, identical to the first, and let it go at the moment the first spring passes through zero, ms later. Both have the same amplitude and frequency. The only difference is a ms delay, which is a quarter of the period, so the phase lag is () and the phase is .

If you plot each oscillation’s amplitude against its frequency, you get its amplitude spectrum. If you plot its phase against frequency, you get its phase spectrum. The first and third springs have the same amplitude spectrum but different phase spectra. This is the main idea: the amplitude spectrum says how much of each frequency there is, and the phase spectrum says when each one sits in time.
Fourier series: periodic functions as sums of sines
A function is periodic with period if for every . If is a period, then so are , , and so on.
A function with period can be written as a Fourier series:
with coefficients given by the Euler formulas
Why do these formulas work? Because the sines and cosines are orthogonal on any interval of length : if you multiply any two different ones together and integrate, you get zero. So when you multiply by one basis function and integrate, everything else drops out and you’re left with exactly that function’s coefficient.
With Euler’s formula , the same series has a shorter complex form:
From series to the Fourier transform
You can think of a non-periodic function as a periodic one whose period is infinitely long. As , the separate frequencies blend into a continuous variable , and the sum turns into an integral. This works when is piecewise continuous, has left and right derivatives everywhere, and is absolutely integrable ( exists). What you get is the Fourier transform pair:
Here is angular frequency and is a complex number for each . Its size is the amplitude spectrum and its angle is the phase spectrum. (Other books put the factors in different places, but the ideas are the same.)
Why it’s called a spectrum
Read the inverse transform from right to left. It says is a stack of oscillations , one for every frequency , each weighted by . A prism does the same thing with white light: it splits it into colours, and each colour is a frequency. White light is the sum of its colours. So in this picture is the white light, the Fourier transform is the prism, and is the set of colours with how strong each one is. That’s why is called the spectral representation of .
The squared size is the spectral density. Its integral over all frequencies is proportional to the total energy of the signal, and its integral from to tells you how much the frequencies between and contribute.
The spring shows where this comes from. For a mass on a spring with constant , Newton’s law gives . Multiplying by and integrating gives
so kinetic plus potential energy equals a constant . The solution is with . Plugging it in gives : energy is proportional to the amplitude squared. A more complicated system whose motion is a Fourier series has one of these terms per frequency, so the total energy is a sum of squared amplitudes over a discrete spectrum. The Fourier transform stretches this idea to a continuous spectrum.
import numpy as np
fs = 1000 # sampling rate (Hz)
t = np.arange(0, 2, 1/fs) # 2 s, so 12.5 Hz falls exactly on a frequency bin
# 12.5 Hz cosine, plus a 25 Hz cosine delayed by a quarter period
y = 0.8*np.cos(2*np.pi*12.5*t) + 0.4*np.cos(2*np.pi*25*t - np.pi/2)
Y = np.fft.rfft(y) / (len(y)/2) # scale so peaks equal amplitudes
f = np.fft.rfftfreq(len(y), 1/fs)
for k in np.argsort(np.abs(Y))[-2:]:
print(f"{f[k]:5.1f} Hz amplitude {abs(Y[k]):.2f} phase {np.degrees(np.angle(Y[k])):6.1f} deg")
The output finds both pieces again: at Hz with phase , and at Hz with phase .
Key takeaways
- Amplitude, frequency and phase are all you need to describe a single sinusoid. Frequency is , and wavenumber is .
- Phase is minus the phase lag: a wave that starts late has a negative phase.
- Fourier series write periodic signals as sums of orthogonal sines and cosines. The Fourier transform extends this to signals that don’t repeat.
- The size of the transform is the amplitude spectrum, its angle is the phase spectrum, and the squared size shows how the energy is spread over frequency.
Resources
- Öz Yilmaz, Seismic Data Processing, SEG Investigations in Geophysics No. 2, 1987, Chapter 1 (fundamentals of signal processing). The expanded 2001 edition, Seismic Data Analysis, is free on the SEG Wiki: https://wiki.seg.org/wiki/Seismic_Data_Analysis.
- Erwin Kreyszig, Advanced Engineering Mathematics, Wiley, chapter “Fourier Analysis” (Fourier series, Euler formulas, orthogonality, Fourier integral and transform, and the spectrum and energy of a spring–mass system).