Numerical linear algebra Created 2026-09-24 Updated 2026-11-05
Numerical linear algebra develops algorithms for linear systems, least squares, eigenvalue problems and other matrix computations, with attention to roundoff error, cost and storage. A mathematically equivalent formula can behave very differently in floating-point arithmetic: solving through an LU decomposition avoids forming an explicit matrix inverse, while a QR decomposition gives an orthogonal route to least squares.
The central distinction is between accuracy of the computed answer and accuracy of the problem it solves. For , an approximate vector has linear-system residual . A small linear-system residual need not imply a small forward error when the condition number is large. For the exact example
the solution is , whereas has Euclidean norm residual but Euclidean norm error . Here the condition number in the spectral norm is . The lost component barely changes the equations because its coefficient is tiny.
Direct linear solvers such as Gaussian elimination factor a matrix; iterative methods such as conjugate gradient successively improve a vector. For a large sparse matrix, fill-in and matrix preconditioning can matter as much as arithmetic count. The task is to preserve the structure that makes a computation accurate and affordable.
One-dimensional Anderson chain Created 2026-10-18 Updated 2026-10-20
Consider a noninteracting electron in a finite tight-binding model with open ends:
The vectors form an orthonormal basis of site states. The hopping energy is ; it is not the time coordinate. Draw each independently from the continuous uniform distribution on and then hold it fixed. The disorder strength is dimensionless. Open ends mean no hopping bond connects sites and ; equivalently set . There are no electron interactions, phonons or wave absorption in this model.
The eigenvalue equation in the interior is
As a simple local calculation, if a state's peak is at , a neighbouring site with receives a small leading contribution . Several successive large mismatches multiply small factors. This explains why large disorder can restrict spreading, but is not a proof of Anderson localization: near-resonant denominators and alternative interference paths prevent treating this expansion as uniformly valid.
For the first original calculation, take , , and the fixed random seed . Diagonalizing the resulting real symmetric matrix with numpy.linalg.eigh and selecting the eigenvalue closest to zero gives , a probability peak at site , and . The selected eigenvector has total probability one. This is one chosen realization, not a disorder average or a measured specimen.
Figure 1.
One random potential and a concentrated energy eigenstate in a One-dimensional Anderson chain
. Original calculation for sites and . The top panel shows all site energies and the selected eigenvalue. The lower panels show the same probability on linear and logarithmic scales, compared with a clean central standing wave. No fitted localization length is claimed. Details.
The clean comparison needs care. With , the open chain has standing waves
For even , the identity and finite trigonometric sums give , hence . Thus the clean -site comparison has , although it extends across the chain. Extended does not mean uniform probability. For odd , the special central mode has zeros on alternating sites and instead ; the even-size assumption avoids that exception.
The second original calculation compares and over . For each size, draw independent site patterns using seed , with the size included in the random-seed construction. Scale each fixed pattern across disorder strengths. At every point, average over the four energy eigenstates closest to . The solid line is the median across these sample averages; shading spans their th–th percentiles. The selected states can change as varies: lines connect one sample's selections rather than tracking a single mode.
Figure 2.
Participation ratio varies across disorder realizations and finite chain sizes
. Original One-dimensional Anderson chain calculations. Faint lines show individual sample averages, solid lines their medians and bands their th–th percentiles. The left panel plots ; the right divides by site count . These finite samples illustrate concentration and variability, without a fitted critical disorder. Details.
At the two clean values are and . At , the computed median sample averages are approximately and . In the latter regime, doubling hardly changes the typical occupied site count, so falls. At weak disorder the larger chain permits more spatial extent. Neither a single curve nor the overlap of finite-size bands proves the infinite-system statement under mobility edge; a long localization length can hide confinement in either size.
Order-p matrices in GL2 over the prime field Created 2026-10-07 Updated 2026-10-14
For prime , every order- element of is conjugate to the displayed nonidentity unipotent matrix. Its cyclic subgroup has vector group orbits of sizes one or ; counting all vectors implies at least fixed vectors. Choose a nonzero fixed vector as first basis vector. The matrix becomes triangular with first diagonal entry one; its other diagonal entry satisfies and hence in the prime finite field. The off-diagonal entry is nonzero and can be rescaled to one. All matrices involved have invertible changes of basis.
Ordinary differential equation Created 2026-09-24 Updated 2026-10-20
An ordinary differential equation relates an unknown function of one independent variable to its ordinary derivatives. Its order is the highest derivative appearing. Thus is first order, while the harmonic oscillator equation is second order. A first-order equation in explicit form is
Here need not be time, and can be a vector, giving a system of coupled ordinary differential equations. A classical solution of a differential equation is a sufficiently differentiable function on an interval which satisfies the equation at every point. For the explicit first-order equation, if is continuous, this solution of a differential equation has a continuous derivative.
For Newton's law of cooling, the state is a single temperature; for a second-order differential equation, a first-order system also records its first derivative. This is why a starting position alone does not specify a harmonic oscillator trajectory: its starting velocity matters too.
The power of an ordinary differential equation is that one rule describes a whole family of histories. An initial value problem chooses one history when uniqueness holds. An autonomous differential equation has independent of ; its equilibrium points satisfy and give constant solutions of a differential equation. Equations with explicit time dependence can instead respond to a changing environment.
Origin (mathematics) Created 2026-10-18 Updated 2026-10-25
The point assigned all-zero coordinates in a chosen Cartesian coordinate system. Choosing an origin identifies position displacements with vectors; a bare affine space has no distinguished origin.
Orthogonal block design Created 2026-10-07 Updated 2026-11-05
An orthogonal block design has centered treatment-indicator vectors orthogonal to centered block-indicator vectors on the experimental units. With treatment replication , block size and total , this is equivalent to . It permits additive block adjustment without changing treatment estimates.
For a real matrix and a fixed vector , every vector in the image of a linear map defined by is orthogonal to exactly when . Indeed, . If this vanishes for every , choose to obtain . Equivalently each column of is orthogonal to . Requiring the statement only for nonzero changes nothing, since the zero input already has zero dot product. This is the orthogonal complement relation between the image of a linear map and the kernel of a linear map defined by its transpose.
Orthogonal projection Created 2026-09-24 Updated 2026-10-14
The orthogonal projection onto a closed subspace of a Hilbert space sends to its component in the orthogonal decomposition
The residual is orthogonal to every permitted direction. For any , the Pythagorean theorem gives
Thus uniquely minimizes the distance to . It is a linear map, is idempotent, and is nonexpansive: ; taking gives .
In , project onto the line spanned by . The inner product gives
The check confirms orthogonality, and . Projecting again changes nothing, since the result already lies on the line.
Figure 1.
Orthogonal projection gives the unique nearest point on a line and a perpendicular residual
. Details.
For a finite orthonormal basis of , the same operation is , using the convention linear in the first argument. Replacing coordinate vectors by functions gives exactly the same approximation principle. For in the real L2 space on and , the directions are orthogonal, with squared norms and . Their inner products with are and zero, so
Direct integration gives the squared error . For any competing affine polynomial, the orthogonal residual yields
Every deviation from , adds a nonnegative error. The best function need not pass through any selected data point: it minimizes an integrated error across the whole interval.
Figure 2.
Projecting x squared onto affine functions gives the constant one third and minimum integrated squared error 8/45
. Details.
Orthogonal projection matrix Created 2026-09-24 Updated 2026-10-14
A matrix represents a linear projection when applying it twice has the same effect as applying it once. For an orthogonal projection with the standard Hermitian inner product on , the additional condition is that the conjugate transpose equals the original matrix:
Thus is both idempotent and a Hermitian matrix. Over the real numbers this says . Its image of a linear map is the retained linear subspace, while its kernel of a linear map is the orthogonal complement: vectors in the image are unchanged, and vectors in the kernel become zero.
For a matrix with full column rank, projecting onto its column space gives
The invertibility of follows from linear independence of the columns. If those columns are an orthonormal set, and . These formulas and the conditions in the real case are developed in MIT 18.06SC, Projections onto Subspaces, pp. 1–3.
For the line spanned by ,
In particular, and . The eigenvalues are on the retained direction and on the removed direction. This exposes the meaning of an orthogonal projection as retaining selected components, rather than stretching them.
Symmetry refers to the specified inner product. In the real weighted setting, the formula becomes and satisfies and . For the preceding weighted line example,
It is not symmetric under the ordinary transpose, but it is an orthogonal projection for the weighted Euclidean inner product. The matrix criterion should therefore be used with the standard Hermitian inner product, not silently transferred to a different geometry.
Orthogonal projection of a Gaussian vector Created 2026-09-24 Updated 2026-11-05
Orthogonal projections of an isotropic Gaussian vector onto orthogonal subspaces are independent.
Orthogonal projection onto a finite-dimensional subspace Created 2026-09-24 Updated 2026-10-14
A finite-dimensional linear subspace of an inner product space has a unique closest vector to any given vector . This is its orthogonal projection . If is an orthogonal basis of , compute it one direction at a time:
The inner product convention here is linear in its first argument, including over the complex numbers. For an orthonormal basis, each denominator is one. When consists only of the zero vector, the empty sum gives . The finite-dimensional formula is described in Francis Narcowich, Inner Products and Norms: minimization problems.
Take and , using the dot product. With ,
The orthogonal projection residual has . To verify the best approximation directly, every candidate in the line is , and
The smallest squared Euclidean norm error is therefore , attained only at . The diagram connects the perpendicular residual to this one-variable quadratic polynomial.
Figure 1.
The perpendicular residual identifies the closest point on a line and the unique minimum of the squared error
. Details.
The general mechanism is the Pythagorean theorem in an inner-product space. For any , the vectors and are orthogonal, so
Moving away from inside adds a nonnegative squared norm, which is zero only when . This proves both optimality and uniqueness.
The useful feature is separation of preparation from evaluation. Construct an orthonormal basis once with the Gram-Schmidt process, then obtain each new best approximation using inner products instead of a fresh optimization problem. When is the column space of a matrix, this gives linear least squares; when is spanned by orthogonal polynomials, it gives a least-squares polynomial in an orthogonal-polynomial basis. The ambient inner product space need not be a Hilbert space for this finite-dimensional construction. In an infinite-dimensional target linear subspace, existence requires additional hypotheses, supplied by orthogonal decomposition by a closed subspace.
Orthogonal projection residual Created 2026-10-14 Updated 2026-10-31
An orthogonal projection residual is the difference between a vector and its orthogonal projection onto a linear subspace . It is orthogonal to every vector in , so for all . The Gram-Schmidt process uses such residuals to remove directions already represented by earlier basis vectors.
This is an optimality condition as well as a geometric description. No permitted change within can remove a further orthogonal component of . In the preceding dot product example, is perpendicular to the line spanned by .
The selected inner product matters. Keep and the same line, but use the weighted Euclidean inner product with . The projection coefficient and residual become
Now , although . The orthogonality is with respect to , so it need not look perpendicular in the ordinary drawing. The squared weighted error is
The weighted optimum reduces the first-coordinate error from to , at the cost of increasing the magnitude of the second-coordinate error from to . The weights express which errors are more costly.
Figure 1.
Changing the inner product changes the closest point: a circle and a weighted error ellipse touch the same permitted line at different points
. Details.
In linear least squares, residual orthogonality to the column space is expressed by the normal equations for linear least squares. With a weighted Euclidean inner product, the corresponding real-matrix equation is . This makes the choice of error measurement part of the mathematical model, rather than merely a plotting convention.
Orthogonal vectors Created 2026-09-24 Updated 2026-10-14
Two vectors are orthogonal when their inner product is zero.
For real Euclidean vectors, the inner product is the dot product, so and are orthogonal: . For nonzero Euclidean vectors, this means their angle is . The zero vector is orthogonal to every vector, although it has no direction or defined angle.[ref]
In an abstract inner product space, orthogonality always refers to its chosen inner product. For example, the weighted inner product makes and orthogonal, since . Their ordinary dot product is , so their arrows are not perpendicular in the usual Cartesian coordinate system. The algebraic definition also applies to functions, where arrows need not be available.
Orthonormal eigenbasis Created 2026-09-24 Updated 2026-10-14
An orthonormal eigenbasis of a linear operator is an orthonormal basis consisting of eigenvectors. Each vector can be reconstructed from its scalar components along those mutually perpendicular unit directions. With the convention that the inner product is linear in its first argument,
The finite-dimensional spectral theorem supplies such a basis for a self-adjoint operator. In its two-dimensional example, the coordinates of are along and along . The operator multiplies those coordinates by and , and reconstruction gives .
Repeated eigenvalues permit different orthonormal choices within one eigenspace, so the basis need not be unique. The spectral projection of a self-adjoint matrix onto that entire eigenspace is unique: it keeps the geometrically meaningful component without choosing individual axes inside it.
Orthonormal set Created 2026-09-25 Updated 2026-10-14
An orthonormal set consists of vectors that have norm one and are pairwise orthogonal. Its Gram matrix is the identity matrix.
Write vectors in a symplectic basis as and . Their coordinate vectors and the matrix of a bilinear form are
Here is the identity matrix, and denotes transpose. The ordering matters: interleaving the basis as instead gives a block diagonal matrix with blocks . Some conventions reverse every , giving instead. Always check the displayed pairing convention.[ref]
Over the real numbers, each summand is the signed area of a parallelogram in the coordinate plane. For and , the two signed areas are and , so although the vectors are linearly independent. The cancellation concerns the symplectic form; it does not assert that their dot product vanishes. Over a general field, the same determinant formula is algebraic, without a signed geometric interpretation.
Figure 1.
Paired coordinate planes and the pairing matrix of a four-dimensional symplectic basis
. The two projected parallelograms have signed areas minus one and plus one, which cancel. The matrix uses the e-then-f ordering; all self-pairings are zero. Details.
For a real skew-symmetric matrix , is symmetric and . On an eigenspace with eigenvalue , every unit vector has unit partner , orthogonal to , with and . Its plane and its orthogonal complement are invariant under . Repeating gives real orthogonal two-dimensional blocks and a zero block. Thus every nonzero eigenvalue of has even multiplicity, the zero multiplicity has the parity of , and the number of distinct eigenvalues is at most for even and for odd . Distinct positive block parameters attain the bound, with one zero direction added when is odd.
Distinct nonloops are parallel elements of a matroid when their pair is dependent. Declaring each nonloop parallel to itself makes parallelism an equivalence relation on the nonloops. Transitivity follows directly from augmentation: if and are dependent but independent, the independent singleton could not be augmented from the independent pair , contradicting the matroid independence axioms. In a linear matroid, nonzero proportional vectors give parallel elements of a matroid.
Parallelepiped Created 2026-10-14 Updated 2026-10-18
A parallelepiped is a polyhedron with six parallelogram faces in three opposite pairs. Three generating vectors determine its edges; the absolute value of their determinant gives its volume in orthonormal Cartesian coordinates.
Parametric statistical model Created 2026-10-14 Updated 2026-11-05
A statistical model indexed by a parameter vector of fixed finite dimension is parametric. Examples include a normal distribution with unknown mean and variance and a Poisson distribution with unknown mean. Its likelihood function is the joint sample density or mass function, regarded as a function of the parameter at the observed sample.