Advanced maths

Matrix Schur complement calculator with block elimination

A Schur complement eliminates a chosen leading square block from a larger matrix while preserving exact block identities.

Your numbers

Square order 2–5, rational entries; split applies to rows and columns.
Integer from 1 through matrix order minus one.

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

Report an issue

Behind the numbers

How this calculation works

A Schur complement eliminates a chosen leading square block from a larger matrix while preserving exact block identities. This calculator partitions the entered rational matrix at one row-and-column split, forms S=D−CA^−1B, and returns the actual left and right elimination matrices. It verifies the block-diagonal reconstruction and determinant relation instead of treating the complement as a separate unexplained matrix formula.

THE FORMULAM=[[A,B],[C,D]], S=D−CA^−1B; L M U=diag(A,S), det(M)=det(A)det(S).

A worked example

For M=[[4,2],[2,3]] and split one, A=4,B=C=2 and D=3. The Schur complement is 3−2×(1/4)×2=2. Left elimination L=[[1,0],[−1/2,1]] and right elimination U=[[1,−1/2],[0,1]] give L M U=diag(4,2). The determinant check is det(M)=8=4×2.

Good to know

Exact rational square matrices of order two through five. The leading A block must be invertible; no pseudoinverse or automatic pivot rearrangement is substituted. The complement S may be singular, and the whole matrix may therefore have determinant zero. Entry parsing and intermediate fraction-growth limits apply. This page does not infer positive definiteness from the determinant of an arbitrary nonsymmetric matrix.

The chosen split determines the actual operation

The leading block contains the first k rows and first k columns, not whichever invertible entries happen to be easiest. B occupies the upper-right rectangle, C the lower-left and D the remaining lower-right square. Keeping that order makes the returned elimination matrices reproduce the original input without an unstated permutation.

Changing k can produce a complement of a different size and a different determinant even though the full matrix determinant stays fixed. The complement determinant is therefore labeled separately from the full determinant. When A is singular, the usual formula is undefined and the input is rejected; it is not evidence that the entire matrix must be singular.

Exact elimination leaves diagonal blocks four and twoM: [4,2; 2,3]diag(4,2)L M U = diag(A,S)det(M) = 4 × 2 = 8
For M=[[4,2],[2,3]], split one gives S=3−2(1/4)2=2. The checked transformation L M U is diag(4,2), and det M=4×2=8.

The Matrix inverse calculator returns a full inverse when it exists, while this page exposes a chosen block elimination and Schur determinant identity.

Block multiplication preserves the order of factors

The correction is C A^−1 B. In general these matrices do not commute, and even their rectangular dimensions can prevent another ordering from being multiplied. Replacing it by A^−1BC based on a scalar example would give an invalid general formula. The code uses the partition dimensions directly and validates the final matrix identity exactly.

L subtracts C A^−1 times the leading rows from the lower rows, while U removes the upper-right block by a corresponding column operation. Both transformations have determinant one. Their product with M leaves A and S on the diagonal, so multiplying the two block determinants recovers det(M) without assuming that every block is invertible.

A singular complement is still a valid result

If A is invertible but S is singular, the calculation has succeeded and the full determinant is zero. For M=[[1,1],[1,1]], split one gives S=0 and the elimination certificate remains valid. Treating a zero complement as an inverse failure would erase useful rank information.

For symmetric positive-definite problems, Schur complements also appear in elimination and conditional covariance calculations. Those applications carry their own assumptions and interpretations. This page returns the exact algebraic object and its certificates, leaving covariance, units or physical meaning to the model in which the matrix was obtained.

A few questions, answered

Can the full matrix be invertible when A is singular?

Yes. The formula still requires the selected A block to be invertible, so choose a valid partition or reorder the matrix explicitly.

Does S=0 mean the calculator failed?

No. It can be a correct singular complement. The exact elimination and determinant certificates show whether the computation succeeded.

Find your calculator

Start typing to explore the library.