On this page
Multiply two matrices entry by entry instead of row by column, and positivity survives. You can check it by hand on a 2×2 example and prove it in four lines.
What does the Schur product theorem say?
The Hadamard product A∘B of two matrices of the same size is the matrix whose (i, j) entry is a_ij × b_ij. The Schur product theorem states that the Hadamard product of two positive definite matrices is positive definite, and the eigendecomposition proof on that page also gives the positive semidefinite version.
It is named after Issai Schur, who proved it in a 1911 paper in the Journal für die reine und angewandte Mathematik, signed J. Schur.
A symmetric matrix M is positive semidefinite when xᵀMx ≥ 0 for every vector x, and positive definite when xᵀMx > 0 for every x ≠ 0. For the tests side by side, see three ways to tell if a matrix is positive definite.
A worked 2×2 example
Take two symmetric matrices:
A has rows (2, 1) and (1, 2). Its eigenvalues are 1 and 3.
B has rows (1, −1) and (−1, 2). Its eigenvalues are (3 ± √5)/2, about 0.38 and 2.62.
Both are positive definite (positive top-left entries, determinants 3 and 1). Multiply entry by entry:
A∘B has rows (2 × 1, 1 × (−1)) and (1 × (−1), 2 × 2), that is (2, −1) and (−1, 4).
The trace is 6 and the determinant is 7, so the eigenvalues are 3 ± √2, about 1.59 and 4.41: both positive, as promised. The quadratic form shows it too: xᵀ(A∘B)x = 2x₁² − 2x₁x₂ + 4x₂² = (x₁ − x₂)² + x₁² + 3x₂², a sum of squares that is zero only at x = 0.
Why isn't the ordinary product AB positive semidefinite?
Positive semidefinite is defined for symmetric matrices, and AB is usually not symmetric. Transposing gives (AB)ᵀ = BᵀAᵀ = BA, which equals AB only when A and B commute.
In our example, AB has rows (1, 0) and (−1, 3), while BA has rows (1, −1) and (0, 3). AB is not symmetric, so it does not fit the definition, even though its eigenvalues (1 and 3) are positive. The Hadamard product has no such problem: (A∘B)ᵀ = Aᵀ∘Bᵀ = A∘B, so symmetry comes free.
How does the rank-one proof work?
This is the eigendecomposition proof given on the Schur product theorem page, written out step by step.
Write each matrix as a sum of rank-one pieces: A = Σ aᵢaᵢᵀ and B = Σ bⱼbⱼᵀ. The spectral theorem gives this: each eigenvalue λ ≥ 0 with unit eigenvector u contributes (√λ u)(√λ u)ᵀ. Any such split works. Our post on the spectral theorem for symmetric matrices shows why the eigenvectors exist.
The Hadamard product distributes over sums, so A∘B = Σ (aᵢaᵢᵀ)∘(bⱼbⱼᵀ), summed over every pair i, j.
The key identity: (aaᵀ)∘(bbᵀ) = (a∘b)(a∘b)ᵀ. The (k, l) entry on both sides is a_k a_l b_k b_l.
So A∘B = Σ vᵢⱼvᵢⱼᵀ with vᵢⱼ = aᵢ∘bⱼ, and xᵀ(A∘B)x = Σ (vᵢⱼ · x)², which can never be negative.
See it on the example. A = (1, 1)(1, 1)ᵀ + (1, 0)(1, 0)ᵀ + (0, 1)(0, 1)ᵀ and B = (1, −1)(1, −1)ᵀ + (0, 1)(0, 1)ᵀ. The six entrywise products aᵢ∘bⱼ are (1, −1), (0, 1), (1, 0), (0, 0), (0, −1) and (0, 1). Their squares add to (x₁ − x₂)² + x₂² + x₁² + 0 + x₂² + x₂², exactly the sum of squares we found above.
Why does the Schur product theorem matter for machine learning kernels?
A symmetric kernel k(x, y) is positive definite when, for any finite set of points x₁, ..., xₙ, the matrix K with entries k(xᵢ, xⱼ) is positive semidefinite. It is a Gram matrix of similarities (see our post on the Gram matrix and its determinant).
Now multiply two kernels pointwise. On the same points, the matrix of k₁ × k₂ is exactly K₁∘K₂, so the Schur product theorem says it is positive semidefinite. This is what makes kernel products valid: scikit-learn's Product kernel computes k₁(X, Y) × k₂(X, Y), and its documentation notes that multiplying two kernels with the multiplication operator does the same thing.
Try it yourself
Compute A∘A for the A above and check that its eigenvalues are 3 and 5.
Find your own pair of positive definite 2×2 matrices whose ordinary product is not symmetric.
Use step 3 of the proof to show that if A is positive semidefinite, so is the matrix with entries (a_ij)ᵏ for every positive whole number k.
If the spectral theorem step feels like a leap, revisit eigenvectors and quadratic forms in the Fermi Concept Library, which covers concepts across mathematics and computing. To check your working on the exercises, the Fermi Problem Library has a step-by-step solver that explains the reasoning rather than printing an answer.



