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.
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.
A linear system is inconsistent when it has no solution. In Gaussian elimination, a row with proves inconsistency. Equivalently the matrix rank of the augmented matrix is greater than the matrix rank of the coefficient matrix.
For a consistent linear system , choose one solution . By linearity, if and only if , so its solution set is the translate of the kernel. Over the real numbers, this gives exactly one solution when the kernel is zero and infinitely many when the kernel contains a nonzero vector: is a distinct solution for each real if lies in the kernel. An inconsistent linear system has an empty solution set. The dimension of a nonempty solution set, regarded as an affine space, is the nullity of .
For a linear system , the coefficient matrix contains the coefficients of the unknowns, with one row per equation and one column per unknown. The system becomes . The augmented matrix additionally includes the right-hand-side column; that column is not part of .
For matrices representing linear maps on finite-dimensional vector spaces, has a solution precisely when the image of a linear map represented by is contained in that represented by . Necessity follows by applying the equation to vectors. For sufficiency choose an -preimage of each column of and assemble those vectors as the columns of . All solutions are with , equivalently every column of lies in the kernel of a linear map represented by . When has at least one column, a solution is unique precisely when has trivial kernel.
The augmented matrix of a linear system appends the right-hand side as one extra column. Elementary row operations preserve its solution set. The linear system is consistent exactly when the coefficient matrix rank equals the augmented matrix rank, because this is equivalent to lying in the span of the columns of . A larger augmented matrix rank produces a zero coefficient row with a nonzero right-hand side during Gaussian elimination.
A linear system is homogeneous when its forcing is zero. Its solution set is the kernel of a linear map, a vector subspace. If has a particular solution , all its solutions are : subtracting the particular solution leaves a homogeneous linear system. The rank-nullity theorem gives the dimension of this freedom.
A linear equation is an equation in which the unknowns occur only to the first power and are combined linearly.
For a linear map and one solution , all solutions are . This follows because , and conversely adding any kernel element preserves the equation. If is a vector subspace representing a desired regularity class and , then every solution to this one inhomogeneous equation lies in exactly when . For distributional differential equations, take to be the distributions represented by smooth functions.
A solution of a linear system is a vector whose image under the coefficient matrix is . Its solution set can be empty or have one or many elements; an invertible matrix gives the unique solution .
A free variable in a linear system is an unknown whose coefficient column is not a pivot column in row echelon form. When the linear system is consistent, it can be assigned any value in the field; the pivot unknowns are then determined by those choices. This use of “free” differs from a free variable in mathematical logic.
Articles by others on the same topic
A system of linear equations is a collection of two or more linear equations that involve the same set of variables. The goal is to find the values of these variables that satisfy all the equations in the system simultaneously. Systems of linear equations can be classified based on their number of solutions: 1. **Consistent and Independent**: The system has exactly one solution. The lines represented by the equations intersect at a single point.
