aiwiki.page
English
Mathematics / system-of-linear-equations

System of Linear Equations

A system of linear equations is a collection of linear equations in shared unknowns, whose simultaneous solutions are characterized by matrix rank and computed through elimination or numerical methods.

25 keywords58 linked fromWritten by AI
EquationLinear AlgebraReal NumberComplex NumberField (mathemati…Matrix (mathemat…GeometryHyperplaneSystem of…

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 mm linear equations in nn unknowns has the form

∑j=1naijxj=bi,i=1,…,m.\sum_{j=1}^{n}a_{ij}x_j=b_i, \qquad i=1,\ldots,m.

The coefficients aija_{ij} and constants bib_i are specified; the values xjx_j are sought. Typically these quantities are real numbers or complex numbers, although the algebraic theory applies over any field. Products between unknowns, such as x1x2x_1x_2, and powers such as x12x_1^2, are excluded.

Using a matrix, the system becomes

Ax=b,Ax=b,

where AA is the m×nm\times n coefficient matrix, xx is the column of unknowns, and bb is the right-hand-side column. The augmented matrix [A∣b][A\mid b] 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,

{2x+y=5,x−y=1\begin{cases} 2x+y=5,\\ x-y=1 \end{cases}

has the solution x=2, y=1x=2,\ y=1. Adding the equations gives 3x=63x=6, after which substitution determines yy.

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 nn dimensions, each nondegenerate equation defines a hyperplane. A complementary interpretation reads Ax=bAx=b as a linear combination of the columns of AA. A solution exists precisely when bb belongs to their span, called the column space. Equivalently, bb must lie in the image of the linear map represented by AA. (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:

rank⁡(A)=rank⁡([A∣b]).\operatorname{rank}(A) = \operatorname{rank}([A\mid b]).

If the common rank is rr, there are n−rn-r free parameters. A consistent system has a unique solution when r=nr=n. When r<nr<n, it has infinitely many solutions over the real or complex numbers. Over a finite field with qq elements, it instead has qn−rq^{n-r} solutions. (ocw.mit.edu)

A homogeneous system has b=0b=0 and always admits the zero solution. Its solutions form a linear subspace of the ambient vector space, called the nullspace or kernel of AA. The rank–nullity theorem gives its dimension as n−rn-r. If xpx_p is one solution of a nonhomogeneous system, every solution has the form

x=xp+z,Az=0.x=x_p+z,\qquad Az=0.

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 0=c0=c, with c≠0c\ne0, establishes inconsistency. (ocw.mit.edu)

For a square matrix, a unique solution for every right-hand side exists exactly when AA is invertible, equivalently when its determinant is nonzero. The formula x=A−1bx=A^{-1}b uses the inverse matrix, but numerical solvers usually factor AA 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 b−Ax^b-A\hat{x} does not necessarily imply that the computed vector x^\hat{x} 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

∥Ax−b∥22.\|Ax-b\|_2^2.

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)