Last modified: October 27, 2023

This article is written in: 🇺🇸

Linear Systems of Equations

A linear system of equations is a collection of one or more linear equations involving the same set of variables. Such systems arise in diverse areas such as engineering, economics, physics, and computer science. The overarching goal is to find values of the variables that simultaneously satisfy all equations.

When working with linear systems, representing the equations in matrix form proves to be highly efficient. This matrix-based representation underpins a variety of numerical methods—such as Gaussian elimination, LU decomposition, and iterative techniques—used for both small and large-scale problems.

Mathematical Formulation

A general linear system with n variables x1,x2,…,xn can be expressed as:

{A11x1+A12x2+⋯+A1nxn=b1,A21x1+A22x2+⋯+A2nxn=b2,⋮An1x1+An2x2+⋯+Annxn=bn.

We can rewrite this collection of equations succinctly as:

Ax=b,

where

A=[A11A12…A1nA21A22…A2n⋮⋮⋱⋮An1An2…Ann],x=[x1x2⋮xn],b=[b1b2⋮bn].

In this form:

I. A (an n×n matrix) contains the coefficients of the variables.

II. x (an n×1 column vector) represents the unknowns of the system.

III. b (an n×1 column vector) contains the constant terms from the right-hand side of each equation.

Expressing the system in matrix form allows us to apply well-studied algebraic procedures and computational routines to solve for x.

Criteria for a Unique Solution

A system Ax=b of n linear equations in n unknowns has a unique solution if and only if any one (and thus all) of the following equivalent conditions holds:

I. Non-zero determinant: det(A)≠0.

A non-zero determinant indicates that the matrix A is invertible.

II. Invertibility of A: There exists an inverse matrix A−1 such that

x=A−1b.

III. Linear independence of columns: The columns of A are linearly independent vectors in Rn. In practical terms, no column can be written as a linear combination of the other columns.

IV. Linear independence of rows: Similarly, the rows of A are also linearly independent. No row can be expressed as a linear combination of the other rows.

If any of these criteria fail (e.g., det(A)=0), the system does not have a unique solution: it may either have no solution (inconsistent system) or infinitely many solutions (underdetermined system).

Example

Consider the following system of three linear equations in three unknowns x,y,z:

{3x+2y−z=1,2x−2y+4z=−2,−x+0.5y−z=0.

We can represent it in matrix form Ax=b as:

A=[32−12−24−10.5−1],x=[xyz],b=[1−20].

To solve this system, one may use:

Each approach exploits the structure of linear systems to systematically isolate the solution for x.

Advantages

Limitations

Table of Contents

    Linear Systems of Equations
    1. Mathematical Formulation
    2. Criteria for a Unique Solution
    3. Example
    4. Advantages
    5. Limitations