In mathematics, a system of linear equations (or linear system) is a collection of two or more linear equations involving the same variables. For example, {3x+2y−z=12x−2y+4z=−2−x+12y−z=0 is a system of three equations in the three variables x, y, z. A solution to a linear system is an assignment of values to the variables such that all the equations are simultaneously satisfied. In the example above, a solution is given by the ordered triple (x,y,z)=(1,−2,−2), since it makes all three equations valid. Linear systems are a fundamental part of linear algebra, a subject used in most modern mathematics. Computational algorithms for finding the solutions are an important part of numerical linear algebra, and play a prominent role in engineering, physics, chemistry, computer science, and economics. A system of non-linear equations can often be approximated by a linear system (see linearization), a helpful technique when making a mathematical model or computer simulation of a relatively complex system. Very often, and in this article, the coefficients and solutions of the equations are constrained to be real or complex numbers, but the theory and algorithms apply to coefficients and solutions in any field. For other algebraic structures, other theories have been developed. For coefficients and solutions in an integral domain, such as the ring of integers, see Linear equation over a ring. For coefficients and solutions that are polynomials, see Gröbner basis. For finding the "best" integer solutions among many, see Integer linear programming. For an example of a more exotic structure to which linear algebra can be applied, see Tropical geometry.
Elementary examples
Trivial example The system of one equation in one unknown 2x=4 has the solution x=2. However, most interesting linear systems have at least two equations.
Simple nontrivial example The simplest kind of nontrivial linear system involves two equations and two variables: 2x+3y=64x+9y=15. One method for solving such a system is as follows. First, solve the top equation for x in terms of y: x=3−32y. Now substitute this expression for x into the bottom equation: 4(3−32y)+9y=15. This results in a single equation involving only the variable y. Solving gives y=1, and substituting this back into the equation for x yields x=32. This method generalizes to systems with additional variables (see "elimination of variables" below, or the article on elementary algebra).
General form A general system of m linear equations with n unknowns and coefficients can be written as {a11x1+a12x2+⋯+a1nxn=b1a21x1+a22x2+⋯+a2nxn=b2⋮am1x1+am2x2+⋯+amnxn=bm, where x1,x2,…,xn are the unknowns, a11,a12,…,amn are the coefficients of the system, and b1,b2,…,bm are the constant terms. Often the coefficients and unknowns are real or complex numbers, but integers and rational numbers are also seen, as are polynomials and elements of an abstract algebraic structure.
Vector equation One extremely helpful view is that each unknown is a weight for a column vector in a linear combination. x1[a11a21⋮am1]+x2[a12a22⋮am2]+⋯+xn[a1na2n⋮amn]=[b1b2⋮bm] This allows all the language and theory of vector spaces (or more generally, modules) to be brought to bear. For example, the collection of all possible linear combinations of the vectors on the left-hand side (LHS) is called their span, and the equations have a solution just when the right-hand vector is within that span. If every vector within that span has exactly one expression as a linear combination of the given left-hand vectors, then any solution is unique. In any event, the span has a basis of linearly independent vectors that do guarantee exactly one expression; and the number of vectors in that basis (its dimension) cannot be larger than m or n, but it can be smaller. This is important because if we have m independent vectors a solution is guaranteed regardless of the right-hand side (RHS), and otherwise not guaranteed.
Matrix equation The vector equation is equivalent to a matrix equation of the form A𝐱=𝐛 where A is an m×n matrix, x is a column vector with n entries, and b is a column vector with m entries. A=[a11a12⋯a1na21a22⋯a2n⋮⋮⋱⋮am1am2⋯amn],𝐱=[x1x2⋮xn],𝐛=[b1b2⋮bm]. The number of vectors in a basis for the span of the columns vectors in A is now expressed as the rank of the matrix.
Solution set
A solution of a linear system is an assignment of values to the variables x1,x2,…,xn such that each of the equations is satisfied. The set of all possible solutions is called the solution set. A linear system may behave in any one of three possible ways:
The system has infinitely many solutions. The system has a unique solution. The system has no solution.
Geometric interpretation For a system involving two variables (x and y), each linear equation determines a line on the xy-plane. Because a solution to a linear system must satisfy all of the equations, the solution set is the intersection of these lines, and is hence either a line, a single point, or the empty set. For three variables, each linear equation determines a plane in three-dimensional space, and the solution set is the intersection of these planes. Thus the solution set may be a plane, a line, a single point, or the empty set. For example, as three parallel planes do not have a common point, the solution set of their equations is empty; the solution set of the equations of three planes intersecting at a point is single point; if three planes pass through two points, their equations have at least two common solutions; in fact the solution set is infinite and consists in all the line passing through these points. For n variables, each linear equation determines a hyperplane in n-dimensional space. The solution set is the intersection of these hyperplanes, and is a flat, which may have any dimension lower than n.
General behavior
In general, the behavior of a linear system is determined by the relationship between the number of equations and the number of unknowns. Here, "in general" means that a different behavior may occur for specific values of the coefficients of the equations.
… excerpt ends here. Continue reading the full article.





