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 asIf is an invertible matrix, define its Schur complement . Then is an invertible matrix exactly when is an invertible matrix, andThe order of the matrix products matters. In particular, the lower-right block is , rather than generally : the coupling through and changes the response.[ref]
Convex Optimization by Stephen Boyd and Lieven Vandenberghe. Appendix A.5.5, printed p. 650: inverse of a symmetric block matrix; §C.4.1, printed p. 673: elimination for general blocks
For an original example, takeThe Schur complement is . Substitution gives the concise answerMultiplying in either order gives the identity matrix; the lower-right entry is , whereas . The difference records the feedback through the two eliminated variables.
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]
Convex Optimization by Stephen Boyd and Lieven Vandenberghe. §C.4.1, printed pp. 672–675: Algorithm C.4, factor-solve interpretation and dense complexity comparison
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]
On the quantum reinterpretation of kinematical and mechanical relationships by Werner Heisenberg. Heisenberg, 1925; introduction and section 1, equations (5), (8), (15), (20), (24)–(25); Doria translation
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]
Über Zusammenstöße zwischen Elektronen und den Molekülen des Quecksilberdampfes und die Ionisierungsspannung desselben by James Franck and Gustav Ludwig Hertz. 1914, pp. 459–461, Figs. 1–2
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 relationThis relates position and momentum through an intrinsically noncommuting product.[ref]
Zur Quantenmechanik by Max Born and Pascual Jordan. Born and Jordan, Zur Quantenmechanik, 1925; section 3, equation (38), translation p. 14
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.
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.
Matrix-chain dynamic programming 2026-10-18
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]
Lecture 21: Dynamic Programming III. 6.006 Introduction to Algorithms, Fall 2011 by Massachusetts Institute of Technology, 6.006 course staff; Lecture 21: Dynamic Programming III, printed p. 2, Parenthesization: final split, recurrence and zero one-matrix base case; notes use half-open indices
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]
Lecture 21: Dynamic Programming III. 6.006 Introduction to Algorithms, Fall 2011 by Massachusetts Institute of Technology, 6.006 course staff; Lecture 21: Dynamic Programming III, printed p. 2, Parenthesization: increasing substring size, cubic time and parent pointers
The dynamic programming table has cost entries. For length , there are entries and possible splits, so the exact number of candidate evaluations isUnder 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.
Matrix-chain split reconstruction 2026-10-18
Extend the original example by a matrix with matrix dimensions , so . The Catalan number counts all possible groupings. Their scalar multiplication costs areThe 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.
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]
Convex Optimization by Stephen Boyd and Lieven Vandenberghe. §C.4.1, printed pp. 673–674: block factor-solve interpretation
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.
Past exam of the mathematical methods I course of the University of Oxford 2021 3 a Solution 2026-10-25
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, givingThis also shows inductively why the diagonal of an integer matrix power consists of the corresponding powers of the diagonal entries.
Past exam of the mathematics course of the University of Cambridge 2004 ib Paper 2 1E Solution Created 2026-09-24 Updated 2026-10-14
Let when and otherwise. The matrix product has entriesso . 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.
Past exam of the mathematics course of the University of Cambridge 2008 ia Paper 1 6A Solution Created 2026-09-24 Updated 2026-10-14
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 givesAdding yields , so . HenceEvery 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 isThe identity holds for all integers: multiplication adds the coefficients of , and proves the negative cases. ThereforeWrite and . Comparing those three entries givesSubtracting the first two equations finds ; the third then finds , and the first finds . The unique solution isFor 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.
Past exam of the mathematics course of the year 1 of the natural sciences course of the University of Cambridge 2001 Paper 1 7 a iv Solution Created 2026-10-18 Updated 2026-10-20
The first matrix product gives the column . Its product with the final row is an outer product, not a scalar:
Past exam of the mathematics course of the year 1 of the natural sciences course of the University of Cambridge 2002 Paper 2 8 a Solution Created 2026-10-18 Updated 2026-10-20
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 givesThus is an antisymmetric matrix exactly when . The hypotheses do not force this commutativity. For a counterexample, takeHere 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
Past exam of the mathematics course of the year 1 of the natural sciences course of the University of Cambridge 2003 Paper 2 3 a Solution Created 2026-10-18 Updated 2026-10-20
The unique symmetric and antisymmetric parts of a matrix are and , givingTheir 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
Past exam of the mathematics course of the year 1 of the natural sciences course of the University of Cambridge 2003 Paper 2 8 a iii Solution Created 2026-10-18 Updated 2026-10-20
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 .
Past exam of the mathematics course of the year 1 of the natural sciences course of the University of Cambridge 2003 Paper 2 8 b i Solution Created 2026-10-18 Updated 2026-10-20
Past exam of the mathematics course of the year 1 of the natural sciences course of the University of Cambridge 2004 Paper 2 3 b ii Solution Created 2026-10-18 Updated 2026-10-20
Use , and to expand the matrix product:The double-angle identities therefore giveSimilarly , and , soThis conjugation rotates the two-dimensional span of the two matrices through the double angle described by orthogonal rotations generated by anticommuting involutions.


