Lesson Explainer: Augmented Matrices | Nagwa Lesson Explainer: Augmented Matrices | Nagwa

Lesson Explainer: Augmented Matrices Mathematics

In this explainer, we will learn how to interpret augmented matrices and represent systems of linear equations as an augmented matrix.

One of the oldest general problems in mathematics is to be able to solve a system of linear equations in multiple variables. The simplest nontrivial example of this would be a system of two linear equations in two variables, such as the following: 𝑥+3𝑦=1,2𝑥𝑦=3.

In this case the 𝑥 and 𝑦 are the variables to be found, with the numbers multiplying these being referred to as the “coefficients.” In this case the coefficient of the 𝑥-term in the first equation is the number 1, and the coefficient of the 𝑦-term is 3. For the second equation, the coefficient of the 𝑥-term is 2 and the coefficient of the 𝑦-term is 1.

An example with two linear equations and two variables, such as the one above, is often referred to simply as “simultaneous equations,” or more generally a system of two equations, and students often learn to solve these types of problems in their early teens. The techniques used to solve these relatively simple systems are perfectly valid, although they become much messier when extending to systems of linear equations with a greater number of variables or equations. For example, the following system has three linear equations in three variables: 4𝑥+3𝑦+𝑧=8,𝑥2𝑦𝑧=1,𝑦+𝑧=3.

This system of linear equations would require many more steps to solve than the first example, in likelyhood leading to an increased chance of mistakes being made when completing the calculations. In order to help mitigate this possibility, as well as providing a much neater environment to solve systems of linear equations, a particular method that is normally used is called “row reduction” or “Gauss–Jordan elimination.” This method aims to remove all extraneous detail by first placing all coefficients from a system of linear equations within a matrix, with each entry of this matrix corresponding to exactly one coefficient.

Consider the system of linear equations as follows:

5𝑥+2𝑦=2,3𝑥3𝑦=6.(1)

We should ask ourselves whether or not this level of detail is needed. In other words, how can we remove any extra detail without losing any information about the above system? The answer is to first standardize the order in which the variables appear within the linear equations that are given. In this case, reading left to right, each equation helpfully begins with the 𝑥-term being shown first along with the coefficient, and then the 𝑦-term being displayed with this coefficient, both being on the left-hand side of the equals sign.

Suppose that we colored the the 𝑥-terms in pink, and the 𝑦-terms in blue. Then, the system of linear equations would be represented as 5𝑥+2𝑦=2,3𝑥3𝑦=6.

The alignment is such that the 𝑥-terms (and their coefficients) appear directly underneath each other, and the same is true of the 𝑦-terms. Given that this is the case, and providing that we respect this alignment, there is nothing to prevent us from writing the coefficients in the matrix 5233.

Given that the left column relates to the coefficients of the 𝑥-terms and that the right column relates to the coefficients of the 𝑦-terms, this matrix encodes the same information as the original system of linear equations in equation (1), only with less detail being required.

Suppose now that we wished to include all information about the system of equations given in equation (1). The terms on the right-hand side of the equal sign are also aligned, and we can represent this in the matrix 522336, where the vertical bar represents the equals signs. Thus the original system of linear equations in equation (1) has been encapsulated faithfully, but without the need for writing out the 𝑥- and 𝑦-terms.

For a system of linear equations such as the one above, this approach might appear excessive. However, this approach becomes more valuable when there is an increase either in the number of equations or the number of variables. So helpful is this approach that there is a special name is given to the two matrices that encode this information, as covered in the following definition.

Definition: The Coefficient and Augmented Matrices of a System of Linear Equations

Consider a general system of linear equations in the variables 𝑥,𝑥,𝑥 and the coefficients 𝑎: 𝑎𝑥+𝑎𝑥𝑎𝑥=𝑏,𝑎𝑥+𝑎𝑥𝑎𝑥=𝑏,𝑎𝑥+𝑎𝑥𝑎𝑥=𝑏.

