Discrete Fourier transform Created 2026-09-24 Updated 2026-10-18
The discrete Fourier transform turns a finite list of samples into the weights of its discrete Fourier modes. The goal is to reveal a simple oscillatory recipe hidden in complicated-looking data, while retaining enough information to reconstruct every sample exactly. In signal processing, those weights identify sampled frequencies and wave phases; in numerical analysis, they simplify circular convolution and the discrete sine transform Poisson solver.
Start with eight real samples, indexed by :
Writing , the actual list is
The discrete Fourier transform recovers the recipe as
The constant contributes ; the cosine contributes ; the half-sized sine contributes and . All other coefficients vanish exactly. The imaginary coefficients carry the sine's wave phase, which a plot of absolute values alone would hide.
Figure 1.
Eight samples become a constant, a cosine pair, and a sine pair in the discrete Fourier transform
. Details.
Precisely, for a positive integer and a vector , the forward discrete Fourier transform and inverse discrete Fourier transform used here are
Thus the forward exponent has a minus sign and no scale factor; the inverse exponent has a plus sign and the factor . The coefficients in the reconstruction are , rather than . In the example, , the pair reconstructs the cosine, and the pair reconstructs the half-sized sine. These conventions agree with the scaled Fourier coefficients in MIT's authored notes.[ref]
The proof idea is orthogonality of roots of unity: for integers ,
Distinct discrete Fourier modes cancel in this finite geometric series. Substituting the forward formula into the inverse discrete Fourier transform leaves only the desired sample. The same orthogonality makes the normalized discrete Fourier modes an orthonormal basis and gives the discrete Parseval identity, in the present convention,
For the eight-sample example, direct squaring gives , while , so . This identity preserves the squared L2 norm after accounting for normalization. The existing discrete Parseval identity instead scales the forward discrete Fourier transform by , producing a unitary matrix and equal squared L2 norms without the factor .
For real input, discrete Fourier conjugate symmetry pairs positive and negative frequencies. The label is a residue modulo : when represents the same discrete Fourier mode as , since . It therefore represents negative frequency cycles per sample. If samples are seconds apart, the corresponding signed frequency is cycles per second. Similarly, index represents , while index is its own negative modulo .
The discrete Fourier transform is an invertible map between two finite vectors. The continuous Fourier transform instead describes a function on the real line by an integral over a continuous frequency variable. A finite list of samples does not determine the full continuous frequency spectrum: aliasing of discrete Fourier modes already supplies distinct waveforms with identical observations. Applying the inverse formula at arbitrary integer indices gives the periodic extension of a finite sequence, repeating the recorded block every samples. This is a property of that representation, rather than evidence that the physical signal repeats beyond the recording. Laurent Demanet's MIT notes place the discrete Fourier transform alongside the continuous Fourier transform and Fourier series to explain the role of sampling and repetition.[ref]
The beauty is that a change of basis exposes cancellation and structure without losing data. Direct evaluation needs sums of terms; a Fast Fourier transform computes the same discrete Fourier transform with far less work. Computational speed and the mathematical meaning of the coefficients are separate questions.
A constant-coefficient translation-invariant grid update is diagonalized spatially by discrete Fourier modes. Its scalar or matrix multiplier is the displayed symbol. In a semidiscrete evolution, the analogous symbol is a continuous-time generator and its exponential propagates each mode. Discrete Parseval identity converts uniform modal bounds to discrete L2 norm bounds.
Fourth-order centered second derivative Created 2026-10-14 Updated 2026-10-31
This symmetric finite difference method approximates a second derivative with for sufficiently smooth functions. Matching the constant, second-derivative and fourth-derivative coefficients of a symmetric five-node Taylor expansion determines the displayed weights uniquely; its sixth-derivative coefficient is nonzero. The Fourier symbol is . Thus the semidiscrete heat equation is contractive in the discrete L2 norm by the discrete Parseval identity. This says nothing by itself about stability of a subsequently chosen time update.
Optical trap Langevin calibration Created 2026-10-18 Updated 2026-10-20
Add the random thermal force to the deterministic optical trap relaxation time model. In one stationary coordinate of a harmonic optical trap, the overdamped Langevin equation is
Here is Gaussian white noise understood through its integrals, is the Dirac delta function, and is the linear friction coefficient. The covariance coefficient has units ; multiplying by , of units , gives squared force. This fluctuation-dissipation relation for a Langevin particle makes the stationary variance , consistent with the equipartition theorem. The solution is an Ornstein-Uhlenbeck process with autocovariance function
Indeed, at positive lag the noise has zero correlation with the initial position, so ; its initial value is . This supplies both a decay time and an amplitude, making a stronger calibration test than a position histogram alone.
Specify the Fourier transform convention before using a power spectral density. For frequency in hertz, define and the one-sided density for . Integration of the exponential gives
The position power spectral density has units ; its integral is a variance, not a standard deviation. At it is half its zero-frequency plateau. Angular frequency conventions require a corresponding conversion in both axis and integration measure. If with position sensitivity in , then in before independent detector noise is added.
For an original invented calibration example, choose , dynamic viscosity , , , and . The unbounded no-slip Stokes drag law gives
The corresponding voltage standard deviation is , and the position power spectral density plateau is , or in the detector. Recovering both and is an internal model check; actual agreement also tests the assumed temperature, drag and detector response.
Figure 1. . Original model calculations and seeded synthetic Ornstein-Uhlenbeck process samples; explicitly not measured data. The record is sampled at with no detector noise or exposure averaging. The dashed spectrum includes sampling aliases; the red continuous spectrum integrates to the exact equipartition theorem variance. The drag line is an exact steady-model prediction. Source. Details.
The generator uses the exact stationary update , with and independent standard normal random variables . For a demeaned block of samples and its unnormalized discrete Fourier transform , the two-sided periodogram is ; doubling positive bins except the zero and Nyquist endpoints gives a one-sided density. Summing those bins times returns the block mean square by discrete Parseval identity. Independent detector noise, finite exposure and aliasing would alter a measured spectrum and must enter a fit before interpreting .
For the method of lines in part (a), the Fourier symbol of the spatial operator is
Each Fourier mode therefore evolves by , whose multiplier has modulus at most one. The discrete Parseval identity gives
Thus the fourth-order centered second derivative gives an unconditionally stable semidiscrete evolution in the L2 norm. No time integration method has yet been chosen, so no time-step restriction belongs to this conclusion.
An arbitrary L2 function does not have well-defined point samples. For the stated initial data one may use cell-average projection, . The Cauchy-Schwarz inequality gives , providing a bounded initialization for the stability estimate.
A spatial finite difference method and time discretization for a linear evolution problem give a recurrence . To obtain numerical stability on , one needs a bound uniform in the permitted grid sizes and time steps. More generally a growth estimate is sufficient. The finite-time stability versus power boundedness distinction matters: growth per step of can be compatible with the latter finite-time estimate, whereas unrestricted geometric growth at a fixed Courant number is not.
The eigenvalue method diagonalizes into modes. If is a normal matrix, the spectral theorem gives . Thus gives contraction, and gives the preceding growth estimate. A diagonalizable matrix has , so its condition number must remain bounded uniformly as the mesh changes. A stable-looking list of eigenvalues alone is insufficient.
Indeed,
Both eigenvalues are one, but the Jordan block gives growth proportional to , violating uniform finite-time numerical stability. A nonnormal Fourier amplification matrix can similarly exhibit large amplification even with its eigenvalues inside the unit disk. Eigenvector conditioning and the full powers of the amplification operator are essential.
For constant-coefficient schemes on a periodic or infinite grid, a Fourier transform diagonalizes scalar translation-invariant stencils. This yields von Neumann stability analysis using the Fourier amplification symbol . The discrete Parseval identity turns a bound on into a discrete L2 norm estimate. For systems, the symbol is a matrix; a uniform power bound for matrix Fourier symbols is required, rather than a bound on its spectral radius alone.
For the heat equation, a central finite difference in space and the explicit Euler method in time give
The scalar condition for every frequency is exactly . With zero Dirichlet boundary conditions, the spatial matrix is symmetric and diagonalized by sine modes, leading to the same uniform sufficient restriction. By contrast, the Backward Euler diffusion scheme has and is stable for every .
For the advection equation , , centered space with the explicit Euler method gives , , and . At fixed positive Courant number, repeated powers are unbounded as the mesh is refined. The upwind finite difference scheme instead has
which gives contraction precisely for . This comparison shows why the spatial stencil and time method must be analyzed together.
Boundary treatment can destroy the normality or mode decomposition available on a periodic grid, so a finite-interval scheme needs its own uniform operator estimate. Multilevel time schemes likewise require the root condition for a multistep method and uniform bounds for the associated amplification matrices; simple scalar root tests do not establish these bounds for arbitrary systems. Once consistency of a numerical method, a well-posed linear evolution problem and the required numerical stability estimate hold, the Lax equivalence theorem gives numerical convergence. Eigenvalues provide a powerful route to that estimate when the accompanying eigenvector and boundary analysis is justified.
Use the discrete norm , with periodic indices. Two independent arguments prove uniform stability of a numerical method.
For Fourier stability analysis, a discrete Fourier mode with has semidiscrete eigenvalue
Its real part is nonpositive, so . The unitary discrete Fourier transform and discrete Parseval identity then give for every , and fixed real .
For the energy method, denote the centered first difference by and the forward difference by . Periodic discrete summation by parts makes skew-adjoint and gives . Therefore
The constant mode is preserved rather than strictly damped. Both proofs apply equally to differences of two solutions. The semidiscretization is contractive in the discrete L2 norm. A later choice of a time integrator would require its own stability analysis; no time-step condition is needed for this continuous-time result.
Fourier stability analysis applies most directly to linear, constant-coefficient evolution schemes on uniform infinite or periodic grids. Translation invariance makes spatial shifts diagonal in discrete Fourier modes. If a one-step scheme has , substituting gives the Fourier amplification symbol
The discrete Parseval identity identifies the discrete L2 norm with the squared norm of Fourier coefficients. Uniform stability on a fixed time interval means a mesh-independent bound on for all frequencies and . In the scalar case yields contraction. More generally gives the bound and is consistent with a continuously growing well-posed equation. A fixed modulus excess independent of the step produces growth exponential in and fails this requirement.
For systems, eigenvalue moduli alone are insufficient. The uniform power bound for matrix Fourier symbols also controls eigenvector conditioning and Jordan growth. For example has only unit eigenvalues but , unbounded as at fixed . In contrast an off-diagonal entry proportional to gives growth at most proportional to , which can be legitimate. A uniformly conditioned diagonalization is a sufficient reduction to scalar modal bounds; nonnormal matrices require direct power or energy estimates. Multilevel schemes similarly require the root condition for their frequency-dependent amplification polynomial and a uniform bound on the associated companion evolution, including limiting repeated-root cases.
The simplest parabolic example is the Forward Euler method with centered spatial diffusion. For ,
is the sharp mesh-uniform contraction range. For the theta method, , giving unconditional contraction at . Implicit stability permits larger steps, but accuracy still constrains them, and the Crank-Nicolson method does not strongly damp high-frequency rough data.
For advection with , the upwind finite difference scheme gives
Thus is its contraction range. The Lax-Friedrichs scheme has and is contractive exactly when . These express a Courant–Friedrichs–Lewy condition: the numerical domain of dependence must encompass the physical one for convergence. That necessary condition is not sufficient by itself. Forward time with centered advection has and at nonzero modes. At a fixed nonzero Courant number it is unstable even if . Under the much stronger refinement , however, its powers remain bounded on fixed time intervals; the centered-advection refinement-dependent stability must not be confused with the usual hyperbolic-step instability.
Symbols also quantify dispersion and dissipation. For a mode , the argument of gives a numerical phase speed and gives damping. Upwind advection has leading artificial diffusion under fixed-Courant refinement; excessive damping smooths genuine structure, while phase error misplaces waves. Stability controls boundedness, not either error by itself. Smooth low-frequency Taylor expansions establish consistency; high-frequency modal bounds establish stability, so analyzing only fixed physical wavenumbers can miss grid-scale instabilities.
For a well-posed linear initial-value problem, the Lax equivalence theorem makes consistency plus a uniform stability estimate equivalent to convergence in the chosen norm. Boundaries and variable coefficients need extra care: Fourier diagonalization no longer handles the full update, and an interior or frozen-coefficient symbol does not prove boundary or global stability. Boundary energy estimates, a suitable matrix analysis or a separate boundary-stability argument must supplement it. Nonlinear schemes also require controls beyond this linear symbol test. These limitations delimit what the method proves rather than reducing its usefulness: in its proper setting, it turns an arbitrarily large grid evolution into exact and interpretable modal algebra.