In this explainer, we will learn how to identify matrices and determine the order of a matrix and the position of each of its elements.

The concept of a “matrix” is one of the longest-running and well-developed ideas in all of mathematics. Having their origins as far back as 2 BC with Chinese mathematicians, matrices are a central object of study in mathematics and are used frequently in other disciplines such as physics and computer science. As well as the applications of matrices to other science disciplines, the properties of matrices are interesting for their own reasons and, as such, are also studied within mathematics in a more theoretical and abstract framework.

There are many ways to motivate the study of matrices, such as through systems of linear equations or through geometric transformations, but these approaches rely on first establishing a correct understanding of what matrices are. A matrix is a rectangular array which is separated into rows (which run horizontally) and columns (which run vertically). Each “entry” in a matrix is then described with respect to the row and column that it appears in, which is defined as follows.

### Definition: Matrix Entries

A “matrix” is a rectangular array of entries that are aligned in terms of rows and columns. We can write a matrix as where the quantity is the value which appears is in the th row and the th column.

It is easier to demonstrate this concept than it is to describe it, so we will begin with an example. We first define the matrix

Note that there are 2 rows and 3 columns in and there are 6 entries in total. We say that where the is the entries of this matrix as described in the definition above. Since there are 2 rows, we have . Similarly, there are 3 columns and hence . As an example, if we set and then we are looking in the first row and the second column. To locate this entry, initially we highlight all of the entries in the first row in orange, and then we highlight all of the entries in the second column in blue,

The entry in the first row and second column, which we denote as , is the only entry that has been highlighted twice, which we now show in green:

We would therefore say that .

If we were then to set and , we would be referring to the entry in the second row and the first column. Repeating the same process as above, we now highlight all entries in the second row in orange, and all of the entries in the first column in blue,

The only entry that has been highlighted twice is the entry , which is shown below in green:

Continuing this process gives the remaining entries , , , and .

Even mathematicians who have worked with matrices for a very long time still sometimes misremember in which order we write the “” and “” when referring to the rows and columns. We will practice this very shortly but a reasonably good starting point is to remember that we generally refer to the row before we refer to the column. Some people simply prefer to remember the phrase “row , column .”

### Example 1: Identifying a 1 × 2 Matrix given Its Elements Order

Which of the following is the matrix , where and ?

### Answer

We first think about the number of rows. Given that , we know that there is one row in matrix , which excludes options (B) and (C), since both have two rows. We then observe that in option (A) the matrix has an entry in the top left which is labeled “.” However, this entry appears in the first row, meaning that , and the first column, meaning that . Therefore, this element should actually be labeled “,” which implies that this is not the correct matrix. The only remaining option is (D), which is the matrix

We will check that this is the correct matrix. The entry in the top left is in the first row and the first column, meaning that and , which correctly corresponds to the given entry “,” The entry in the top right is in the first row and the second column, which means that and . Since this entry is labeled “,” we have confirmed that this is indeed the correct matrix.

As we read from left to right across the same row, the value of the component should stay the same and the value of the component should increase. Similarly, in reading from top to bottom down the same column, the component should increase and the component should stay the same. We can use this understanding to quickly check whether or not we have the correct form of a matrix.

### Example 2: Identifying a 2 × 3 Matrix given Its Elements Order

Which of the following is the matrix , where and ?

### Answer

Since and , we know that there are two rows and three columns in matrix . We can therefore eliminate options (B) and (D), since both have three rows and two columns. The matrix in option (A) has the form

For the first row, we have and, reading left-to-right across this row, we can see that the entries are , , and . The values of the components are all 1 and the values of the components increase from 1 to 3. Therefore, the first row is correct. For the second row, we observe that , which is correct, and that the entries are , , and . By the same reasoning, we know that this row is also correct and hence (A) is the right answer.

We have already found the correct answer, but it is helpful to understand why the matrix in (C) is incorrect. The form of the matrix is

Although there are two rows and three columns in this matrix, the references to the rows and columns have been switched. If we look only at the first row and read from left to right, we can see that the value of the component changes, rather than the values of components, which would suggest that we are changing rows and not columns. However, we were only looking at the first row, so this cannot be the case!

After a small amount of practice, it will become very natural to quickly read the entries of any given matrix, with key definitions and theorems requiring this idea to be understood intuitively. One of the best ways to practice this is with matrices that have numbers in their entries, rather than abstract symbols or unspecified variables.

### Example 3: Constructing a 2 × 2 Matrix given Its Elements

Given that is a matrix of order , with , , , and , find the matrix .

### Answer

From the information above, the matrix has two rows and two columns and therefore is of the following form:

Please note that the symbol indicates that this entry contains some information and we are not assuming that all of these entries have the same value.

The first piece of information that we are given is that . Since and , we are referring to the entry in the first row and the first column. Therefore, the matrix has the following structure:

We are told next that . Given that and , we are referring to an entry in the first row and the second column, giving

Our next requirement is that , which means that this value must appear in the second row and the first column. Therefore, we have

The final entry is , which appears in the second row and the second column. The completed matrix is therefore

When working with the applications of matrices, it will sometimes be the case that algebraic relationships exist between the entries. Very often these relationships will arise from physical or logistic constraints, which will subsequently ensure that the matrix in question has special properties that can be understood and made use of. Being able to understand relationships between the entries of a matrix is an essential part of gaining fluency with matrix calculations and being able to understand the deeper matrix algebra that will arise at the higher levels of study.

### Example 4: Constructing a Matrix given the Relation between Its Elements

Given that is a matrix of order , where , , , , , and , determine .

### Answer

The matrix has three rows and two columns and hence has the following form:

The easiest way to begin answering this question is by using the entries which have an explicit numerical value, rather than those which are specified in relation to other entries. These are the entries , , and , meaning that the matrix is as follows:

Next, we use the given relation . Since , we have , giving

Now we use the given relation . We already found that , giving and the matrix

The final given relation is . As , we have . The matrix is therefore

The entries of a matrix can also be specified very rigidly, by referring to a formula which is a function of the row and column. Potentially, these functions could be complicated, but to demonstrate the concept we will only use a very simple example.

### Example 5: Constructing a Matrix given a General Equation for Its Elements

Find the matrix , with an order of , whose elements are given by the formula .

### Answer

This matrix has 3 rows and 3 columns and therefore has the form

We begin by calculating all entries in the first row, for which . The elements in the first row are , , and and they are calculated using the given formula, .

We calculate the element in the first row and the first column:

Then, we calculate the element in the first row and the second column:

Now we work out the element in the first row and the third column: allowing us to populate the first row of the matrix:

Now we focus on the second row by setting and considering the elements , , and .

The entry in the second row and the first column is

The entry in the second row and the second column is

The entry in the second row and the third column is

Now the second row of the matrix can be completed:

For the third and final row, we set and take the entries , , and .

The entry in the third row and the first column is

The entry in the third row and the second column is

The entry in the third row and the third column is

The completed matrix is therefore

In this explainer, we have understood how to read the entries of a matrix and also how these entries may (or may not!) relate to each other. The most important understanding is in which order we refer to the rows and columns when specifying the matrix entries , which is essential to grasp in order to complete some of the proofs that appear in linear algebra.

### Key Points

The key points from this explainer are as follows:

- A matrix consists of rows and columns which contain entries. These entries may be numbers, variables, or functions.
- For a matrix , the index refers to the row number and the index refers to the column number.
- We usually specify the row number before specifying the column number. It may be helpful to remember the phrase “row , column .”