Then, the “coefficient matrix” is 𝑎𝑎𝑎𝑎𝑎𝑎𝑎𝑎𝑎, and the “augmented matrix” is 𝑎𝑎𝑎𝑏𝑎𝑎𝑎𝑏𝑎𝑎𝑎𝑏.

This general definition should give a better demonstration of how all salient information from a system of linear equations can be contained within the augmented matrix, thereby removing the need to constantly write out all variables that are part of the system. This supports the completion of Gauss–Jordan elimination which is the technique most commonly used to find the solution.

Using the augmented matrix contains all information about a given system of linear equations. As a slight aside, there are equivalent descriptions of such systems that can be useful in their own right, especially when they allow the understanding of the problem in terms of the standard operations of linear algebra. For example, suppose we considered the system of linear equations as used in the definition above, and we labeled the “coefficient matrix” as 𝐴=𝑎𝑎𝑎𝑎𝑎𝑎𝑎𝑎𝑎..

Also, suppose that we defined the “variable matrix” and the “constant matrix,” respectively, as 𝑥=𝑥𝑥𝑥,𝑏=𝑏𝑏𝑏.

Using the properties of matrix multiplication, we can see that the system of linear equations can then be expressed by the simple algebraic equation 𝐴𝑥=𝑏. The overall goal would then be to find the variable matrix 𝑥, which would give the values of all 𝑥,𝑥,,𝑥 and hence solve the system of linear equations. Under the assumption that 𝐴 is a square matrix (which means that 𝑚=𝑛), it may be the case that an inverse matrix 𝐴 exists such that 𝐴𝐴=𝐴𝐴=𝐼, where 𝐼 is the 𝑛×𝑛 identity matrix. If this matrix does exist, then we can find 𝑥 by multiplying both sides of 𝐴𝑥=𝑏 on the left-hand side by the inverse 𝐴, hence giving 𝐴𝐴𝑥=𝐴𝑏. By recognizing that 𝐴𝐴=𝐼 and that 𝐼𝑥=𝑥, we find that this extra step of working returns the required solution 𝑥=𝐴𝑏. Thus, finding 𝑥 is reliant on finding the inverse of the coefficient matrix and then multiplying this by the constant matrix.

The above tangent demonstrates how it can be useful to contrive equivalent descriptions of systems of linear equations. The above method, however, is only useful when the system of linear equations has the same number of equations as variables, which means that the coefficient matrix is a square matrix and therefore has a well-defined notion of a multiplicative inverse (which is not the same as saying that this inverse always exists, which it does not necessarily). Often, expressing a system of linear equations in terms of the augmented matrix is the most useful starting point, as this contains all information about the coefficients and the constant terms and provides a natural arena for row operations to be completed as part of Gauss–Jordan elimination.

Note that if a system of linear equations features 𝑚 equations with 𝑛 variables, then the coefficient matrix will contain 𝑚 rows and 𝑛 columns, hence having “dimension” 𝑚×𝑛. The augmented matrix includes an extra column for the terms of each equation that appear on the right-hand side of the equals sign. Therefore the augmented matrix has 𝑚 rows and 𝑛+1 columns, and hence we would say that this has dimension 𝑚×(𝑛+1).

This above definition is a very general definition that we will illustrate shortly with several examples. It should be reiterated that the applicability of this technique is entirely reliant on the variables being written in the same order within each linear equation, before the coefficients are extracted and placed into the augmented matrix. In the first few examples that we give, the equations have already been arranged in this manner. However, in later examples, this step will not have been completed and therefore we will need to be diligent in ensuring that this is the case before either the coefficient or the augmented matrices are created.

Example 1: Finding the Augmented Matrix for a System of Two Linear Equations in Two Variables

Find the augmented matrix for the following system of equations: 𝑥+5𝑦=3,3𝑥+5𝑦=1

Answer

We begin by writing out the system of linear equations but with the 𝑥-terms highlighted in pink and the 𝑦-terms highlighted in blue:

