A variable is a placeholder for an unknown numerical value in an equation. Usually, a variable is represented by a letter in the English alphabet, like
A coefficient is a numerical or constant quantity that multiplies a variable. Normally, we forgo writing the multiplication symbol and place the coefficient right in front of a variable (i.e.
A system of equations is two or more equations that share the same variables. For example,
is a system of equations.
Systems of equations are useful because they allow us to solve for the values of multiple variables, that would be impossible with only one equation.
What are the values of
We see that the values
Thus, we have that there are an infinite number of possible values of
Here a few changes in notation that will be used in this lesson:
In many cases of multiplication between two numbers
In the case where we have an expression of the form
We have the following definitions for the types of systems of equations:
A system is called underdetermined if there are less equations than there are variables. These types of systems have infinitely many solutions.
A system is called overdetermined if there are more equations than there variables. These types of systems can have infinitely many solutions, one solution, or no solutions.
A system is called balanced if there are the same number of equations and variables. These types of systems can have infinitely many solutions, one solution, or no solutions.
Example 1 is the case of an underdetermined system of equations, since there are
Our initial strategy for solving systems of equations will be substitution, which follows these steps:
Isolate one of the variables in one equation.
Take the expression for the variable from step
Repeat steps
Use the result from step
Determine the values of
We see that our first step is already done in the second equation with
Thus, we have
Use the steps above to determine a unique solution to the system of equations:
Following step 1, we see that we can rewrite
We can now substitute the values
Thus, the unique solution to the system is
Our strategy above will only truly work if the system of equations has a unique solution. If the system is underdetermined, step
Observe the two systems of equations below:
System
System
Determine if each system is underdetermined, overdetermined, or balanced. Explain.
Is there a unique solution to (1)? If so, state the solution. If not, how many solutions are there? Show your work.
Is there a unique solution to (2)? If so, state the solution. If not, how many solutions are there? Show your work.
For system (1), there are 2 variables and 3 equations. Thus, since there are more equations that there are variables, the system is overdetermined.
For system (2), there are 3 variables and 3 equations. Thus, since there are the same number of equations and variables, the system is balanced.
From part (a), the system (1) is overdetermined, so there are either infinitely many solutions, one solution, or no solutions. To determine which of these is true for this system, we follow the four steps above.
We can rewrite the first equation to get
Thus, we have the solution
From part (a), the system (2) is balanced, so there are either infinitely many solutions, one solution, or no solutions. To determine which of these is true for this system, we follow the four steps above.
We can rewrite the third equation to get
Once again, we can rewrite this equation as
We can now substitute
Finally, we substitute both
Thus, we have the unique solution for the system to be
Additionally, sometimes systems of equations are not explicitly stated, and instead have to be created based on information given in the question. This is very common in questions that use systems of equations in real-life situations. The following example will show you how to work through these kinds of problems.
Suppose a jar contains marbles of the colours: blue, green, yellow, and red. We are given the following information about the number of marbles:
The sum of the number of blue marbles and the number of red marbles is 38.
The sum of the number of green marbles and the number of red marbles is 44.
The sum of the number of yellow marbles and the number of red marbles is 52.
There are 100 marbles in total.
How many marbles are there of each colour?
We start by defining a variable to represent the number of marbles for each colour. We have
(1)
(2)
(3)
(4)
We see that the first three equations can all be rewritten in the following ways:
(1)
(2)
(3)
We can then substitute all three of these equations into the last equation to get:
Finally, we substitute in the value
(1)
(2)
(3)
Thus, there are 21 blue marbles, 27 green marbles, 35 yellow marbles, and 17 red marbles in the jar.
A matrix, or matrices (plural), is a rectangular array of numbers, symbols, or expressions, arranged in rows and columns. Matrices have many applications that are very useful in advanced mathematics, but we will focus on their applications for systems of linear equations. Below is an example of a matrix with 2 rows and 3 columns:
The elementary row operations, or EROs, are the three operations that can be performed on any one matrix.
Row Swap: switching the positions of two rows in the matrix (i.e.
Scalar Multiplication: multiplying the elements in a row by a non-zero constant (i.e.
Row Sum: Adding the multiple of the elements of one row to the elements of another row (i.e.
Performing any of these operations on a matrix does not change the matrix; it remains equivalent to the original matrix.
The reduced row echelon form, or RREF, of a matrix is the simplest form of a matrix, similar to a fraction reduced to lowest terms. A matrix is only considered to be in RREF if all of the following are true:
The first non-zero element in each row is 1 (called a leading 1).
Each leading 1 is in a column to the right of the leading 1 in the previous row.
Any rows with all 0 elements, are at the bottom of the matrix.
If a column has a leading 1, then all other elements in that column are 0.
Some examples of matrices in RREF are:
and some examples of matrices not in RREF are:
For each of the four matrices above that are not in RREF, determine which of the four conditions of a matrix in RREF are not true.
For the first matrix, the fourth condition is not true because there is a 3 in the same column as the leading 1 in the second row.
For the second matrix, the third condition is not true because there is a row with all 0 elements above a row with a non-zero element.
For the third matrix, the first condition is not true because the first element in the second row is 2, not a leading 1.
For the fourth matrix, the second condition is not true because the leading in the second row is in a column to the left of the leading 1 in the first row.
What is the RREF of the matrix
Our strategy is to first establish a leading 1 in Row 1
Thus, we have that
Determine the RREF of
The RREF of the first matrix is determined by the following:
The RREF of the second matrix is given by:
Thus,
Another method of solving systems of equations is by using matrices. This can be done by rewriting the system of equations as a special kind of matrix called an augmented matrix. For example, the system of equations:
can be written as
Here, the line between the second and third columns represents the ‘=’ in the equations. Each column on the left side of the line represents a variable, and the column on the right side of the line represents a constant value. Each row represents an equation. The elements of the matrix are coefficients of each variable in each equation. For example, the top left element of the matrix is the coefficient of
In general, for a system of equations:
⋮
where
The variables are written above to indicate which column corresponds to each.
If the system of equations is underdetermined, the left side of the augmented matrix will have more columns than rows. If the system of equations is overdetermined, the left side of the augmented matrix will have more rows than columns. If the system of equations is balanced, the left side of the matrix will have the same number of rows and columns.
Once we have our system of equations written as an augmented matrix, all we need to do to solve the system is to transform the matrix into its RREF using the same steps as before. The only difference is that the last column does not need a leading 1.
Once the augmented matrix is in RREF, we can determine the number of solutions.
If there are any rows with all 0 elements (except for the last column), then there are no solutions.
If any of the rows with leading 1s has a non-zero element (except for the last column), then there are infinitely many solutions.
If all the elements in a row with a leading 1 are 0 (except for the last column), and every row without a leading 1 has all 0 elements (including last column), then there is a unique solution, and the value of each variable is the element in the last column that is in the same row as its corresponding leading 1.
Solve the problem from Example 3 using matrices.
Once again, we define variables to represent the number of marbles for each colour:
(1)
(2)
(3)
(4)
Now, we use the general form above to create the following augmented matrix:
The first column corresponds to the variable
Now we transform the augmented matrix to RREF using the same strategy as before.
Thus, we have