A system of linear equations is a collection of equations involving the same unknowns, each appearing only in a first-degree term with a fixed coefficient. A solution assigns values to all unknowns so that every equation holds simultaneously. Such systems are fundamental objects of linear algebra, connecting algebraic calculation with the structure of matrices and vector spaces. They may have no solution, exactly one solution, or multiple solutions, depending on their coefficients and right-hand sides. (web.mit.edu)
Definition and matrix notation
A system of linear equations in unknowns has the form
The coefficients and constants are specified; the values are sought. Typically these quantities are real numbers or complex numbers, although the algebraic theory applies over any field. Products between unknowns, such as , and powers such as , are excluded.
Using a matrix, the system becomes
where is the coefficient matrix, is the column of unknowns, and is the right-hand-side column. The augmented matrix records both coefficients and constants. This notation separates the system’s structure from its particular right-hand side and permits systematic elimination. (ocw.mit.edu)
For example,
has the solution . Adding the equations gives , after which substitution determines .
Geometric interpretation
In real two-dimensional geometry, a linear equation with at least one nonzero coefficient describes a line. Solving two such equations means finding their common points: intersecting lines yield one solution, distinct parallel lines yield none, and coincident lines yield infinitely many. In three dimensions, a nondegenerate equation describes a plane; several planes may intersect at a point, along a line, or in a larger common set. (ocw.mit.edu)
In dimensions, each nondegenerate equation defines a hyperplane. A complementary interpretation reads as a linear combination of the columns of . A solution exists precisely when belongs to their span, called the column space. Equivalently, must lie in the image of the linear map represented by . (web.mit.edu)
Consistency, rank, and solution structure
A system is consistent if it has at least one solution, and inconsistent otherwise. Its consistency is characterized by matrix rank:
If the common rank is , there are free parameters. A consistent system has a unique solution when . When , it has infinitely many solutions over the real or complex numbers. Over a finite field with elements, it instead has solutions. (ocw.mit.edu)
A homogeneous system has and always admits the zero solution. Its solutions form a linear subspace of the ambient vector space, called the nullspace or kernel of . The rank–nullity theorem gives its dimension as . If is one solution of a nonhomogeneous system, every solution has the form
Thus a nonempty solution set is a translate of the nullspace, an affine space rather than necessarily a subspace. (web.mit.edu)
Systems with more equations than unknowns are overdetermined, while those with fewer are underdetermined. These labels alone do not establish consistency: redundant equations can make an overdetermined system consistent, while contradictory equations can make an underdetermined system inconsistent. (ocw.mit.edu)
Exact solution methods
Gaussian elimination transforms the augmented matrix using three solution-preserving operations: exchanging rows, multiplying a row by a nonzero scalar, and adding a multiple of one row to another. Echelon form exposes pivot variables and free variables; back substitution then recovers the solutions. Continuing to reduced row-echelon form makes their parameterization explicit. A row expressing , with , establishes inconsistency. (ocw.mit.edu)
For a square matrix, a unique solution for every right-hand side exists exactly when is invertible, equivalently when its determinant is nonzero. The formula uses the inverse matrix, but numerical solvers usually factor instead of explicitly forming its inverse. LU factorization, with row permutations when required, reduces the calculation to triangular systems and allows the factors to be reused for different right-hand sides. (ocw.mit.edu)
Numerical computation and approximation
Numerical linear algebra distinguishes mathematical solvability from computational accuracy. Floating-point arithmetic introduces rounding errors. An ill-conditioned system can amplify small perturbations in its data, so a small residual does not necessarily imply that the computed vector is close to the exact solution. Condition estimates and backward-error analysis quantify different aspects of this uncertainty. (netlib.org)
Large systems involving a sparse matrix often use iterative methods that repeatedly improve an approximation without storing dense factors. Their effectiveness depends on matrix structure and convergence properties. (netlib.org)
When no exact solution exists, a least-squares formulation minimizes
This is central to ordinary least squares. Full column rank guarantees a unique minimizer. Orthogonal factorizations and singular value decomposition provide computational approaches, including rank-deficient cases. For a consistent underdetermined system, an additional minimum-norm criterion selects one solution from the family of exact solutions. (netlib.org)