𝑥+5𝑦=3,3𝑥+5𝑦=1.(2)

As we can see, there are two equations in two variables and these equations have already been ordered so that the 𝑥-terms appear first, followed by the 𝑦-terms, and then the equals sign of each equation. This means that the augmented matrix has two rows and three columns, and hence has the following form: .

To populate the entries of this matrix, we first examine the coefficients of the 𝑥-terms in equation (2). For the first equation, the coefficient of the 𝑥-term is 1, and in the second equation the coefficient of the 𝑥-term is 3. Therefore, the left column of the matrix is populated with these coefficients, giving 13.

The middle column is populated with the entries for the 𝑦-coefficients in the first and second equations of (2). These coefficients both have a value of 5, meaning that the augmented matrix must have the form 1535.

The final two entries are populated with the values that appear on the right-hand side of the equals signs in both equations of (2). These are 3 and 1, respectively, and hence the completed augmented matrix is 153351.

In the previous example, the system of linear equations was written in a convenient form, with the first term of each equation being the 𝑥-term, followed by the 𝑦-term, and then with an equals sign immediately following this. Given that this was already the case, writing out the corresponding augmented matrix was a fairly straightforward exercise that did not require the number of steps that we gave (except for the sake of demonstration). If we are presented with the augmented matrix and asked to write out a corresponding system of linear equations, then this is usually a trivial task, as the augmented matrix will already have achieved the strict formatting regime that we require.

Example 2: Finding the System of Linear Equations Represented by 2 × 3 Augmented Matrix

Find the system of equations from the following augmented matrix: 727546.

Answer

We begin by assuming that the variables of this system are 𝑥 and 𝑦, with 𝑥 corresponding to the first column of the augmented matrix and 𝑦 corresponding to the second column of the augmented matrix. With this being the case, the system of linear equations must take the form 𝑥+𝑦=,𝑥+𝑦=, where the entries will be populated using the augmented matrix. The first column of the augmented matrix features the coefficients 7 and 5, and these are the coefficients of the 𝑥-terms in the above system of linear equations. Therefore, this becomes 7𝑥+𝑦=,5𝑥+𝑦=.

The middle column of the augmented matrix contains the values 2 and 4, which become the coefficients of the 𝑦-terms for the first and second equation respectively. This gives the system of equations 7𝑥+2𝑦=,5𝑥+4𝑦=.

Finally, we use the right-most column of the augmented matrix to populate the remaining blank entries of the linear system. For the first and second row, these are, respectively, 7 and 6, and hence the complete set of linear equations is given by 7𝑥+2𝑦=7,5𝑥+4𝑦=6.

Since the example above did not state specifically that we should have used the variables 𝑥 and 𝑦, we just as easily could have used any other variables. For example, instead of 𝑥 and 𝑦, we could have used 𝑎 and 𝑏, which would have given 7𝑎+2𝑏=7,5𝑎+4𝑏=6.

In the two examples completed above, we have only worked with augmented matrices where all entries are nonzero. This most certainly does not always have to be the case, and it is perfectly possible that we will come across augmented matrices wherein at least one entry has a value of 0. This should not cause alarm, and the treatment of such problems is essentially identical to those where all coefficients are nonzero. In the following example, we demonstrate this, giving a few extra steps to fully illustrate how to properly work with such questions.

Example 3: Finding the Augmented Matrix for a System of Three Linear Equations in Three Variables

Find the augmented matrix for the following system of equations: 𝑥+𝑦𝑧=5,𝑦𝑧=2,𝑥+𝑦𝑧=2.

Answer

The above system has three linear equations in three variables. We will begin by coloring each of these variables uniquely, as follows:

𝑥+𝑦𝑧=5,𝑦𝑧=2,𝑥+𝑦𝑧=2.(3)

As we can see, the 𝑥-terms all appear as the first terms in each equation (with the second equation featuring an 𝑥-term with a coefficient of 0, which we have not included). The second terms of each equation are the 𝑦-terms, and the third terms are for the variable 𝑧.

