Skip to content

System of Linear Equations

Definition

A system of equations is an ordered collection of equations. A system of linear equations, or linear system, is a system whose equations can all be written in linear form.

The standard form of a linear system with mm equations and nn unknowns is

a11x1+a12x2+⋯+a1nxn=b1,a21x1+a22x2+⋯+a2nxn=b2,⋮am1x1+am2x2+⋯+amnxn=bm.\begin{aligned} a_{11}x_1+a_{12}x_2+\cdots+a_{1n}x_n&=b_1,\\ a_{21}x_1+a_{22}x_2+\cdots+a_{2n}x_n&=b_2,\\ &\vdots\\ a_{m1}x_1+a_{m2}x_2+\cdots+a_{mn}x_n&=b_m. \end{aligned}

The coefficients form the coefficient matrix A\boldsymbol{A}, the unknowns form the vector x\boldsymbol{x}, and the right-hand sides form the vector b\boldsymbol{b}, so the system can be written as Ax=b\boldsymbol{A}\boldsymbol{x}=\boldsymbol{b}.


Interpretation

A linear system packages several linear constraints into one problem: find all vectors x\boldsymbol{x} that satisfy every equation at once. Matrix notation separates the structural information A\boldsymbol{A} from the unknown vector x\boldsymbol{x} and the right-hand side b\boldsymbol{b}.

On a grid, the lines x1 + x2 = 3 and x1 - x2 = 1 crossing at the point (2, 1), the solution of the system.

The illustrated system is x1+x2=3x_1+x_2=3 and x1−x2=1x_1-x_2=1, or Ax=b\boldsymbol{A}\boldsymbol{x}=\boldsymbol{b} with A=(111−1)\boldsymbol{A}=\begin{pmatrix}1&1\\1&-1\end{pmatrix} and b=(31)\boldsymbol{b}=\begin{pmatrix}3\\1\end{pmatrix}. Each equation describes a line, and their intersection (2,1)(2,1) is the solution.

"Linear" means that each unknown appears only to the first power, multiplied by a constant: x1x2=1x_1x_2=1, x12+x2=3x_1^2+x_2=3 and sin⁡x1=0\sin x_1=0 are not linear, while x1=3−x2x_1=3-x_2 is, since it can be rewritten as x1+x2=3x_1+x_2=3. The matrix form can be read in two ways. Row by row, row ii of A\boldsymbol{A} with bib_i is one equation. Column by column, Ax=b\boldsymbol{A}\boldsymbol{x}=\boldsymbol{b} asks whether b\boldsymbol{b} is a linear combination x1a1+⋯+xnanx_1\boldsymbol{a}_1+\cdots+x_n\boldsymbol{a}_n of the columns of A\boldsymbol{A}.

In OR Modelling, a corner point of a two-variable linear program is found by turning two constraints into equations and solving them together, which is a 2×22\times2 linear system. A common slip is to expect infinitely many solutions whenever there are more unknowns than equations: x1+x2+x3=1x_1+x_2+x_3=1, x1+x2+x3=2x_1+x_2+x_3=2 has three unknowns and no solution at all.


Key Results

  • Over R\mathbb{R} or C\mathbb{C}, a linear system can have no solution, exactly one solution, or infinitely many solutions.
  • The system Ax=b\boldsymbol{A}\boldsymbol{x}=\boldsymbol{b} is solved by applying row operations to its augmented matrix.
  • The system is consistent if and only if the relevant ranks match: rank⁡(A)=rank⁡(A∣b)\operatorname{rank}(\boldsymbol{A})=\operatorname{rank}(\boldsymbol{A}\mid \boldsymbol{b}).

Examples

  • x+y=10,  z+3=5x+y=10,\;z+3=5 is a system of equations.
  • 3x+y−z=−4,  x+z=0,  3x−2y=−33x+y-z=-4,\;x+z=0,\;3x-2y=-3 is a linear system.

Prerequisites

Sources

Aliases: linear system, simultaneous linear equations Keywords: system of equations, linear equation, coefficient matrix, right-hand side vector, rhs vector Symbols: complex numbers, real numbers

Last updated: 27 October 2026 11:52