System of linear equations Created 2026-10-03 Updated 2026-10-18
A system of linear equations imposes several linear equations on the same unknowns. In the compact form , the matrix contains their coefficients, the vector contains the unknowns, and the vector contains the required outputs. Over the real numbers, the following examples exhibit the three possible outcomes: one solution, infinitely many solutions, or no solution.
For and , adding the two linear equations gives , hence and . Each linear equation describes a line in the plane; the two lines meet only at . Substitution checks both requirements: and . The two measurements together determine both unknowns.
Keeping only leaves a whole line of solutions:
For instance, gives . The direction belongs to the kernel of the linear map : its two contributions cancel. Moving in that direction changes the unknowns without changing their measured sum. The solution line is an affine space, translated away from the origin.
For and , the second linear equation instead demands . The parallel lines never meet. In the augmented matrix, subtracting twice the first row from the second is an elementary row operation that exposes the contradiction:
The last row says . A zero row of coefficients is harmless only when its appended entry is also zero.
Figure 1.
Three linear systems: a unique intersection, a solution line, and incompatible parallel lines
. Details.
The column viewpoint unifies these pictures. If are the columns of , then : a linear combination of those columns. A linear system is consistent precisely when lies in the column space, the image of a linear map represented by . Once one solution is known, every solution is with , since . Conversely, subtracting any two solutions gives an element of the kernel. Thus the kernel measures freedom, while the image of a linear map decides existence. A consistent linear system has a unique solution exactly when its kernel is .[ref]
Counting linear equations alone does not tell us how much information is present. If the second requirement were , it would repeat , so the two linear equations would still leave the same solution line. The matrix rank counts independent requirements. For a consistent linear system with unknowns and matrix rank , the rank-nullity theorem gives as the dimension of the kernel. This is the number of independent directions in which a solution can move. In the single-measurement example, one measured combination leaves one direction of freedom; in the sum-and-difference example, neither unknown can change without changing an output.
Tensor product Created 2026-09-24 Updated 2026-10-14
A tensor product turns a bilinear map into a linear map. For vector spaces over the same field , its elements are finite sums of pure tensors , subject to bilinearity:
The scalar belongs to ; writing makes this choice explicit. These rules preserve separate linearity while allowing arbitrary linear combinations of products.[ref]
For a concrete example, take , with basis vectors in the first copy and in the second. The four tensor-product basis elements are
The pure tensor made from and expands to
Each basis vector in one factor can interact with each basis vector in the other. This is why dimensions multiply; the tensor-product coefficient matrix displays these four interactions as a two-by-two grid.
The tensor product is different from the Cartesian product . With componentwise vector addition and scalar multiplication, the latter contains pairs and has dimension . The map is bilinear, generally neither linear on that Cartesian product nor injective nor surjective. In our example, , and ; the separability of a tensor explains why some outputs cannot be reached at all. Both spaces happen to have dimension four when , but this coincidence does not identify their structures.
Tensor-product basis Created 2026-10-05 Updated 2026-10-14
If and are bases of finite-dimensional vector spaces over , then the products form a basis of . There is one independent coordinate for every pair of indices.[ref]
For a proof outline, bilinearity expands each pure tensor as
so these products form a spanning set. For linear independence, take the coordinate functionals from the two dual bases. The bilinear map induces a linear functional on the tensor product, satisfying . Applying it to a proposed zero linear combination selects just , forcing every coefficient to vanish. Thus dimensions multiply, rather than add. This finite-dimensional count includes a zero factor, whose tensor product has dimension zero.
Measure the commuting stabilizer generators and in that order. Use error syndrome bit for eigenvalue and bit for eigenvalue . For the Pauli X gate on physical qubit , every row holds for arbitrary normalized . This ordered parity-check convention follows [ref]:
ErrorState before recovery eigenvaluesError syndromeRecovery
Each pair of computational basis words within a row has the same two parities. Consequently the projective measurement reveals the row without distinguishing its two amplitudes. For example, becomes under . Both checks give with probability one, and applying restores both coefficients exactly, including the relative phase .
One implementation uses two quantum ancillas initialized to . Two controlled-NOT gates from data qubits 1 and 2 to the first quantum ancilla write their parity; two more from data qubits 2 and 3 to the second quantum ancilla write the other parity. Measuring only the quantum ancillas in the computational basis gives . Measuring the individual data qubits instead would reveal the encoded computational basis value and destroy the unknown quantum superposition. The existing coherent syndrome extraction for the three-qubit repetition code uses the alternative ordered checks , so its bit labels differ from this table.
Figure 1.
Parity checks identify a bit flip without reading the logical amplitudes
. Details.
The recovery also handles coherent errors. Put . Their images of the code are mutually orthogonal, giving , the Knill--Laflamme condition for this family. For any linear combination , its component in sector is . Measuring that error syndrome has probability on the normalized erroneous state, and recovery returns . More generally one recovery quantum channel corrects every noise quantum channel whose Kraus operators belong to this span. The assumption concerns the whole jointly correctable family; it does not extend to the span of arbitrary single-site Pauli errors. [ref].
A fully computed coherent example is the unitary operator . At it gives
The error syndromes and occur with probabilities and , independently of . Doing nothing for and applying for restores the same logical qubit in both branches; the scalar in the second branch is an irrelevant global phase. This is an example of linearity of coherent quantum error correction, rather than an assumption that the original error was a classical random bit flip.
Topological vector space Created 2026-09-24 Updated 2026-10-14
A topological vector space is a vector space over or , equipped with a topology such that vector addition and scalar multiplication are jointly continuous:
The domains carry the product topology, and the scalar field carries its usual topology. Joint continuity permits both inputs to vary at once. Here the definition does not impose the Hausdorff condition; we state it separately when needed. [ref].
Every normed vector space is a topological vector space: the triangle inequality gives , while
controls scalar multiplication near any . More generally, a seminorm topology supplies many measurements of smallness, rather than one norm. Translation by any vector is a homeomorphism, so a neighbourhood basis at zero determines all neighbourhoods by translation.
The compatibility matters: on a nonzero real vector space, the discrete topology makes vector addition continuous, but not scalar multiplication. For , the sequence of scalars tends to zero, whereas the sequence never enters the open set . Thus choosing a topology arbitrarily need not respect the linear algebra.
This framework lets functional analysis choose the appropriate notion of limit of a sequence. Norm topology measures one global error, weak topology tests linear functionals, and the Fréchet space of smooth functions controls every order of derivative. In each case the operations forming linear combinations are continuous, making approximation compatible with the underlying equations.
Stipulate an original Gaussian mixture distribution with mixture weights , , component means , , and component variances both equal to one. These are chosen statistical parameters, with no observed sample or fitting. If is the standard normal distribution probability density function, then
In the figure, the two colored curves are weighted probability density functions, with areas and . Adding their heights at every gives the black curve. Neither colored curve stops at a dividing line.
Figure 1.
Stipulated two-Gaussian mixture: weighted component densities and their sum
. Original analytic curves for component means and , component variances one, and mixture weights and . No observed points, histogram, or fitted parameters are used. Details.
The law of total expectation and law of total variance give the total mean and variance:
All of the extra variance comes from variation between component means. Equivalently, the second moment is , so the variance is .
A mixture distribution is different from a deterministic linear combination of random variables. If independent and are drawn and , then has a normal distribution with the same mean but variance , rather than . Every draw of uses both random variables. A draw from the mixture distribution instead uses , where the mixture allocation indicators are independent of and select exactly one of them. The expression for adds densities, not simultaneous random outcomes.
For coprime integers , the Frobenius number is . Every larger integer is a nonnegative integer linear combination of .
Uniqueness of linear combination coefficients Created 2026-10-14 Updated 2026-10-25
A family is linearly independent if and only if every vector in its linear span has unique coefficients as a linear combination of that family. For a short proof, subtract two representations to get ; linear independence forces each difference to vanish. Conversely, uniqueness applied to the zero vector forces every linear relation to use only zero coefficients. This explains the practical role of linear independence: a coordinate vector relative to an ordered basis is unambiguous.
If , expand its power . By the pigeonhole principle, each monomial contains some . Collecting terms expresses as a linear combination of these powers. This lets one use a common denominator exponent in localization arguments.
Two differentiable functions can be linearly independent on a connected interval while their Wronskian vanishes everywhere. For example, let and . Both have a continuous first derivative, and their values and first derivatives vanish at zero. On either side of zero one of the functions is identically zero, so everywhere. Evaluating a constant linear combination at and forces .
The obstruction is that the two halves supply independent information without simultaneous nonzero value-and-derivative data at any point. For solutions of a common regular second-order linear differential equation, the uniqueness theorem for ordinary differential equations removes this possibility; Abel's identity gives the zero-or-nowhere-zero alternative for their Wronskian.
Variance Created 2026-09-24 Updated 2026-10-14
The variance measures the mean squared distance of a random variable from its expected value. For a real square-integrable random variable ,
The square prevents positive and negative deviations from cancelling. It also gives the variance squared units: if measures a length in metres, its variance has units of square metres. Its nonnegative square root is the standard deviation, which has the same units as .
For example, let take , and with equal probabilities. Its expected value is zero, but its variance is , and its standard deviation is . The constant random variable zero has the same expected value and zero variance: a mean alone does not describe the spread. The variance is zero exactly when almost surely.
The variance is useful because squared deviations interact neatly with linear combinations. The covariance supplies the cross terms when combining different random variables, and a covariance matrix organizes those terms for many variables. The characterization of variance as the minimum mean squared error of a constant also explains why the expected value is the best constant prediction under squared error.
Vector space Created 2026-09-24 Updated 2026-10-14
A vector space over a field is a set equipped with vector addition and scalar multiplication satisfying the vector space axioms. Its vectors can represent directed displacements, lists of measurements, polynomials, or entire functions. The common structure is that adding two elements and multiplying an element by a scalar remain meaningful operations inside the same space.
For example, uses coordinatewise addition and scaling. With
we have . Moving twice along and once along reaches the same vector as five horizontal and four vertical steps. The two descriptions refer to different bases of the same space. A basis makes such descriptions unique; a spanning set makes them possible.
Figure 1.
The same vector has coordinates 5,4 in the Cartesian basis and 2,1 in an oblique basis
. Details.
The space of real polynomials of degree at most two has basis : the polynomial is the linear combination with coordinates . The zero vector here is the zero polynomial, and addition combines coefficients. A derivative is a linear map on this space; its matrix records how it acts on the three basis vectors. The same coordinate machinery therefore handles both geometric motion and operations on functions.
The choice of field matters. The complex numbers form a one-dimensional vector space over with basis , but a two-dimensional vector space over with basis . The question "how many independent directions?" has an answer only after the allowed scalars are specified. Likewise, polynomials of degree exactly two do not form a vector space: subtraction can remove the leading term, and the zero polynomial is absent.
The usefulness of the abstraction is that a linear map is determined by its values on a basis. Once those images are known, linear combinations give its action on every vector. The rank-nullity theorem relates the number of attainable outputs to the number of invisible input directions, while change of basis lets us choose coordinates suited to the problem. Eigenvectors, for example, choose directions on which repeated application of a linear operator becomes scalar multiplication.
A historical source is Hermann Grassmann's Die lineale Ausdehnungslehre (1844). Its full title advertises applications to other branches of mathematics, statics, mechanics, magnetism and crystallography; the original edition is digitized by ETH-Bibliothek. This gives an early setting for treating geometric quantities algebraically across different applications, rather than attributing the modern axiom list to that title alone.[ref]
Vector space axioms Created 2026-10-14 Updated 2026-10-20
Addition makes an Abelian group: for all , and , there is a zero vector , and every has an additive inverse . Scalar multiplication satisfies, for ,
Both operations take values in . These requirements make manipulating linear combinations independent of how sums are grouped or expanded.
Every vector space over a field has a basis, assuming the axiom of choice. More generally, any linearly independent subset extends to a basis. This is an algebraic Hamel basis: each representation uses a finite linear combination, even when the basis is infinite.[ref]
Use the poset of linearly independent subsets containing :
It is a set, being a subset of the power set of , and is nonempty because .
A short proof outline supplies both essential steps:
Taking proves existence, including , whose basis is the empty set. The chain in a partial order need not be indexed by the natural numbers: only the finitely many members needed for a particular linear relation are compared. An arbitrary union of linearly independent sets can fail: and for a nonzero vector over the real numbers are each linearly independent, but their union is linearly dependent. The nesting of a chain in a partial order is what prevents this failure.
Wronskian Created 2026-09-24 Updated 2026-10-18
For two differentiable functions on an interval , their Wronskian is the function
The order matters: exchanging and reverses the sign. For sufficiently differentiable functions, the Wronskian is the determinant .[ref]
The Wronskian measures whether the vectors and supply independent value-and-derivative data at that point. For real-valued functions, its absolute value is the area of the parallelogram they span. If a constant linear combination is zero throughout , then too. A nonzero Wronskian at even one point makes this pair of linear equations invertible and forces . Thus a nonzero Wronskian somewhere always proves linear independence of the functions on .
For an explicit example, the exponential functions
solve the same homogeneous linear differential equation on the whole real line: substitution gives and , respectively. Their Wronskian is
For the initial value problem , , the linear combination requires and . Hence , , and . The nonzero Wronskian makes the two initial conditions independently adjustable.
Figure 1.
Independent exponential functions supply independent initial data, with Wronskian equal to the oriented parallelogram area
. Details.
The stronger converse requires a common equation. Suppose solve with continuous functions on one interval . Then the functions are linearly independent if and only if their Wronskian is nonzero at one point, equivalently at every point. If , choose constants , not both zero, making satisfy . The superposition principle makes a solution of a differential equation for the same equation, and the uniqueness theorem for ordinary differential equations forces to be identically zero. This proves linear dependence.[ref]
For arbitrary differentiable functions, an identically zero Wronskian need not imply linear dependence. Consider, on ,
Both functions have three continuous derivatives. On each side of zero, is a constant multiple of , so ; at zero their values and first derivatives are all zero, so the Wronskian is zero there too. Nevertheless evaluated at gives , while evaluation at gives . Hence : these functions are linearly independent on the whole interval. There is no single constant multiplier valid on both sides of the common zero.
Figure 2.
An identically zero Wronskian can coexist with linear independence when the common regular equation hypothesis is absent
. Details.
These functions cannot both solve any equation with continuous functions throughout : even alone would contradict uniqueness because but is not identically zero. They do solve the singular equation , whose leading coefficient vanishes at zero. Dividing by gives only away from zero; Abel's identity cannot be applied across that point. The example pinpoints why checking the equation and its interval is essential before using a zero Wronskian to infer linear dependence.