The above system has three equations in three variables and therefore the augmented matrix has dimension 3×4, hence taking the form .

We will begin populating the entries of this matrix on a column-by-column basis, beginning with the left-most column. The first term of each equation in (3) is the 𝑥-term. For the first equation the coefficient is 1, for the second equation the coefficient is 0, and for the third equation the coefficient is 1. Thus, we can complete the first column of the augmented matrix as follows: 101.

Now we examine the 𝑦-terms in each equation of (3). For the first, second, and third equations, the coefficients of these terms are all equal to 1. Therefore, the second column of the augmented matrix can be completed, giving 110111.

To now complete the third column of this matrix, we examine the 𝑧-terms in equation (3). The coefficients of all of these terms are equal to 1, which allows us to speedily complete the third column of the augmented matrix as follows: 111011111.

For the final column, we examine the terms which appear to the right of the equals signs in the system of linear equations in (3). These are 5, 2, and 2 respectively. Therefore, the remaining blank entries of the augmented matrix are populated with these values, giving the final result of 111501121112.

The previous questions were posed with the variables already being written in the same order for all equations of the linear system. There is no particular reason for this to be the case, and it is possible/likely that at some point we will have to work with a system of linear equations that is not written in a particularly helpful way. If this is the case, then there is essentially only one additional step required as part of the method for finding the augmented matrix. This step is simple and is assisted by consistently coloring each variable, as with the previous questions.

Example 4: Finding the Augmented Matrix for a System of Three Linear Equations in Three Variables Where Rearrangement Is Required

Find the augmented matrix for the following system of equations: 8𝑥3𝑧7=0,6𝑦+3𝑥=0,7𝑧6𝑦+8=0.

Answer

By examining the system of linear equations given above, we can see that this is not written in the most helpful format. In order to minimize our chance of making a mistake when creating the augmented matrix, we first rewrite this system of linear equations by coloring the 𝑥-variables in pink, the 𝑦-variables in blue, and the 𝑧-variables in green. This gives 8𝑥3𝑧7=0,6𝑦+3𝑥=0,7𝑧6𝑦+8=0.

As we can see by looking at the colors, this system of equation is not aligned in a way that will assist us in creating the augmented matrix. Therefore, we choose to rewrite this system of linear equations in a format that is more helpful. This step will not alter any properties of the system of linear equations, which will be identical to that given above. With horizontal alignment imposed on the basis of color, the equivalent system is

8𝑥3𝑧=7,3𝑥+6𝑦=0,6𝑦+7𝑧=8.(4)

We can now complete the augmented matrix with recourse to this better-formatted expression. The system has three equations in three variables and hence the augmented matrix is of dimension 3×4.

We begin by populating the first column of this matrix. To do this, we examine the coefficients of the 𝑥-terms in (4). For the first, second, and third equations, these coefficients are 8, 3, and 0 respectively. Therefore the augmented matrix takes the form 830.

Continuing, we now look at the 𝑦-terms that appear in (4). Reading from top to bottom, these are 0, 6, and 6. The second column of the augmented matrix is completed with these entries, giving 803606.

To complete the third column, we look at the 𝑧-terms that appear in the system of linear equations in (4). For the first, second, and third equation these are 3, 0, and 7 respectively. The third column of the augmented matrix can now be completed, giving 803360067.

The final step can be completed by examining the terms that appear on the right-hand side of the equals signs in each equation of (4). These are 7, 0, and 8, respectively, which gives the final augmented matrix 803736000678.

In the final example of this explainer, we will be presented with an augmented matrix and asked to write this as a corresponding system of linear equations. We gave one example above of this type where there were two equations and two variables in the system of linear equations. In the following example, we will increase the complexity by working with a system of three linear equations in three variables.

Example 5: Finding the System of Linear Equations Represented by 3 × 4 Augmented Matrix

