Solving Systems of Linear Equations

MAT1511 - Precalculus Mathematics B · Linear Equations and Systems

Solving Systems of Linear Equations

A system of linear equations consists of two or more linear equations that share the same variables. The solution to a system is the set of values for the variables that satisfy all equations in the system simultaneously. There are several methods for solving systems of linear equations, including substitution, elimination, and using matrices.

Types of Systems

There are three types of systems of linear equations:

  • Consistent System: A system that has at least one solution. This can be either a single unique solution or infinitely many solutions.
  • Inconsistent System: A system that has no solutions. This occurs when the equations represent parallel lines.
  • Dependent System: A system that has infinitely many solutions. This occurs when the equations represent the same line.

Method 1: Substitution

The substitution method involves solving one of the equations for one variable and then substituting that expression into the other equation. This method works well when one equation is easily solvable for one variable.

Example 1: Using Substitution

Consider the system of equations:

  1. 2x + 3y = 6
  2. x - y = 2

Step 1: Solve the second equation for x:

x = y + 2

Step 2: Substitute this expression for x into the first equation:

2(y + 2) + 3y = 6

Step 3: Simplify and solve for y:

2y + 4 + 3y = 6
5y + 4 = 6
5y = 2
y = 2/5

Step 4: Substitute y back into the expression for x:

x = (2/5) + 2
x = 2 + 2/5
x = 10/5 + 2/5
x = 12/5

The solution is x = 12/5 and y = 2/5.

Watch out: Ensure to substitute correctly and simplify each step carefully. Errors can occur if you miscalculate.

Method 2: Elimination

The elimination method involves adding or subtracting equations to eliminate one of the variables. This method is useful when the coefficients of one variable are the same or can be made the same.

Example 2: Using Elimination

Consider the system of equations:

  1. 3x + 4y = 10
  2. 2x - 4y = 6

Step 1: Add both equations together to eliminate y:

(3x + 4y) + (2x - 4y) = 10 + 6
5x = 16
x = 16/5

Step 2: Substitute x back into one of the original equations to find y. We will use the first equation:

3(16/5) + 4y = 10
48/5 + 4y = 10
4y = 10 - 48/5
4y = 50/5 - 48/5
4y = 2/5
y = 2/20
y = 1/10

The solution is x = 16/5 and y = 1/10.

Watch out: Make sure to align your equations properly when adding or subtracting. A small mistake can lead to an incorrect solution.

Method 3: Using Matrices

Another approach to solving systems of linear equations is to use matrices. A system of equations can be represented in matrix form as AX = B, where A is the coefficient matrix, X is the variable matrix, and B is the constant matrix.

Example 3: Using Matrices

Consider the system:

  1. x + 2y = 8
  2. 3x + 4y = 18

Step 1: Write the system in matrix form:

[[1, 2], [3, 4]] * [[x], [y]] = [[8], [18]]

Step 2: To solve for X, we need to find the inverse of matrix A. The inverse of a 2x2 matrix [[a, b], [c, d]] is given by (1/(ad - bc)) * [[d, -b], [-c, a]]. For our matrix:

A = [[1, 2], [3, 4]]
det(A) = (1)(4) - (2)(3) = 4 - 6 = -2
A^(-1) = (1/(-2)) * [[4, -2], [-3, 1]] = [[-2, 1], [1.5, -0.5]]

Step 3: Multiply the inverse of A by B:

X = A^(-1) * B
X = [[-2, 1], [1.5, -0.5]] * [[8], [18]]
X = [[-2 * 8 + 1 * 18], [1.5 * 8 - 0.5 * 18]]
X = [[-16 + 18], [12 - 9]]
X = [[2], [3]]

The solution is x = 2 and y = 3.

Watch out: Finding the inverse of a matrix can be tricky. Double-check your calculations for the determinant and the inverse.

Summary

  • A system of linear equations can be consistent, inconsistent, or dependent.
  • The substitution method involves solving one equation for a variable and substituting into another.
  • The elimination method involves adding or subtracting equations to eliminate a variable.
  • The matrix method uses the inverse of the coefficient matrix to find the solution.

Check your understanding

  1. What is the difference between a consistent and an inconsistent system of equations?
  2. How would you solve the following system using the elimination method: 4x + 5y = 20 and 2x + 3y = 10?
  3. Write the matrix form of the following system: x + 3y = 7 and 2x - y = 4.
  4. What steps are involved in using the substitution method to solve a system of equations?