System of Linear Equations
Last Updated :
04 Jul, 2025
A system of linear equations is a set of two or more linear equations involving the same variables. Each equation represents a straight line or a plane and the solution to the system is the set of values for the variables that satisfy all equations simultaneously.
Here is simple example of system of linear equations:
A system of linear equations consists of multiple linear equations involving the same set of variables. It can be represented as follows:
\begin{aligned}a_{11}x_1 + a_{12}x_2 + a_{13}x_3 + \dots + a_{1n}x_n &= b_1 \\a_{21}x_1 + a_{22}x_2 + a_{23}x_3 + \dots + a_{2n}x_n &= b_2 \\&\vdots \\a_{n1}x_1 + a_{n2}x_2 + a_{n3}x_3 + \dots + a_{nn}x_n &= b_n\end{aligned}
This represents a system of n linear equations in n variables x1, x2, x3,…., xn.
Where,
- a11, a12, …, a21, a22,…, an1, an2,…, ann are the coefficients of variables, x1, x2,…., xn.
- b1 + b2 + b3 + …. + bn are the constants on the right-hand side of each equation.
Matrix Equation
These equations can be written in matrix form as AX = B, where:
- A is the coefficient matrix,
- X is the column vector of variables \left[ x_1, x_2, x_3, \dots, x_n \right]^T
,
- B is the column vector of constants \left[ b_1 + b_2 + b_3 + \dots + b_n \right]^T
.
A =\begin{bmatrix} a_{11} & a_{12} & a_{13}& \cdots & a_{1n} \\ a_{21} & a_{22} & a_{23}& \cdots & a_{2n} \\ a_{31} & a_{32} & a_{33}&\cdots & a_{3n}\\\vdots & \vdots & \vdots & \vdots & \vdots \\ a_{m1} & a_{m2} & a_{m3} &\cdots & a_{mn} \end{bmatrix} , X = \begin{bmatrix} x_1 \\ x_2 \\ x_3 \\\vdots \\x_{n}\end{bmatrix} and\ B = \begin{bmatrix} b_1 \\ b_2 \\ b_3 \\\vdots \\b_{m}\end{bmatrix}
Solving the system involves finding the values of x1, x2, x3,…., xn that satisfy all equations simultaneously.
Types of system of linear equations
- Homogeneous System (AX=0)
- Non-Homogeneous System (AX=B)
The solution of these systems depends on the rank of the coefficient matrix A and the rank of the augmented matrix [A :B].
1) System of Homogeneous linear equations AX = 0
- X = 0 is always a solution: means all the unknowns has same value as zero. (This is also called trivial solution)
- If P(A) = number of unknowns : Unique solution ( P(A) = Rank of matrix A).
- If P(A) < number of unknowns : Infinite number of solutions.
Since a homogeneous system always has at least one solution (X = 0), it is always consistent.
Example of Homogeneous System in three variable:
x + y - z = 0
x + y + z = 0
x - y + 2z = 0
2) System of Non-Homogeneous linear equations AX = B
- If P[A:B] ≠P(A), No solution.
- If P[A:B] = P(A) = Number of unknown variables, unique solution.
- If P[A:B] = P(A) ≠Number of unknown, infinite number of solutions.
Example of Non - Homogeneous System in three variable
x + y - 2z = 6
x - 6y + z = 9
2x - y + 2z = 2
Geometric interpretation
For a system of two linear equations with two variables (x and y), solving the system involves finding the point of intersection of the two lines represented by the equations on the xy-plane. There are three possibilities:
1) The lines intersect at one point: This point is the unique solution to the system.
The lines intersect at one point2) The lines are parallel: They never intersect, so there is no solution. The system is called inconsistent.
The lines are parallel3) The lines are coincident: They are the same line, so every point on the line is a solution. There are infinitely many solutions.
The lines are coincidentThe solution set to a system of two linear equations in two variables can be a single point, the empty set (no solution) or an infinite set of points (a line).
How to Solve System of Linear Equations?
The subsequent techniques for solving the system of linear equations AX = B are viable solely under the condition that the coefficient matrix A is non-singular, meaning |A| ≠0 (determinant is not zero).
These methods include:
- Cramer's Rule: This is a mathematical theorem used to solve systems of linear equations using determinants, providing a straightforward formula for each variable in the system.
- Inverse Method: This involves finding the inverse of the coefficient matrix in a system of linear equations and multiplying it by the constant vector to solve for the variables.
- Gauss Elimination Method: This systematically eliminates variables from a system of linear equations using row operations to transform the system into an upper triangular matrix for easier back substitution.
- LU Decomposition Method of Factorization: This a matrix into the product of a lower triangular matrix (L) and an upper triangular matrix (U), simplifying the solution of linear systems by solving two simpler triangular systems.
Applications System of Linear Equations in Engineering
Systems of linear equations are widely used in various engineering disciplines:
- Structural Analysis: In civil and mechanical engineering, they are used to analyze forces in structures, determine displacements and design stable frameworks.
- Electrical Circuit Analysis: In electrical engineering, Kirchhoff's laws lead to systems of linear equations that are used to analyze currents and voltages in electrical circuits.
- Control Systems: In control engineering, linear equations model dynamic systems and are used to design controllers that ensure desired system behavior.
- Optimization Problems: In industrial engineering and operations research, systems of linear equations arise in linear programming problems used to optimize production, transportation and resource allocation.
Similar Reads
Engineering Mathematics Tutorials Engineering mathematics is a vital component of the engineering discipline, offering the analytical tools and techniques necessary for solving complex problems across various fields. Whether you're designing a bridge, optimizing a manufacturing process, or developing algorithms for computer systems,
3 min read
Linear Algebra
MatricesMatrices are key concepts in mathematics, widely used in solving equations and problems in fields like physics and computer science. A matrix is simply a grid of numbers, and a determinant is a value calculated from a square matrix.Example: \begin{bmatrix} 6 & 9 \\ 5 & -4 \\ \end{bmatrix}_{2
3 min read
Row Echelon FormRow Echelon Form (REF) of a matrix simplifies solving systems of linear equations, understanding linear transformations, and working with matrix equations. A matrix is in Row Echelon form if it has the following properties:Zero Rows at the Bottom: If there are any rows that are completely filled wit
4 min read
Eigenvalues and EigenvectorsEigenvalues and eigenvectors are fundamental concepts in linear algebra, used in various applications such as matrix diagonalization, stability analysis and data analysis (e.g., PCA). They are associated with a square matrix and provide insights into its properties.Eigen value and Eigen vectorTable
10 min read
System of Linear EquationsA system of linear equations is a set of two or more linear equations involving the same variables. Each equation represents a straight line or a plane and the solution to the system is the set of values for the variables that satisfy all equations simultaneously.Here is simple example of system of
5 min read
Matrix DiagonalizationMatrix diagonalization is the process of reducing a square matrix into its diagonal form using a similarity transformation. This process is useful because diagonal matrices are easier to work with, especially when raising them to integer powers.Not all matrices are diagonalizable. A matrix is diagon
8 min read
LU DecompositionLU decomposition or factorization of a matrix is the factorization of a given square matrix into two triangular matrices, one upper triangular matrix and one lower triangular matrix, such that the product of these two matrices gives the original matrix. It is a fundamental technique in linear algebr
6 min read
Finding Inverse of a Square Matrix using Cayley Hamilton Theorem in MATLABMatrix is the set of numbers arranged in rows & columns in order to form a Rectangular array. Here, those numbers are called the entries or elements of that matrix. A Rectangular array of (m*n) numbers in the form of 'm' horizontal lines (rows) & 'n' vertical lines (called columns), is calle
4 min read
Sequence & Series
Calculus
Limits, Continuity and DifferentiabilityLimits, Continuity, and Differentiation are fundamental concepts in calculus. They are essential for analyzing and understanding function behavior and are crucial for solving real-world problems in physics, engineering, and economics.Table of ContentLimitsKey Characteristics of LimitsExample of Limi
10 min read
Cauchy's Mean Value TheoremCauchy's Mean Value theorem provides a relation between the change of two functions over a fixed interval with their derivative. It is a special case of Lagrange Mean Value Theorem. Cauchy's Mean Value theorem is also called the Extended Mean Value Theorem or the Second Mean Value Theorem.According
7 min read
Taylor SeriesA Taylor series represents a function as an infinite sum of terms, calculated from the values of its derivatives at a single point.Taylor series is a powerful mathematical tool used to approximate complex functions with an infinite sum of terms derived from the function's derivatives at a single poi
8 min read
Inverse functions and composition of functionsInverse Functions - In mathematics a function, a, is said to be an inverse of another, b, if given the output of b a returns the input value given to b. Additionally, this must hold true for every element in the domain co-domain(range) of b. In other words, assuming x and y are constants, if b(x) =
3 min read
Definite Integral | Definition, Formula & How to CalculateA definite integral is an integral that calculates a fixed value for the area under a curve between two specified limits. The resulting value represents the sum of all infinitesimal quantities within these boundaries. i.e. if we integrate any function within a fixed interval it is called a Definite
8 min read
Application of Derivative - Maxima and MinimaDerivatives have many applications, like finding rate of change, approximation, maxima/minima and tangent. In this section, we focus on their use in finding maxima and minima.Note: If f(x) is a continuous function, then for every continuous function on a closed interval has a maximum and a minimum v
6 min read
Probability & Statistics
Mean, Variance and Standard DeviationMean, Variance and Standard Deviation are fundamental concepts in statistics and engineering mathematics, essential for analyzing and interpreting data. These measures provide insights into data's central tendency, dispersion, and spread, which are crucial for making informed decisions in various en
10 min read
Conditional ProbabilityConditional probability defines the probability of an event occurring based on a given condition or prior knowledge of another event. Conditional probability is the likelihood of an event occurring, given that another event has already occurred. In probability, this is denoted as A given B, expresse
12 min read
Bayes' TheoremBayes' Theorem is a mathematical formula used to determine the conditional probability of an event based on prior knowledge and new evidence. It adjusts probabilities when new information comes in and helps make better decisions in uncertain situations.Bayes' Theorem helps us update probabilities ba
13 min read
Probability Distribution - Function, Formula, TableA probability distribution is a mathematical function or rule that describes how the probabilities of different outcomes are assigned to the possible values of a random variable. It provides a way of modeling the likelihood of each outcome in a random experiment.While a frequency distribution shows
15+ min read
Covariance and CorrelationCovariance and correlation are the two key concepts in Statistics that help us analyze the relationship between two variables. Covariance measures how two variables change together, indicating whether they move in the same or opposite directions. Relationship between Independent and dependent variab
5 min read
Practice Questions