On this page
In the matrix with rows 1, 1/2, 1/3 and 1/2, 1/3, 1/4, each row is the one above shifted one place left. That pattern links linear algebra, probability and function approximation.
What is a Hankel matrix?
A Hankel matrix is a matrix whose entries are constant along every anti-diagonal, the lines running from bottom-left to top-right (Wikipedia: Hankel matrix). Equivalently, the (i, j) entry depends only on the sum i + j (Wolfram MathWorld: Hankel matrix). It is named after Hermann Hankel.
So one sequence a(0), a(1), ..., a(2n − 2) fixes an n×n Hankel matrix: counting from 0, row i, column j holds a(i + j). Reverse its columns and you get a Toeplitz matrix, which depends on i − j instead; see Toeplitz matrices, Levinson recursion and Szegő.
Why is a moment matrix positive semidefinite?
Take a random variable X. Its k-th moment is m(k) = E[X^k]. The moment matrix is the Hankel matrix with entries m(i + j).
Pick any real numbers c(0), ..., c(n − 1) and form the polynomial p(x) = c(0) + c(1)x + ... + c(n − 1)x^(n − 1). Because x^i times x^j is x^(i + j),
c^T M c = sum over i and j of c(i) c(j) m(i + j) = E[p(X)^2] ≥ 0.
The average of a square is never negative, which is the definition of positive semidefinite. For the usual tests, see how to tell if a matrix is positive definite.
The converse is the surprise. The Hamburger moment problem asks which sequences m(0), m(1), m(2), ... are the moments of a positive measure on the real line; the answer is exactly those whose Hankel matrices are positive semidefinite in this sense (Wikipedia: Hamburger moment problem). It is named after Hans Ludwig Hamburger.
Worked check: why do uniform moments give the Hilbert matrix?
Let X be uniform on [0, 1]. Then m(k) is the integral of x^k from 0 to 1, which is 1/(k + 1).
Counting from 0, the moment matrix has entries 1/(i + j + 1). That is the Hilbert matrix, written 1/(i + j − 1) when you count from 1 (Wikipedia: Hilbert matrix). The same page says it is a Hankel matrix, the Gram matrix of the powers of x on [0, 1], and symmetric and positive definite; Hilbert introduced it in 1894.
Check it by hand:
The 2×2 matrix has rows (1, 1/2) and (1/2, 1/3). Its determinant is 1/3 − 1/4 = 1/12, positive, as is the top-left entry, so it is positive definite.
Try c = (1, −2). The matrix gives 1 − 2 × (1/2) × 2 + 4 × (1/3) = 1 − 2 + 4/3 = 1/3.
Through the polynomial, the integral of (1 − 2x)^2 = 1 − 4x + 4x^2 from 0 to 1 is also 1 − 2 + 4/3 = 1/3.
The 3×3 determinant is 1/2160: positive, but tiny.
That shrinking determinant is a warning. The 5×5 Hilbert matrix has a 2-norm condition number of about 4.8 × 10^5 (Wikipedia: Hilbert matrix), so solving equations with it loses digits fast; our guide to the condition number of a matrix explains why.
How do Hankel matrices show up in Padé approximation?
A Padé approximant is a ratio of two polynomials whose power series agrees with a function's power series to the highest possible order (Wikipedia: Padé approximant). Henri Padé developed it around 1890.
Matching Taylor coefficients gives a linear system for the denominator whose matrix is a Hankel array of the coefficients a(m − n + 1) to a(m + n − 1); its determinant is called a Hankel determinant (Charpentier, Nestoridis and Wielonsky, arXiv:1404.3409). When that determinant is nonzero, the approximant exists and is unique (Daras and Nestoridis, arXiv:1102.4782).
The smallest case uses our uniform moments with alternating signs: 1 − x/2 + x^2/3 − ..., the series for ln(1 + x)/x. For the [1/1] approximant (a + bx)/(1 + qx), multiply the series by 1 + qx; the x^2 coefficient of the product must vanish: 1/3 − q/2 = 0, a 1×1 Hankel system, so q = 2/3. Then a = 1 and b = −1/2 + 2/3 = 1/6.
At x = 1 this gives (7/6)/(5/3) = 0.7, against ln 2 ≈ 0.693. The Taylor polynomial from the same three coefficients gives about 0.833. Same information, a much better answer.
How do you check a Hankel matrix problem yourself?
Write the generating sequence first; the matrix is just a(i + j).
For moments, prove positivity through E[p(X)^2], not by expanding determinants.
Test small leading minors by hand before trusting a computer on large ones.
Expect ill-conditioning when entries are moments of plain powers of x.
If quadratic forms or determinants feel shaky, the Fermi Concept Library covers concepts across mathematics, so you can revisit them first. When a calculation goes wrong, the Fermi Problem Library has a step-by-step solver that explains the reasoning, so you can see which line broke.