From the augmented matrix 209504954900,find the system of equations.

Answer

We begin by assuming that the variables corresponding to the first, second, and third columns should be labeled as 𝑥, 𝑦, and 𝑧 respectively. This is an arbitrary choice of variables and means that we should populate the missing entries in the following system: 𝑥+𝑦+𝑧=,𝑥+𝑦+𝑧=,𝑥+𝑦+𝑧=.

The coefficients of the 𝑥-terms in these three equations can be immediately written by examining the left-most column of the augmented matrix. In order, the entries of the first column are 2, 0, and 4. Therefore, the system of equations becomes 2𝑥+𝑦+𝑧=,𝑦+𝑧=,4𝑥+𝑦+𝑧=, where we have suppressed the 𝑥-term in the second equation due to the coefficient of this term being 0. We now look at the second column of the augmented matrix, the coefficients of which (in order) are 0, 4, and 9. This means that we now know the coefficients of the 𝑦-terms in our system of equations, giving 2𝑥+𝑧=,4𝑦+𝑧=,4𝑥9𝑦+𝑧=, where the 𝑦-term in the first equation has been omitted because the coefficient of this term is 0. Now, we will write the coefficients of the 𝑧-terms in each equation. The third column of the augmented matrix has entries 9, 9, and 0. By entering these into the above system of equations and bringing all terms together, we therefore have 2𝑥9𝑧=,4𝑦9𝑧=,4𝑥9𝑦=.

The final set of missing values can be obtained from the right-most column in the augmented matrix. In order, these entries are 5, 5, and 0. This gives the complete set of linear equations as follows: 2𝑥9𝑧=5,4𝑦9𝑧=5,4𝑥9𝑦=0.

We have seen in this explainer that it is usually a simple process to switch between a system of linear equations and the corresponding augmented matrix. The one caveat to this approach is that the system of linear equations should be written in a way so that the variables always appear in the same order for each individual equation of this system. If this is the case, then switching between the system of linear equations and the augmented matrix is essentially trivial. Once a system of linear equations is written into the correct augmented matrix, then we can undertake solving the system of equations by manipulating the augmented matrix using row operations as part of Gauss–Jordan elimination.

Key Points

  • Consider a general system of linear equations, as follows: 𝑎𝑥+𝑎𝑥𝑎𝑥=𝑏,𝑎𝑥+𝑎𝑥𝑎𝑥=𝑏,𝑎𝑥+𝑎𝑥𝑎𝑥=𝑏. Then, the “coefficient matrix” is 𝑎𝑎𝑎𝑎𝑎𝑎𝑎𝑎𝑎. and the “augmented matrix” is 𝑎𝑎𝑎𝑏𝑎𝑎𝑎𝑏𝑎𝑎𝑎𝑏.
  • For a system of linear equations with 𝑚 equations in 𝑛 variables, the coefficient matrix has 𝑚 rows and 𝑛 columns and therefore has dimension 𝑚×𝑛.
  • The augmented matrix of such a system has 𝑚 rows and 𝑛+1 columns, meaning that it has dimension 𝑚×(𝑛+1).
  • When writing a system of linear equations as an augmented matrix, it is essential that the variables appear in the same order for each equation before the augmented matrix is populated with the coefficients of this system.
  • Coloring variables can help to understand whether the system of linear equations is already written in a helpful form.
  • If a quantity appears that is neither a variable nor a coefficient of a variable, then it should appear on the right-hand side of the equals sign before the augmented matrix is created.
  • If a variable does not appear in one of the equations, then the coefficient of this variable is 0 and the augmented matrix should have a value of 0 in the corresponding entry.

Join Nagwa Classes

Attend live sessions on Nagwa Classes to boost your learning with guidance and advice from an expert teacher!

  • Interactive Sessions
  • Chat & Messaging
  • Realistic Exam Questions

Nagwa uses cookies to ensure you get the best experience on our website. Learn more about our Privacy Policy