Low-rank approximation 2026-10-14
A low-rank approximation replaces an matrix by a matrix of matrix rank at most a chosen integer , with , while making an explicitly chosen error norm small. The point is to describe many entries using a few shared patterns: an image compression may retain broad brightness patterns while discarding finer ones. The approximation is useful when the saved storage or computation justifies the lost detail. A small matrix rank alone says nothing about the error.
The compact representation is a sum of outer products, equivalently a product of two thin matrices:Here are the columns of , and the star denotes the conjugate transpose; over the real numbers use the transpose. The rank bound for a matrix product gives . Conversely, choose a basis of the column space of as the columns of , and put the coordinates of each column of into ; pad with zero columns if the matrix rank is smaller than . Each nonzero outer product is a rank-one matrix: it repeats a single column pattern at different strengths across the columns.
Keeping the two factors stores scalars instead of . This saves space only when . The usual singular value decomposition representation stores scalars because it keeps the singular values separately; absorbing them into one factor removes that extra array. These are representation sizes at equal scalar precision, before file overhead. See Uschmajew and Vandereycken, §9.2: thin factors and their storage, and Illinois CS 357, Low-rank approximation: storing singular vectors and values.
The factors also give without forming the full matrix . Direct evaluation uses scalar multiplications, compared with for a dense matrix applied to a vector. For , the two factors contain scalars rather than , and the same counts describe these multiplication costs. Constructing the factors is a separate cost. Moreover, a low-rank approximation need not be a sparse matrix: the constant matrix whose entries are all has matrix rank despite having no zero entries.
For the standard unweighted problem, write a singular value decomposition with and singular values . Retain the first paired left singular vectors and right singular vectors:The Eckart-Young-Mirsky theorem says that this same minimizes both of the following error norms over all matrices with matrix rank at most :where and an empty sum is zero. Here the Frobenius norm is , whereas the operator norm is specifically induced by the Euclidean norm, . The first aggregates errors in all entries; the second bounds the worst output error for a unit vector input. These formulas apply to real and complex matrices. [ref]
https://math.uchicago.edu/~may/REU2016/REUPapers/Mazeika.pdf. Mazeika, §§4.1 and 4.3: norms and optimal singular-value truncation
For , a relative Frobenius norm tolerance is met precisely when the discarded squared singular values sum to at most . Thus one can choose the smallest suitable before reconstructing the matrix. Many individually small discarded singular values can still have a large combined error. An operator norm tolerance instead tests only the largest discarded singular value, . The two questions can therefore select different ranks.
The following stipulated matrix makes the tradeoff visible. Define four real vectors of length :The vectors are orthonormal, so this is already a singular value decomposition written as outer products, with positive singular values . All entries lie between and and can be displayed as brightnesses. The first component is uniform brightness, the second distinguishes broad blocks, and the last two supply finer alternating patterns. This is a designed arithmetic example, not measured image data.
Here has every entry equal to , while has entries within the two diagonal blocks and in the other two blocks. For instance, becomes : its error is . The full residual is , whose Frobenius norm is and whose operator norm is . Since , the relative Frobenius norm error is . Two thin factors use scalars, or if the normalized left singular vectors, right singular vectors, and singular values are stored separately, instead of dense entries.
Retaining three components reduces the Frobenius norm error to while using scalars in two factors. Retaining all four reconstructs exactly but uses scalars, giving no saving in this generic representation; keeping the singular values separately uses . Our particular sign patterns could be encoded more economically, but that would exploit an additional structure beyond the general low-rank approximation. The striking feature is that numerical error and storage can both be read from the decomposition, rather than judged only by how smooth the picture looks.
The constraint is deliberately matrix rank at most . The truncation has . If , the best approximation is itself, with zero error. Requiring matrix rank exactly can destroy attainment: for and , the matrices have matrix rank for , and both error norms equal . Their error has infimum zero, but no rank-two matrix attains it. If , the displayed does have matrix rank exactly and attains the same minimum under either constraint.
Optimality also does not always mean uniqueness. For , the best Frobenius norm approximation is unique when . [ref]
https://link.springer.com/chapter/10.1007/978-3-030-31351-7_9. Uschmajew and Vandereycken, Theorem 9.1: uniqueness across a singular-value gap
A positive tie across the cutoff permits different choices: for and , both and have Frobenius norm error and operator norm error . More generally, is optimal for every real unit vector in the first two coordinate directions. Rotating which tied direction is kept changes the approximation. Repeated singular values entirely inside the retained group do not change its sum of outer products. At the only feasible matrix is zero; at the unique zero-error approximation is , even if some singular values are tied at zero.A strict gap does not guarantee uniqueness for the operator norm. For and , every with has matrix rank and error , which is optimal. Only minimizes the Frobenius norm, since . An unchanged worst direction can hide extra error in another direction under the operator norm.
Finally, these guarantees concern the stated norms and the sole matrix rank constraint. They do not establish that a discarded pattern is noise or irrelevant to a particular task: the finer patterns in our constructed example were put there intentionally. Adding entrywise weights or restrictions on the factors changes the problem, so the Eckart-Young-Mirsky theorem above does not automatically solve it. For historical context, the original 1936 matrix problem is documented in the existing Eckart-Young-Mirsky theorem section.
For , a codeword in a Hamming code is a subset of the nonzero vectors of whose sum is zero. Ordered weight-three supports of a vector are determined by two distinct nonzero vectors, giving choices. For weight four, the third vector must avoid the three nonzero vectors in the linear span of the first two, giving choices. For weight five, the first three must be linearly independent, and the fourth must avoid all seven nonzero vectors in their linear span, giving choices. The final vector is their sum. Dividing by , , and counts unordered supports of a vector and proves the displayed weight enumerator coefficients.
Lp norm Created 2026-09-24 Updated 2026-10-14
An Lp norm measures the size of a measurable function by averaging a power of its absolute value with respect to a specified measure. For ,when the integral is finite. The exponent controls how strongly large values influence the result. The Lp space identifies functions equal almost everywhere, so this becomes a norm on the corresponding equivalence classes. For , use the essential supremum of , as defined by the L-infinity norm. [ref]
Lp spaces (Chapter 7 of Measure Theory). Hunter, Measure Theory, Definitions 7.1 and 7.4: Lp spaces and norms
.For a two-coordinate vector , treat the coordinates as a function on two inputs with counting measure. Then , , and . The middle case is the Euclidean norm; the first adds the coordinate magnitudes, and the last takes their largest value. These are different answers to different questions about size, all satisfying the triangle inequality.
If instead each input has probability , the same values give and , while remains unchanged. Thus the measure is not an optional label. On a probability space, the finite Lp norms are nondecreasing in whenever they are finite, by Hölder's inequality; the unnormalized two-coordinate example above decreases instead. Statements comparing different exponents must specify their measure convention.
Why are these sizes useful? If is an error function, its L1 norm measures aggregate absolute error, its L2 norm measures the square root of aggregate quadratic loss, and its L-infinity norm bounds error almost everywhere. Concentrating a large error on a set of small positive measure can give a modest finite Lp norm but a large L-infinity norm. The three-point example and diagram in L-infinity norm show this explicitly, including why a null set behaves differently from a rare event.
Lq null space property Created 2026-10-06 Updated 2026-10-14
For , this strict inequality for every nonzero and every is equivalent to unique constrained recovery of every sparse vector of order . For sufficiency, use on the support of a vector. For necessity compare with , which have the same measurements. The statement concerns uniform recovery over the whole sparse class, rather than a single signed vector.
Lq quasi-norm Created 2026-10-06 Updated 2026-10-14
Magnetic dipole moment Created 2026-09-24 Updated 2026-10-14
A magnetic dipole moment is a vector that summarizes the strength and orientation of a localized magnetic source. For a planar current loop, it is the electric current times the vector area: . The right-hand rule fixes the unit normal vector : curl the fingers of the right hand along the conventional current, and the thumb points along . This single vector predicts both the distant magnetic dipole field and the turning effect of an imposed magnetic field.[ref]
11.5 Force and Torque on a Current Loop. §11.5, equations 11.20–11.22: loop moment, winding count and torque
The SI unit is ampere times square metre, , equivalently joule per tesla. A magnetic dipole moment is neither a magnetic field nor a magnetic monopole: a closed current loop can have a nonzero magnetic dipole moment while its net outward magnetic flux through any closed surface remains zero, as required by Gauss's law for magnetism.
For a localized, steady electric current density , the more general definition isHere the cross product is integrated over the complete source, including return paths. Steadiness requires , and localization requires sufficiently rapid decay for the boundary terms to vanish. Under these assumptions the localized steady-current moment identities give : shifting the origin by changes the proposed magnetic dipole moment by . An isolated open wire segment does not satisfy these assumptions. [ref].
Magnetic field-line curvature Created 2026-10-25 Updated 2026-11-05
The curvature vector of a magnetic field line parametrized by arc length. For circular lines, it points towards their center and has magnitude . The curvature contribution to magnetic tension is in Gaussian units.
Magnetism 2026-10-18
Phenomena involving magnetic fields, including those produced by electric currents and magnetic moments.
A small total magnetic moment can hide extensive magnetic order. Compare three questions: are the individual magnetic moments nonzero, how are their directions correlated, and what is their vector sum? Ferromagnetism, antiferromagnetism, and ferrimagnetism answer the second question differently. The third question alone cannot identify the order.
Magnetization Created 2026-09-24 Updated 2026-10-18
Magnetization is magnetic dipole moment per unit volume, described by a vector field . Average the microscopic magnetic dipole moments in a small region of volume around the point :The averaging region should contain many microscopic constituents while being small compared with the distance over which the macroscopic magnetization varies. With number density of identical constituents, this becomes . Magnetic dipole moment has SI units , so magnetization has units : amperes per metre. The average is a vector sum, not a sum of magnitudes.[ref]
Magnetization. Classical Electromagnetism: An intermediate level course by Richard Fitzpatrick; Magnetization, equations (856)–(857) and the surrounding averaging definition
Alignment can change magnetization without changing the magnitude of any individual magnetic dipole moment. In a constructed counting example, eight equal magnetic dipole moments of magnitude occupy the same volume . Six along and two along give ; turning the two opposing magnetic dipole moments to doubles magnetization to . Both arrangements have the same sum of magnitudes, . Changing the individual magnetic dipole moments provides another possible response; their alignment and their magnitudes are distinct ingredients. Microscopic spin contributes magnetic dipole moment without being a literal rotating charged ball.
Distinguish magnetization , magnetic field , and magnetic field intensity . In SI,Here is the vacuum permeability, and denotes the tesla. Magnetization describes matter's magnetic dipole moment density; magnetic field enters the Lorentz force; magnetic field intensity separates the free electric current contribution in the macroscopic equations. In particular, zero applied magnetic field does not generally imply inside a finite magnet: its demagnetizing field depends on shape.[ref]
Magnetization. Classical Electromagnetism: An intermediate level course by Richard Fitzpatrick; Magnetization, equations (860)–(864): current decomposition and definition of H
For stationary electric polarization, magnetization produces bound current in the volume and on its bounding surface:The curl gives a current density in ; is a surface current density in . The unit normal points outward from the magnetized material into a region with zero magnetization. Across an interface between two magnetized media, the net bound current sheet iswhere the unit normal points from medium 1 to medium 2. Both faces contribute: medium 2 has the opposite outward normal vector. This fixes the cross product sign. If electric polarization changes with time, add its contribution to the bound current.[ref]
Permanent Ferromagnets. Classical Electromagnetism by Richard Fitzpatrick; Permanent Ferromagnets, equation (716): volume and outward-surface magnetization currents
A short proof outline explains why both contributions are needed. Write , where is the indicator function of the material's volume. In the sense of distributions, its gradient is , with the surface delta distribution. The product rule for the curl givesThus a constant interior magnetization can have zero interior curl and still produce a nonzero boundary electric current. Equivalently, neighboring ideal microscopic current loops cancel along shared edges while uncompensated edges remain on the outside. This bound current representation predicts the same macroscopic magnetic field as the magnetization distribution; it does not require a wire or free charge transport around the magnet. Its usefulness is that the familiar Biot-Savart law can now calculate the magnetic field from a specified magnetization.
A time-dependent average magnetization need not vary smoothly under a smooth drive. The Barkhausen effect resolves collective jumps through their induced electromotive force; Barkhausen pulse area explains how that derivative readout relates to the underlying change.
Markov chain invariant measure Created 2026-10-07 Updated 2026-11-05
A nonnegative row vector , not necessarily of total mass one, is an invariant measure for a Markov chain if . On an irreducible Markov chain, every nonzero invariant measure has positive coordinates: iterate stationarity and use a positive Transition probability along a path.
Markov reward model Created 2026-09-24 Updated 2026-11-05
A Markov reward model assigns a reward or cost rate to each state of a Continuous-time Markov chain and accumulates it with elapsed time:For a finite chain with generator and reward column vector , its expected accumulated reward isIntegrating state indicators proves the expectation formula; differentiating the matrix exponential gives the differential equation. Indicator rewards count time in a selected state. If rates represent power consumption, the accumulated reward is energy.
For a two-state chain at rate and at rate , let only state one earn unit reward. Starting at zero,It is the expected duration in state one, obtained by integrating its occupancy probability. With exponential discount , the infinite-horizon expected reward instead is , the resolvent applied to . Bounded rewards and positive discount make that integral finite even when the undiscounted cumulative reward grows indefinitely.
Massive Rarita-Schwinger constraints Created 2026-10-14 Updated 2026-11-05
For with , divergence gives . Gamma contraction then forces , hence . The remaining equation is in a mostly-plus convention. In the rest frame the temporal component vanishes, leaving a spatial vector times an on-shell two-component spinor; its gamma trace removes the spin-one-half sector. The remaining spin-three-halves representation has four physical states, including longitudinal helicities .
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 determinant lemma Created 2026-09-24 Updated 2026-10-14
For an invertible matrix and real vectors , the matrix determinant lemma statesThe expression is a scalar, so a rank-one matrix update changes the determinant by a single multiplicative factor. One need not expand the updated determinant entry by entry.
For the preceding example with , the dot product is . Hence the updated determinant is . Direct evaluation confirmsMore generally, let for a real scalar . The same calculation gives . The determinant is one at , two at , and zero at .
A compact proof explains the scalar reduction. Put and factor . If , choose a basis starting with . In that basis, , while every other basis vector changes only by a multiple of . Its matrix is triangular with diagonal , giving the required determinant. If , the correction vanishes. This uses multiplicativity of the determinant to restore the factor .
The denominator in the Sherman–Morrison formula is exactly this factor. The rank-one update singularity criterion therefore identifies when the updated matrix inverse ceases to exist. Batson, Spielman and Srivastava use both identities for the symmetric update in Twice-Ramanujan Sparsifiers, section 2.3, Lemmas 2.1–2.2.
Matrix-free Hessian-vector product Created 2026-10-25 Updated 2026-10-31
Applying a Hessian matrix to a vector without explicitly storing all its entries. For with diagonal , evaluate . This uses two matrix-vector multiplications and a diagonal scaling: arithmetic for dense , rather than forming the Hessian matrix. Iterative second-order methods can use this operation, with safeguards for indefinite curvature when the objective is nonconvex.
Matrix inverse Created 2026-09-24 Updated 2026-10-14
For an -by- square matrix over a field, its matrix inverse is an -by- matrix satisfying both identitieswhere is the identity matrix. It exists exactly when is an invertible matrix, equivalently when its matrix rank is or its determinant is nonzero. It reverses the linear map: applying and then recovers the input, while applying and then recovers the output.[ref]
https://ocw.mit.edu/courses/18-06-linear-algebra-spring-2010/resources/lecture-3-multiplication-and-inverse-matrices/. Strang, MIT 18.06 Lecture 3: the two inverse identities
The matrix inverse is unique. If and both satisfy the identities, then . Although the definition is two-sided, for finite square matrices either identity alone suffices: forces a trivial kernel, whereas forces surjectivity; either makes an invertible matrix by the rank-nullity theorem. Rectangular matrices may have only one of these properties.
For a concrete example, takeDirect matrix multiplication givesConsequently the vector follows a reversible journey:The columns and are the images of the standard basis vectors. They turn the unit square into a parallelogram; the matrix inverse restores both the square and its surrounding grid. Since , this example changes shape while preserving area, illustrating that invertibility does not require preserving lengths or angles.
For comparison, the singular matrixcannot have a matrix inverse: the output cannot specify which of the two inputs occurred. Their difference belongs to its kernel. Indeed collapses the plane to a line, its matrix rank is one, and its determinant is zero. No subsequent function of the output alone can reconstruct every input.
An important use of the matrix inverse is describing the unique solution of a linear system:For , the preceding computation solves and , giving . In computation, usually solve the linear system using Gaussian elimination and a factorization such as an LU decomposition, rather than forming every entry of the matrix inverse. The inverse formula specifies the answer; a factorization provides a reusable way to compute it for each right-hand side.[ref]
https://www.mit.edu/~18.06/Spring17/final-sol.pdf. MIT 18.06, Spring 2017 final solutions, problem 5(b): solve with triangular factors rather than computing inverses
Here the LU decomposition is especially simple:Solve by forward substitution in a triangular system: and . Then solve by backward substitution in a triangular system: and . The same factors work when changes. If the whole matrix inverse is actually needed, its th column is the solution of , where is the th standard basis vector.
Reversing several operations means undoing the last one first. For invertible matrices of the same size,because , and the product in the other order is also . This is why a change-of-basis matrix uses its matrix inverse to reverse the direction of coordinate conversion.
Matrix norm induced by an energy norm 2026-10-31
For a real symmetric positive-definite matrix , the energy norm is . In the defining supremum of the induced matrix norm, substitute . The matrix square root is an invertible matrix, so this ranges over every nonzero vector and proves the displayed identity. This matrix similarity is useful because contraction in the energy norm becomes an ordinary Euclidean operator norm estimate after a change of coordinates.
Matrix preconditioner Created 2026-10-06 Updated 2026-10-18
A matrix preconditioner is an auxiliary invertible matrix whose matrix inverse is cheap to apply and whose use improves the eigenvalues of a linear system. In symmetric positive-definite matrix problems, a symmetric positive-definite matrix preserves that structure under the symmetric transformation .
Applying means solving for a supplied vector . This notation does not require forming a general matrix inverse. A diagonal matrix gives componentwise divisions; a factored matrix gives auxiliary solves such as forward substitution and back substitution.[ref]
Notes for Ma221 Lecture 21, Nov 10 2009. Math 221, Matrix Computations, Fall 2009; Basic iterative methods, web lines 297–308, recurrence (*) and cheap auxiliary-solve requirement
Choosing makes the solve trivial but changes nothing; choosing gives the exact correction but asks us to solve the original linear system.[ref]
Matrix rank Created 2026-09-24 Updated 2026-11-05
The matrix rank of an matrix over a field is the dimension of its column space, equivalently the dimension of its row space. It counts linearly independent column directions, with . Counting nonzero matrix entries gives a different quantity: an all-ones matrix can have arbitrarily many nonzero matrix entries and still have matrix rank one.[ref]
The Rank Theorem. Interactive Linear Algebra, §2.9, Definition: rank is column-space dimension; the row-space equality is proved below
Consider the following matrix over the real numbers, with columns written as vectors:The vectors are linearly independent: requires both and , so . The third column adds no new direction to their linear span, hence despite all nine matrix entries being nonzero. The second row likewise repeats twice the first row.
The column space is a plane through the origin:Every output has second coordinate twice its first coordinate. Conversely, any vector equals , so this condition describes the entire plane, not just part of it. For example, is attainable, whereas lies outside the plane.
Elementary row operations expose the same count algebraically. Apply and , interchange the last two rows, multiply the second row by , and subtract twice the second row from the first. The resulting reduced row echelon form isThere are two pivot columns, so the matrix rank is two. The corresponding original columns form a basis of the original column space. The pivot columns of itself span the different plane with third coordinate zero: row operations preserve column linear relations, but generally move the column space.[ref]
Row Reduction. Interactive Linear Algebra, §1.2.2, Echelon Forms; §1.2.3, definitions of pivot position and pivot column
Solving the homogeneous linear system gives and . Taking the free variable givesThe kernel is the input direction that trades one unit of each of the first two columns for one unit of the third. This trade leaves the output unchanged. The rank-nullity theorem expresses the general balance: for an matrix of matrix rank , the nullity is . The column space describes reachable outputs; the kernel describes invisible changes to inputs.[ref]
The Rank Theorem. Interactive Linear Algebra, §2.9, Rank Theorem: rank plus nullity equals the number of columns
For the attainable output , one solution is . Every solution lies in the affine solution space of a linear equationIndeed, and . Conversely, subtracting from any solution gives a vector in the kernel, so this describes every solution. For , the same row operations on the augmented matrix expose : the second requirement demands where twice the first requires .
Two pivot columns, one kernel direction, and the same row operations distinguishing attainable from impossible
. Details. In general, a linear system is solvable exactly when appending leaves the matrix rank unchanged:Appending a vector outside the column space adds an independent direction. When a solution exists, every solution is , because . Thus one count predicts both how many output directions are reachable and, through the rank-nullity theorem, how many independent input directions remain free.[ref]
Solution Sets. Interactive Linear Algebra, §2.4.2, Key Observation and its proof; §2.4.3, Solution Sets and Column Spans
Matrix similarity Created 2026-10-03 Updated 2026-10-14
Two square matrices over the same field are similar if for an invertible matrix . They can describe one linear operator using two different ordered bases, with the same basis used for input and output in each description. Fix the convention : is the old coordinate vector, the new coordinate vector, and the columns of are the new basis vectors in old coordinates. This is the convention of the change-of-basis matrix.[ref]
Linear Algebra Done Right by Sheldon Axler (4th edition). §3D, Theorem 3.84, printed p. 93: change-of-basis formula; the matrix there converts in the opposite direction to our
For a concrete linear operator on the physical plane, let double horizontal components and multiply vertical components by five. In the old standard basis , its matrix of a linear map is . Choose the new ordered basis with , . ThenThe second column of says . Its off-diagonal entry records how the chosen basis vectors describe the output; the physical linear operator still stretches along the old horizontal and vertical directions.
Take the physical vector . Its two coordinate vectors, and the two descriptions of , areReconstruction gives . The output coordinate vectors differ, but the endpoint in the physical plane is the same.
One linear operator and the same two physical vectors described in a standard basis and an oblique basis
. Both panels use the same physical plane and scale. The blue arrow is , and the orange arrow is . Dotted paths reconstruct them from their respective basis vectors; the right grid follows , . Details.This is why matrix similarity is useful: a convenient basis can simplify calculations without changing the linear operator. A diagonalizable matrix can be replaced by a diagonal matrix, making repeated application a calculation with powers of its eigenvalues. In the example, makes the two independent stretch factors visible, while expresses the same action in directions chosen for another purpose. Matrix similarity invariants separate properties of the linear operator from features of its address system.







