Grade 11 → Vectors and Matrices → Matrices ↓
Solving Systems of Linear Equations
Solving systems of linear equations is a fundamental topic in mathematics that involves finding the values of variables that satisfy multiple linear equations simultaneously. This topic is important not only in mathematics but also in various real-world applications such as engineering, physics, computer science, and economics. We often express these systems in matrix form, which provides a simple way to manipulate and solve them using a variety of methods.
Understanding linear equations
A linear equation is an equation that forms a straight line when graphed. It is usually in this form:
ax + by + cz + ... = d
Where a
, b
, c
, etc. are coefficients and d
is a constant. The variables x
, y
, z
, etc. are what we are solving for.
Systems of linear equations
A system of linear equations consists of two or more linear equations that have the same set of variables. For example:
2x + 3y = 8
x - y = 1
Our goal is to find the values of x
and y
that satisfy both equations.
Visual example
Matrix representation of linear equations
A more systematic way to solve systems of linear equations is to use matrices. In matrix form, a system of equations can be expressed as:
AX = B
Here, A
is a matrix with the coefficients of the variables, X
is a column matrix of variables, and B
is a column matrix of constants.
Example
Consider the system:
2x + 3y = 8
x - y = 1
The matrix representation is:
A = | 2 3 |
| 1 -1 |
X = | x |
| y |
B = | 8 |
| 1 |
In matrix form it is written as:
| 2 3 | | x | = | 8 |
| 1 -1 | * | y | | 1 |
Methods for solving systems of equations
There are several methods for solving systems of linear equations, including substitution, elimination, matrix methods such as the inverse of a matrix, and using determinants. Each method has its own applications, depending on the complexity and size of the system.
Method 1: Substitution
The substitution method involves solving an equation for one variable and then substituting that expression into another equation. Let's apply this to our previous system:
x - y = 1 (Equation 2)
x = y + 1 (Solving for x)
Substitute x = y + 1
in Equation 1:
2(y + 1) + 3y = 8
2y + 2 + 3y = 8
5y + 2 = 8
5y = 6
y = 6/5
Re-substitute y = 6/5
in x = y + 1
:
x = (6/5) + 1 = 11/5
Thus, the solution is (x, y) = (11/5, 6/5)
.
Method 2: Elimination
The elimination method involves adding or subtracting equations to eliminate one of the variables. For example:
2x + 3y = 8
x - y = 1
Multiply the second equation by 3:
3(x - y) = 3 * 1
3x - 3y = 3
Now, subtract the modified second equation from the first:
(2x + 3y) - (3x - 3y) = 8 - 3
-x + 6y = 5
x = 6y - 5
Substitute this into the second original equation:
(6y - 5) - y = 1
5y - 5 = 1
5y = 6
y = 6/5
Substituting y = 6/5
:
x = 6(6/5) - 5 = 11/5
Therefore, the solution is (x, y) = (11/5, 6/5)
.
Method 3: Matrix inverse
When the matrix A
is non-singular (its determinant is not zero), then its inverse exists and can be used to solve the system:
AX = B
X = A-1B
Find the inverse of A
:
A = | 2 3 |
| 1 -1 |
det(A) = (2 * -1) - (3 * 1) = -2 - 3 = -5
A-1 = (1/det(A)) * | -1 -3 |
| -1 2 |
= (-1/5) * | -1 -3 |
| -1 2 |
A-1 = | 1/5 3/5 |
| 1/5 -2/5 |
Multiply the inverse by B
:
X = A-1B = | 1/5 3/5 | | 8 |
| 1/5 -2/5 | | 1 | =
| (1/5)*8 + (3/5)*1 |
| (1/5)*8 - (2/5)*1 | =
| 11/5 |
| 6/5 |
This gives us the solution (x, y) = (11/5, 6/5)
.
Method 4: Determinant (Cramer's rule)
Cramer's rule provides a simple method for solving systems of linear equations using determinants, which applies only when the number of equations equals the number of unknowns and the system has a unique solution (non-zero determinant).
For a system AX = B
:
x = det(Ax) / det(A)
y = det(Ay) / det(A)
where Ax
and Ay
are matrices formed by replacing the corresponding columns in A
with B
.
For our example:
A = | 2 3 |
| 1 -1 |
det(A) = (2 * -1) - (3 * 1) = -5
Ax = | 8 3 |
| 1 -1 |
det(Ax) = (8 * -1) - (3 * 1) = -8 - 3 = -11
Ay = | 2 8 |
| 1 1 |
det(Ay) = (2 * 1) - (8 * 1) = 2 - 8 = -6
x = det(Ax)/det(A) = -11/-5 = 11/5
y = det(Ay)/det(A) = -6/-5 = 6/5
Thus, the solution is (x, y) = (11/5, 6/5)
.
Systems with more variables
The methods described become even more powerful when dealing with systems with more variables. While solving the equations graphically becomes impractical, matrix methods scale well, allowing us to handle large systems with many variables.
Consider a system with three variables:
3x + 4y - z = 1
2x - y + 3z = 2
x + 2y + z = -3
The format of the matrix is:
A = | 3 4 -1 |
| 2 -1 3 |
| 1 2 1 |
X = | x |
| y |
| z |
B = | 1 |
| 2 |
| -3 |
We can use Gaussian elimination, matrix inversion method, or Cramer's rule (if possible) to find the solution.
Gaussian elimination
Gaussian elimination is a process of solving systems in which we convert the matrix of the system into a form that can be easily solved using back-substitution.
Steps involved:
- Transform the matrix into upper triangular form.
- Use back-substitution to find the solution.
For a three-variable system, we will obtain zeros below the main diagonal by manipulating the rows (from the first non-zero entry in the row onwards).
Conclusion
Solving systems of linear equations using matrices is a vital skill in mathematics, providing robust methods for finding solutions to real-world problems. Whether using matrix operations such as substitution, elimination, or inverse computations and Cramer's rule, knowing how to leverage these techniques allows one to effectively tackle small- and large-scale systems.
Understanding these different methods not only enhances mathematical ability but also opens the door to their applications in a variety of scientific fields, making this subject an essential component of mathematical study and practice.