Block matrix inverse Created 2026-09-24 Updated 2026-10-18
A block matrix inverse expresses the matrix inverse in terms of smaller matrices. Partition a square matrix over a field as
If is an invertible matrix, define its Schur complement . Then is an invertible matrix exactly when is an invertible matrix, and
The order of the matrix products matters. In particular, the lower-right block is , rather than generally : the coupling through and changes the response.[ref]
For an original example, take
The Schur complement is . Substitution gives the concise answer
Multiplying in either order gives the identity matrix; the lower-right entry is , whereas . The difference records the feedback through the two eliminated variables.
Figure 1.
A block matrix inverse computed from the smaller Schur complement
. Original exact example. Colours mark the two-by-two block , the coupling blocks , and the scalar block . The same partition is retained in the matrix inverse; its blocks are not the entrywise inverses of the original blocks. Details.
Often the desired output is a solution of a linear system, rather than every entry of a matrix inverse. Block elimination solves with and then with , recovering the eliminated variables by back substitution. Reusing an LU decomposition of avoids explicitly forming . A favourable block diagonal matrix or tridiagonal matrix block can make this useful; merely partitioning an unstructured dense matrix does not guarantee a faster solve.[ref]
From Heisenberg arrays to Born-Jordan commutation Created 2026-10-18 Updated 2026-10-20
In 1925, Werner Heisenberg proposed replacing classical orbital quantities with arrays of transition amplitudes and frequencies. His paper's opening demanded relations between quantities observable in principle; section 1 built products by summing over an intermediate state and noted their dependence on order. The formulas above express that construction in modern linear operator notation.[ref]
Pumping and a heated bath prepared Mercury vapor around a hot platinum wire, mesh and collector in the original Franck-Hertz experiment. A galvanometer read collector electric current while accelerating voltage varied at fixed retarding voltage. Retarding scans distinguished outgoing electron energies.[ref] The losses constrain excitation of chemical atoms; they do not determine every optical coupling. The Franck-Hertz experiment explains the original mistaken ionization interpretation.
Such excitation and spectral line evidence motivated a mechanics of discrete energy levels and transitions. Replacing one representation by another was a theoretical construction; the Franck-Hertz experiment does not measure a matrix product or establish a unique representation of an observable.
Later in 1925, Max Born and Pascual Jordan developed the array calculus systematically. Their section 3 states , equivalently the modern canonical commutation relation
This relates position and momentum through an intrinsically noncommuting product.[ref]
For the quantum harmonic oscillator, the canonical commutation relation and creation and annihilation operators give , recovering both the spacing and zero-point energy algebraically. One must retain infinitely many number states for the exact relation: the finite cutoff below reveals the obstruction explicitly.
Matrix addition Created 2026-10-20 Updated 2026-11-05
Matrices of the same shape are added entry by entry. For fixed dimensions over a field, this operation and scalar multiplication make the matrices a vector space. A matrix product has a different dimension-matching rule: its inner dimensions must agree, whereas addition requires the entire shapes to agree.
Matrix-chain cost model 2026-10-18
For matrix dimensions and , ordinary matrix multiplication computes matrix entries, each using scalar multiplications. Thus its cost is scalar multiplications, with additions if each sum starts from its first term. Here we minimize only the scalar multiplication count, using this dense matrix multiplication rule throughout. The counts describe arithmetic operations, rather than measured elapsed time; matrix multiplication methods that exploit structure or use faster formulas require a different cost rule.
Take matrices , , with matrix dimensions , , . Both groupings produce a matrix product, but their intermediate matrix dimensions differ:
The second grouping first compresses into a matrix, avoiding the intermediate matrix . The saving is scalar multiplications, although both groupings use exactly two matrix multiplications. This is why counting only matrix multiplication operations hides the interesting choice.
Figure 1.
The same matrix product can require 3840 or 780 scalar multiplications
. Original binary trees for the three-matrix example. Leaves keep in the same order. Each internal node gives its resulting matrix dimensions and the local scalar multiplication cost; adding those costs gives the total. Details.
Associativity permits these regroupings in exact arithmetic; commutativity is neither assumed nor generally true for matrix multiplication. Swapping and here would even make their matrix product undefined. In floating-point arithmetic, round-off error can make the two groupings yield different computed matrix entries; the cost optimum alone does not guarantee the smallest numerical error.
Let have matrix dimensions , where are positive integers. For , define as the minimum scalar multiplication cost of the contiguous matrix product . The endpoints of an integer interval identify a dynamic programming state. A single matrix needs no matrix multiplication, giving the base case . At the final matrix multiplication, split after :
The two subproducts have matrix dimensions and , regardless of their internal grouping. The recurrence relation adds their optimal costs and the final scalar multiplication cost.[ref]
Why is this optimal substructure? For a chosen final split , replacing either subproduct's grouping by a cheaper one leaves its matrix dimensions and exact matrix product unchanged, so it decreases the whole cost by the same amount. Therefore an optimal grouping can use optimal groupings on both sides. Conversely, each candidate in the recurrence relation joins two achievable groupings. Mathematical induction on , starting with the single-matrix base case, proves that the minimum is achievable and no grouping is cheaper.
There are also overlapping subproblems: while evaluating the different final splits of , the cases and both request the cost of . Recursion without reuse recomputes this answer; memoization or a dynamic programming table stores it once. Fill the table by increasing length , so both dependencies are ready. Record an attaining split alongside each cost.[ref]
The dynamic programming table has cost entries. For length , there are entries and possible splits, so the exact number of candidate evaluations is
Under the unit-cost assumption that arithmetic operations, comparisons and access to stored costs each take constant time, this gives time complexity and space complexity , using Big O notation. These bounds concern choosing a grouping from the matrix dimensions; they exclude the subsequent matrix multiplication work. If the dimensions or costs require arbitrarily long integers, their arithmetic and storage costs must also be counted.
Extend the original example by a matrix with matrix dimensions , so . The Catalan number counts all possible groupings. Their scalar multiplication costs are
The optimum is , with cost . Enumeration makes a useful check here, but dynamic programming reaches the same answer by solving ten integer intervals, including the four single-matrix base cases:
For example, . The three final-split candidates for the full matrix product supply a compact certificate:
The first candidate already uses the better grouping of ; the worse need not be reconsidered at the top level. This is how optimal substructure lets the table represent all five possibilities with only three final candidates.
Figure 1.
A four-matrix cost table and the splits certifying the optimum
. Original dynamic programming calculation for . Orange entries are the nonsingleton integer intervals used in the recovered optimum. The binary tree follows stored splits down both children to the single-matrix base cases; the final candidates certify the cost . Details.
Read , which separates from . Then separates from , and separates from . This recursion stops at every , returning the corresponding matrix name. Combining the returned expressions recovers , rather than only its cost. Every recursive call uses a shorter integer interval, establishing algorithm termination; a tied minimum may choose any attaining split. The recovered binary tree has leaves and internal nodes, so reconstruction takes steps. Its attraction is the separation between an enormous family of groupings and a small set of reusable dynamic programming states.
Matrix decomposition 2026-10-14
A matrix decomposition expresses a matrix as a matrix product of factors with simpler structure. An LU decomposition uses triangular factors, a QR decomposition uses an orthogonal matrix and a triangular factor, and a singular value decomposition separates input directions, stretching factors and output directions. The factorization is an identity; the chosen structure determines what it helps compute.
For an original two-by-two example,
The outer factors are a lower triangular matrix and an upper triangular matrix, each with unit diagonal as in a unit triangular matrix; the middle factor is a diagonal matrix. Their matrix product is , and the final diagonal entry is the Schur complement of the first entry . This is the scalar version of the factorization under block elimination.
To solve , solve with the three factors in their displayed order from left to right: first the lower triangular factor, then the diagonal factor, then the upper triangular factor. The intermediate vectors are and , giving the concise answer . A new right-hand side uses the same factors. This is why Reusing LU factors for multiple right-hand sides is useful: factorization records work that otherwise would be repeated, while forward substitution and back substitution apply it cheaply.[ref]
Different decompositions reveal different features. A Cholesky decomposition uses positive definiteness of a symmetric matrix, while a singular value decomposition also applies to rectangular matrices and exposes matrix rank. The existence and numerical behaviour of the factors depend on their own hypotheses; for example, an unpivoted LU decomposition can fail when a chosen pivot element is zero even though the matrix is an invertible matrix.
Matrix dimensions Created 2026-10-18 Updated 2026-11-05
The matrix dimensions specify the number of rows and columns of a matrix. For matrix multiplication, an matrix can multiply an matrix, yielding an matrix product.
In the matrix product, . A nonzero summand in a product of upper triangular matrices requires both and . If , no such index exists, so the product is upper triangular. If , only survives, giving
This also shows inductively why the diagonal of an integer matrix power consists of the corresponding powers of the diagonal entries.
Let when and otherwise. The matrix product has entries
so . Both and its matrix transpose are triangular matrices with diagonal entries one. Multiplicativity of the determinant therefore gives for every . This determinant of the minimum-index matrix also follows by subtracting each preceding row from the next, working from the bottom upwards: the resulting matrix is upper triangular with unit diagonal.
For two upper triangular matrices and ,
Indeed a potentially nonzero factor requires , while a potentially nonzero requires . These requirements cannot both hold when . Thus their matrix product is upper triangular.
Direct matrix multiplication for the given gives
Adding yields , so . Hence
Every nonnegative matrix power is in : reduce powers of degree at least three using . More formally, repeated reduction shows that products of any two polynomials of degree at most two in again lie in this span. Since also lies in it, positive powers of prove the same assertion for all negative integers. This is an instance of the integer powers for an annihilating polynomial with roots one and minus one, because .
To find the required entries for every integer, use the block upper-triangular structure. The top-left entry of is for positive and negative powers. Its lower-right block is
The identity holds for all integers: multiplication adds the coefficients of , and proves the negative cases. Therefore
Write and . Comparing those three entries gives
Subtracting the first two equations finds ; the third then finds , and the first finds . The unique solution is
For clarity, substituting also gives the full matrix power
For an matrix, the corresponding elementary matrices are , because the operation is implemented by left matrix multiplication. Apply the desired elementary row operation to the identity matrix . Writing for the matrix unit with its only nonzero entry, , in position gives:
Indeed, these matrix products interchange rows , scale row , and add times row to row , respectively. The displayed inverses undo precisely those operations. Algebraically, when , so ; the other two inverse identities follow immediately from their row actions. Thus every elementary matrix is an invertible matrix.
Take and . Their matrix products are
They differ in the entry because whereas . Therefore , and .
The first matrix product gives the column . Its product with the final row is an outer product, not a scalar:
An orthogonal matrix satisfies , while a symmetric matrix satisfies . Combining them gives . For the product with the antisymmetric matrix , the rule for the transpose of a matrix product gives
Thus is an antisymmetric matrix exactly when . The hypotheses do not force this commutativity. For a counterexample, take
Here is a symmetric matrix and an orthogonal matrix, and is an antisymmetric matrix and an orthogonal matrix, but is a nonzero symmetric matrix, so it is not an antisymmetric matrix. On the other hand, the product of two orthogonal matrices is always an orthogonal matrix:
Therefore the answers are
The unique symmetric and antisymmetric parts of a matrix are and , giving
Their matrix products with their transposes are and . Each is an orthogonal matrix precisely when the corresponding factor is one. Thus and , with independent sign choices, and the simultaneous possibilities are
The matrix product is . Thus , and the nonzero vector is in its kernel. Hence is singular and . This includes , when span the whole space and .
Use , and to expand the matrix product:
The double-angle identities therefore give
Similarly , and , so
This conjugation rotates the two-dimensional span of the two matrices through the double angle described by orthogonal rotations generated by anticommuting involutions.