TL;DR
Split a square matrix into four blocks, and suppose the top-left block is easy to invert. The Schur complement is , where is the bottom-right block. It is the matrix you get after you remove the top-left block from the problem, and it is smaller than the original whenever is not a single number.
Solving a big system becomes two smaller solves: one with , then one with . This is the algebra behind block Gaussian elimination, and it appears wherever a large problem has a sparse, block-structured shape.
Where you'll see it: in bundle adjustment, where a 3D reconstruction is refined by solving a huge least-squares system whose cameras and points split cleanly into blocks, and in Gaussian-process and Kalman-filter updates, where a joint covariance is partitioned into observed and unobserved parts.
Intuition
Elimination, one block at a time
Solving a system of linear equations by hand, you use one equation to remove a variable from the others, then repeat on the smaller system. Block elimination does the same thing with groups of variables. If the group is the one you can eliminate cheaply, you solve for in terms of , substitute into the second group of equations, and what remains is a system only in . That remaining system is governed by the Schur complement.
The name fits the idea: it is the complement of the block you removed, the part of the matrix still standing once the easy block has been cleared away.
Why it is useful
Imagine a matrix with a structure like this:
If is diagonal, its inverse is trivial to compute: divide each diagonal entry by a number. If is also large, that cheapness is worth a lot. The Schur complement lets you pay the cost of inverting once, cheaply, and then work with a smaller matrix in place of .
flowchart LR M[Full system with blocks A B C D] --> E[Eliminate A: cheap because A is diagonal] E --> S[Schur complement S = D minus C A inverse B] S --> Y[Solve smaller system for the second group] Y --> X[Back-substitute to get the first group]
The math
Partitioned matrices and the complement
Let be a matrix partitioned as above, where is and invertible, is , is , and is . The Schur complement of in is
a matrix. The matrix is the inverse of , and is the product of three matrices, computed with the usual matrix multiplication rules.
Solving a block system
Consider the system , which expands to two equations:
Solve the first for : . Substitute into the second:
So solves a system with the Schur complement as its matrix, and then recovers the first group. Only one inverse of is needed, and it appears in the form , and .
The determinant identity
The determinant of the full matrix splits as
valid whenever is invertible. It follows from factoring into three pieces:
Multiplying out recovers (the lower-right entry is ). The outer matrices are triangular with ones on the diagonal, so each has determinant 1, and the middle one has determinant . The identity is also how the determinant of a large matrix is computed in pieces.
The inverse of the lower-right block
The same algebra gives the lower-right block of as . So the Schur complement is not only a solver tool: it is exactly the block of the inverse that a statistician or an engineer usually needs when only part of the system is of interest.
Positivity
If is symmetric and positive definite, then and are also positive definite. This is what makes the complement safe to use in covariance calculations, where is a joint covariance matrix and is the conditional covariance of one group given the other.
Worked examples
Take , so , , , .
- Invert the top-left block: .
- Compute .
- Form the complement: .
- Check the determinant identity: , and . They agree.
- Solve by the block method. The reduced equation is , so , giving .
- Recover .
- Check in the original system: and . Both hold.
Interpretation: the block method gave the right answer using a system instead of a one. With blocks of size one this saves little. The saving grows when is large and diagonal.
Take , with , , and .
- Because is diagonal, . This is the cheap step.
- Compute .
- Compute .
- Form the complement: . It is a matrix, so the reduced system is a single equation.
- Check the determinant: . And . They agree.
Interpretation: the problem reduced to inverting a diagonal block and solving one scalar equation. The same pattern, with of size thousands and diagonal, is how the largest reconstruction problems stay tractable.
Tradeoffs and failure modes
| Situation | Problem | Better choice |
|---|---|---|
| is diagonal or sparse | Inverting is cheap, so the method pays off | Use the Schur complement |
| is dense and small | The block bookkeeping costs more than it saves | Solve the whole system directly |
| is singular or nearly so | does not exist or is unstable, so is not defined | Reorder the blocks, or use a pivoted factorisation |
| is formed explicitly for a huge problem | Forming can fill in sparsity and run out of memory | Keep implicit and use iterative solvers, or precondition |
| Only a numerical solution is needed | Rounding in spreads into | Factor rather than forming its inverse |
The most common error is to write in code when a factorisation of would be both faster and more accurate. The algebra says "invert", but in practice you rarely do.
History
Issai Schur studied block quotients of matrices in the early twentieth century, in work on bounded analytic functions and matrix theory. The name "Schur complement" was given later, and it is usually credited to Emilie Haynsworth, who used the term in the late 1960s when she studied the inertia of partitioned Hermitian matrices. Its value in applied work grew with numerical linear algebra, where block elimination and sparse factorisations became the standard way to solve large systems. In computer vision, the trick became central to bundle adjustment in the 1990s and 2000s, because the sparse block structure of camera and point parameters makes the Schur-reduced system small enough to solve many times per second. It caught on because it turns an algebraic identity into a practical speed-up.
Check yourself
QuestionWhat is the Schur complement of in ?Show answer
It is , the bottom-right block of with the part coming from eliminating the top-left block subtracted off. It is defined when is invertible.
QuestionTake , , , as scalars. Compute and check .Show answer
. The determinant of is , and . They agree.
QuestionWhy is it cheaper to solve the block system with when is diagonal?Show answer
Inverting a diagonal matrix only requires inverting each diagonal entry, which costs one division per entry. The reduced system in is then the only dense solve left, and it is smaller than the original whenever has more than one row.
QuestionIn bundle adjustment, why are the point-to-point interactions in the matrix block diagonal?Show answer
Two 3D points do not appear together in any reprojection error, because each error term involves one point and one camera. So the block that couples points to points is diagonal in the point blocks, and each point block can be inverted independently.
QuestionWhy should you avoid forming explicitly in a numerical solver?Show answer
Explicit inversion can lose accuracy when is ill-conditioned and can destroy sparsity. A factorisation of , applied to the right-hand sides, gives the same products and with better stability and less work.