Skip to content

Discrete Hartley Transform

A real, finite cas-kernel transform encodes a real sequence in N real coefficients and uses the same kernel for inversion up to scale.

Version
v1 · 2026-10-03 · History
Domain-specific #
13154
Domain group
Formal Sciences
Origin domain
Mathematics
Subdomain
Digital Signal Processing → Mathematics
Aliases
DHT

Core Idea

The discrete Hartley transform maps \(N\) real samples to \(N\) real coefficients using \(\operatorname{cas}\theta=\cos\theta+\sin\theta\). Under an unnormalized forward convention, \(H[k]=\sum_nx[n]\operatorname{cas}(2\pi kn/N)\) and the same sum recovers \(x[n]\) after division by \(N\). Bracewell's 1983 original article put the \(1/N\) factor on the forward direction instead; the conventions are equivalent but must not be mixed.[1]

How would you explain it like I'm…

The Same-Trick-Back Wobble Finder

Imagine a song written as a list of numbers. There's a trick that turns that list into another list telling how much of each kind of wiggle is in the song. The same trick, used again and shrunk a bit, turns it back into the song.

Cosine-Plus-Sine Wave Finder

The Discrete Hartley Transform takes a list of ordinary numbers, like sound samples, and makes a new list of the same length. The new list tells how strongly different repeating wave patterns show up in the original. It uses a special wave made by adding a cosine wave and a sine wave together. A neat feature is that the same recipe works going forward and backward; you just divide by the length of the list on one of the trips. It holds all the same wave information as the better-known Fourier transform, but uses only ordinary numbers.

Real-Valued Cas-Kernel Transform

The Discrete Hartley Transform takes a list of N real numbers and produces another list of N real numbers, using the kernel cas θ = cos θ + sin θ. In the convention used here, H[k] is the sum of x[n]·cas(2πkn/N), and the inverse is the same sum applied to H with a factor 1/N in front — so one operation works in both directions. Other authors, including Bracewell's original article, put the 1/N on the forward step instead; either is fine, but you can't mix them in one calculation. For real signals it carries the same information as the discrete Fourier transform. It is not just the Fourier transform's real part: combining H[k] and H[−k] recovers both the real (cosine) and imaginary (sine) parts.

 

The Discrete Hartley Transform (DHT) is a real-to-real linear transform on length-N sequences with kernel cas θ = cos θ + sin θ. Under the unnormalized-forward convention, H[k] = Σ_n x[n] cas(2πkn/N) and x[n] = (1/N) Σ_k H[k] cas(2πkn/N), so the transform is its own inverse up to the factor 1/N. Bracewell's 1983 article instead places 1/N on the forward transform; the conventions are equivalent but must not be mixed. For real input the DHT is informationally equivalent to the DFT F[k] = Σ_n x[n] e^{−2πikn/N}. Writing indices modulo N, Re F[k] = (H[k] + H[−k])/2 and Im F[k] = (H[−k] − H[k])/2. Thus the even part of H gives the cosine content and the odd part preserves the sine/imaginary content. The DHT is therefore not simply the real part of the DFT, which would discard the sine information.

Scope of Application

The real coefficients contain the same information as a complex DFT of real input: with \(F[k]=\sum_nx[n]e^{-2\pi i kn/N}\), its real part is \((H[k]+H[-k])/2\) and imaginary part is \((H[-k]-H[k])/2\) (indices modulo \(N\)). Bracewell proposed real-arithmetic use in convolution and two-dimensional images, but no universal speed advantage follows.[1]

Clarity

The DHT is not a cosine-only transform, continuous Hartley integral, or a DFT's real part alone. Its odd Hartley component preserves information corresponding to the DFT imaginary part. It is self-reciprocal up to scale, not literally unscaled in both directions. Generic convolution requires a parity-aware mixed Hartley formula; pointwise multiplication is a special case when a convolving sequence is even.

Manages Complexity

For the constructed \(N=4\) sequences \([1,0,0,0]\) and \([0,1,0,0]\), the unnormalized DHTs are \([1,1,1,1]\) and \([1,1,-1,-1]\) respectively. Applying the same cas transform again and dividing by four recovers the inputs. The second case shows how real coefficients retain information about a shift rather than collapsing to a mere real-part projection.

Abstract Reasoning

Bracewell's original convolution discussion distinguishes general even/odd mixed terms from an even-filter special case where the odd filter part vanishes and simple Hartley-domain multiplication works.[1] Thus the transform's real arithmetic and shared kernel simplify representation, while composition for an arbitrary filter may be more complicated than the familiar DFT product.

Knowledge Transfer

Equivalent representations can retain information while changing which operations are simple. For this named transform, the cas kernel, modular even/odd relation and matching normalization are indispensable; a generic “change basis” slogan would not distinguish it from other transforms. Live Linear Operator is the strict domain-specific parent; the DFT is related, not the necessary genus.

Relationships to Other Abstractions

Local relationship map for Discrete Hartley TransformParents appear above the current abstraction, mutual partners to the right, and children below. Node labels state whether each abstraction is prime or domain-specific; colors identify relation types.Discrete HartleyTransformDOMAINDomain-specific abstraction: Linear Operator — is a kind ofLinear OperatorDOMAIN

Current abstraction Discrete Hartley Transform Domain-specific

Parents (1) — outgoing typed relations

  • Discrete Hartley Transform is a kind of Linear Operator Domain-specific

    The DHT is a finite real linear operator with a particular cas-kernel matrix and inverse convention.

Hierarchy path (1) — routes to 1 parentless root

Neighborhood in Abstraction Space

Discrete Hartley Transform sits in a sparse region of the domain-specific corpus (80th percentile for distinctiveness): few abstractions share its structure, so a faithful description tends to retrieve it precisely.

Family — Unclustered & Miscellaneous (3155 abstractions)

Nearest neighbors

Computed from structural-signature embeddings · 2026-11-14

References

[1] R. N. Bracewell, “Discrete Hartley transform,” Journal of the Optical Society of America 73 (1983), 1832–1835, original full-text mirror. https://gwern.net/doc/math/1983-bracewell.pdf registry ↩a ↩b ↩c