A matrix of nonnegative rational numbers with integer row and column sums can be rounded entrywise up or down while preserving all those sums. Let and be its floor and fractional part. The residual row and column sums and are nonnegative integers. Build a flow network with source-to-row flow network edge capacities , row-to-column flow network edge capacities one where , and column-to-sink flow network edge capacities . The fractional parts supply a feasible flow saturating all source arcs. The integral max-flow theorem supplies an integral one of the same total value. If its middle-arc flows are , with where , then is the required matrix. This is a constructive polynomial-time algorithm; no multiplication by a common denominator is required.
Matrix similarity invariants Created 2026-10-14 Updated 2026-10-25
Matrix similarity invariants are quantities unchanged by replacing with . Important examples are the characteristic polynomial, trace, determinant, matrix rank, and eigenvalues with their algebraic multiplicities. The characteristic polynomial convention here is , where is the identity matrix.[ref]
The short determinant proof works over any field: because , multiplicativity of the determinant gives
Thus its roots, the eigenvalues, retain their algebraic multiplicities in any field extension where the polynomial splits. Also . The cyclic property of the trace gives ; equivalently, the trace is determined by the coefficient of in the characteristic polynomial for an -by- matrix.[ref]
For the two matrices in the opening example,
Their entries differ, yet these quantities agree. Agreement is a useful necessary test for matrix similarity; it is not sufficient in general, as same eigenvalues do not imply similarity illustrates.
The relation also preserves repeated application. Adjacent factors cancel to give
For the opening example, matrix powers therefore have the explicit form
At , this is . Acting on gives , which reconstructs as . More generally for every polynomial , so the minimal polynomial is also unchanged. Multiplication by invertible matrices preserves matrix rank, giving another invariant without finding eigenvalues.
Matrix splitting Created 2026-09-24 Updated 2026-10-18
A splitting with invertible produces
A matrix splitting chooses an easy part of a matrix and corrects for the remaining part . To solve the linear system , first rewrite it as , then use the old vector on the right and solve for the new vector on the left. The matrix inverse notation describes the update mathematically; each step should solve with rather than construct its matrix inverse.[ref]
The same identity also yields a correction based on the linear-system residual:
This connects a matrix splitting to matrix preconditioning: rescales the imbalance before adding a correction. Choosing gives and the exact solution in one step, but requires solving the original linear system; choosing cheaply matters as much as the convergence criterion for a stationary iteration.
With the sign convention , is the diagonal matrix of diagonal entries and contain the actual lower and upper entries, without reversing their signs. The Jacobi method uses , ; the Gauss-Seidel method uses , . The first requires only division by diagonal entries; the second uses a lower triangular matrix and forward substitution. These choices explain their different information flows.
Matrix trace Created 2026-09-24 Updated 2026-10-14
For an -by- square matrix over a field, its matrix trace is the sum of its diagonal entries:
For example, has trace . Adding corresponding diagonal entries immediately proves linearity:
Thus matrix trace is a linear functional on the vector space of -by- matrices.[ref]
The surprising point is that the sum is intrinsic to a linear operator, even though individual diagonal entries depend on the basis. The cyclic property of the trace gives, for any invertible matrix ,
Hence matrix similarity preserves trace. For the example above, choose the change-of-basis matrix . Then
The diagonal entries have changed but their sum has not. This makes trace useful for extracting a feature of the underlying linear operator without finding a preferred basis.
Over the complex numbers, or over the real numbers after allowing complex eigenvalues, the trace equals their sum with algebraic multiplicity:
No diagonalizable matrix hypothesis is needed.[ref] To see why, use triangularization over an algebraically closed field: an upper triangular matrix similar to has the eigenvalues on its diagonal, counted with algebraic multiplicity, because its characteristic polynomial is . Similarity preserves trace, so summing that diagonal proves the formula.
For instance,
There is only one independent eigenvector, since , so is not a diagonalizable matrix. Nevertheless its repeated eigenvalue contributes twice. For our earlier , the characteristic polynomial is , its eigenvalues are and , and their sum is . An inexpensive diagonal sum therefore gives spectral information before solving the characteristic polynomial.
The trace of a real matrix does not give that linear map's volume factor: that factor is the absolute value of its determinant. For example, has trace and area factor , but has trace and volume factor . Their occasional numerical agreement in two dimensions is a coincidence. The connection between trace and local volume change gives a geometric interpretation near the identity matrix, and describes the volume rate of a flow map generated by a linear system of differential equations.
Matrix trace pairing Created 2026-10-31 Updated 2026-11-05
On the vector space of -by- matrices over a field, the matrix trace pairing is
It is a symmetric bilinear form, because matrix trace satisfies . It is also a nondegenerate bilinear form: pairing with the matrix unit reads off the entry , so a matrix annihilating every partner has every entry zero. This is different from the trace pairing of a field extension.
Over the real numbers, it is not a positive-definite bilinear form when . The rotation matrix satisfies . More systematically, symmetric matrices and skew-symmetric matrices are orthogonal for this pairing, with
Their dimensions therefore give the inertia of a bilinear form .
If all eigenvalues of a real matrix are real, then , counting algebraic multiplicity. This identity follows from Jordan normal form and does not require diagonalizability. It does not make the pairing positive definite: a nonzero nilpotent matrix can have self-pairing zero.
Matrix unit Created 2026-09-24 Updated 2026-11-05
The matrix unit has entry one in row , column , and zero in every other position. The matrix units form the standard basis of the vector space of matrices of a fixed size.
Matrix-unit extraction lemma for special linear ideals Created 2026-10-05 Updated 2026-10-06
Over a field of characteristic different from two, any Lie algebra ideal in containing a nonscalar matrix is the whole special linear Lie algebra. Indeed, if for , then extracts a matrix unit. For a nonscalar diagonal matrix, extracts one instead. Its bracket with produces , and extracts the reverse unit. Brackets and spread these units to every row and column; opposite pairs span all trace-zero diagonal matrices. Thus only ideals consisting of scalar matrices can be proper. This proof works even when restrictions of distinct roots of a root system to a Cartan subalgebra coincide in positive characteristic.
Matrix-vector product Created 2026-10-25 Updated 2026-11-05
For an -by- matrix and an -component column vector , their matrix-vector product is the column vector with entries
Equivalently, it is the linear combination of the columns of with coefficients . This formula uses no complex conjugation, so over the complex numbers it should not be confused with an inner product of a row and . A dense evaluation costs arithmetic operations in Big O notation.
Matrix with orthonormal columns Created 2026-10-31 Updated 2026-11-05
A real matrix whose columns are an orthonormal set, equivalently . In the complex case use the conjugate transpose instead. This requires ; only in the square case does the transpose also provide a two-sided inverse, making an orthogonal matrix.
Maurer-Cartan coframe of the real affine group Created 2026-10-06 Updated 2026-11-05
In the faithful matrices with , the Maurer-Cartan form has entries and . Thus the left-invariant differential forms , obey and . The Lie algebra generators satisfy .
Maximal algebraic torus Created 2026-10-14 Updated 2026-11-05
A maximal algebraic torus is an algebraic torus not properly contained in another algebraic torus of the ambient algebraic group. Over an algebraically closed field, maximal algebraic tori in a connected reductive algebraic group are conjugate. A Borel subgroup contains one, and it splits as with its unipotent radical.
For , the invertible diagonal matrices form a maximal algebraic torus isomorphic to . Choosing a different basis conjugates this example. The dimension of a maximal algebraic torus is the absolute rank of the connected reductive group.
Over a general field, geometric conjugacy does not assert conjugacy by rational points. In , the split diagonal algebraic torus has noncompact real points, while the rotation norm-one algebraic torus has compact real points, so they cannot be conjugate by a real matrix. Both become maximal split algebraic tori after passing to the complex numbers.[ref]
A normalized bipartite pure state of Schmidt rank has quantum fidelity at most with a fixed maximally entangled state on . Its coefficient matrix has matrix rank and Hilbert-Schmidt norm one. Its overlap is the trace of that matrix divided by ; trace duality and the Cauchy-Schwarz inequality bound this by . Uniform Schmidt coefficients on matching basis pairs attain equality.
In a Boolean matrix, find an axis-aligned rectangle containing only true entries and having maximum area. One approach first records each row's consecutive true run ending at each column. For each possible top-right corner, extend downwards, maintaining the minimum run width and maximizing height times width. This uses time complexity on an by matrix after preprocessing.
Maximum-likelihood covariance estimator for centered Gaussian data Created 2026-09-24 Updated 2026-11-05
For independent Gaussian random vectors with known zero mean and positive-definite covariance matrix , the candidate maximum-likelihood covariance estimator is
When is positive definite, the Gaussian log likelihood, up to a constant, is . Writing the precision matrix as gives the concave objective , whose derivative vanishes uniquely at . This proves the displayed estimator. It is unbiased because the mean is known: .
If the sample vectors do not span the whole -dimensional space, is singular. Shrinking a candidate covariance eigenvalue to zero along an unobserved direction makes the likelihood unbounded, so there is no maximum within the positive-definite parameter space. In particular, cannot yield a positive-definite maximum-likelihood estimate. For a positive-definite Gaussian population and , the vectors span the space almost surely. When the mean is instead estimated from the same data, centering changes the rank condition and the unbiased covariance uses denominator rather than .
Mechanical mass matrix 2026-10-20
The symmetric coefficient matrix of kinetic energy to second order in generalized velocities. For independent horizontal point-mass coordinates it is diagonal, with the particle masses on the diagonal. Together with the mechanical stiffness matrix it gives the generalized eigenvalue problem for small oscillations.
Mehrstellen method 2026-10-14
A Mehrstellen method increases the accuracy of a compact finite difference method discretization by using the differential equation to express its leading truncation terms in terms of the prescribed source. For , the square-grid nine-point finite-difference stencil for the Laplacian satisfies . Replacing by and approximating this source derivative gives , with fourth-order normalized consistency of a numerical method while retaining a compact nine-point matrix. The uncorrected nine-point finite-difference stencil operator is only second-order accurate on general functions.
Metabolic Seifert form Created 2026-09-24 Updated 2026-11-05
An integral Seifert form on a free abelian group of rank is metabolic if there is a rank- direct summand on which the entire bilinear form vanishes:
Over a field, replace the direct summand by a -dimensional vector subspace. Such a half-rank vector subspace is a metabolizer. In a basis starting with a basis of the metabolizer, the Seifert matrix has a zero upper-left -by- block.
The knot-theoretic nonsingularity condition concerns the matrix , which defines a unimodular intersection pairing; itself need not be an invertible matrix. For example,
has a metabolizer spanned by the first basis vector and has , despite . Requiring itself to be nonsingular would exclude this legitimate metabolic example. Algebraic concordance of knots identifies two forms when their difference is metabolic.
Minimal polynomial bound from a triangular invariant flag Created 2026-09-24 Updated 2026-11-05
If an upper-triangular by matrix has diagonal entries , its standard invariant flag satisfies
The commuting product therefore vanishes, proving without invoking the full Cayley-Hamilton theorem.
Minimal polynomial of an invertible matrix Created 2026-09-29 Updated 2026-11-05
A square matrix is invertible exactly when its minimal polynomial has nonzero constant term. If , then , and invertibility would contradict the minimality of . Conversely, if with , then .
Minimal polynomials of AB and BA Created 2026-09-29 Updated 2026-11-05
For square matrices ,
Indeed, . Thus the two minimal polynomials have the same nonzero factors with the same multiplicities, while their powers of differ by at most one.