Numbers Arranged in Rows and Columns
Matrices entered mathematics as a way of arranging numbers, and today they are used in many branches of the subject. Their simplest use is also one of the most important. They set data out in a rectangle, so that it can be read quickly and used to make decisions. A school grade sheet shows this well.
Here is the grade sheet of one student. For each subject it gives the credit hour, the total grade point (GP) that can be earned, the GP this student obtained, and the highest GP obtained by anyone in the class.
| Subject | Credit hour | Total GP | Obtained GP | Highest GP of the class |
| Nepali | 5 | 4.0 | 3.5 | 3.8 |
| Mathematics | 5 | 4.0 | 4.0 | 4.0 |
| English | 5 | 4.0 | 3.8 | 3.9 |
| Science | 5 | 4.0 | 3.9 | 4.0 |
| Social Studies | 5 | 4.0 | 3.7 | 3.8 |
| HPE | 5 | 4.0 | 3.8 | 3.9 |
| Optional Mathematics | 5 | 4.0 | 3.9 | 4.0 |
Each subject has its own row. Nepali is in the first row and Optional Mathematics is in the last. Each kind of information has its own column. If we set the subject names aside, the numbers fill seven rows and four columns. Numbers set out in a rectangle of rows and columns like this are called a matrix.
Once data sits in rows and columns, a question about the data becomes a question about a position. Three questions show how this works:
- (a) Which row gives the information for Social Studies? Count down the subjects and you reach the fifth row: 5, 4.0, 3.7, 3.8.
- (b) Which column gives the obtained GP? Counting only the columns of numbers, it is the third column.
- (c) What is the highest GP in Science? Go to the Science row, then move across to the column for the highest GP of the class. The number there is 4.0.
Reading a Grade Sheet by Row and Column
A row runs across the page, from left to right. A column runs down the page, from top to bottom. To use any table of numbers you need three skills: go to a given row, go to a given column, and find the number where the two meet. The worked example below uses the grade sheet above to practise all three.
Worked example. (a) How many rows does the grade sheet have, and what do the numbers in the fifth row represent? (b) How many columns does it have, and what do the numbers in the third column represent? (c) What does the number where the fifth row meets the third column represent?
Step 1: Counting the rows. There is one row for each subject and there are seven subjects, so the number of rows is:
\[ \text{rows} = 7 \]
Step 2: Reading the fifth row. Counting down gives Nepali, Mathematics, English, Science and then Social Studies. So the fifth row belongs to Social Studies, and its numbers are:
\[ 5 \quad 4.0 \quad 3.7 \quad 3.8 \]
These are the credit hour, the total GP, the obtained GP and the highest GP of the class, all for Social Studies.
Step 3: Counting the columns of numbers. There is one column for each kind of information: credit hour, total GP, obtained GP and highest GP. So the number of columns is:
\[ \text{columns} = 4 \]
Step 4: Reading the third column. The third column holds the GP the student obtained in each subject. From top to bottom it reads:
\[ 3.5,\ 4.0,\ 3.8,\ 3.9,\ 3.7,\ 3.8,\ 3.9 \]
Step 5: Finding where the fifth row meets the third column. The fifth row is Social Studies and the third column is the obtained GP, so the number where they cross is:
\[ 3.7 \]
So 3.7 is the GP the student obtained in Social Studies. One row and one column together point to exactly one number.
Writing the Data as a Matrix
In mathematics we leave out the subject names and the column headings and keep only the numbers, each in the same position as before. The whole rectangle is then closed inside a pair of square brackets or a pair of round brackets, and it is given a name, which is a capital letter. Here the grade sheet becomes the matrix M, written with square brackets:
\[ M = \begin{bmatrix} 5 & 4.0 & 3.5 & 3.8 \\ 5 & 4.0 & 4.0 & 4.0 \\ 5 & 4.0 & 3.8 & 3.9 \\ 5 & 4.0 & 3.9 & 4.0 \\ 5 & 4.0 & 3.7 & 3.8 \\ 5 & 4.0 & 3.8 & 3.9 \\ 5 & 4.0 & 3.9 & 4.0 \end{bmatrix} \]
The same matrix written with round brackets is:
\[ M = \begin{pmatrix} 5 & 4.0 & 3.5 & 3.8 \\ 5 & 4.0 & 4.0 & 4.0 \\ 5 & 4.0 & 3.8 & 3.9 \\ 5 & 4.0 & 3.9 & 4.0 \\ 5 & 4.0 & 3.7 & 3.8 \\ 5 & 4.0 & 3.8 & 3.9 \\ 5 & 4.0 & 3.9 & 4.0 \end{pmatrix} \]
The two kinds of bracket mean exactly the same thing. Choose one and use it the same way throughout your answer.
Matrix: A rectangular arrangement of numbers in rows and columns, enclosed by a pair of square or round brackets, is called a matrix. The plural of matrix is matrices.
Elements (entries): The numbers that make up a matrix are called its elements or entries.
Naming a Matrix and Its Elements
Matrices are named with capital letters such as A, B, C and so on. When the elements are not particular numbers, they are written with small letters such as a, b, c. Here are two matrices, one with letters for elements and one with numbers:
\[ A = \begin{pmatrix} a & b & c \\ p & q & r \end{pmatrix} \]
\[ B = \begin{pmatrix} 1 & 2 & 3 \\ 0 & -1 & 2 \\ -3 & 2 & 4 \end{pmatrix} \]
Count the rows and columns of each. Matrix A has two rows, a b c across the top and p q r across the bottom. It has three columns: a above p, b above q, and c above r. Matrix B has three rows and three columns. Its first row is 1, 2, 3 and its first column is 1, 0, -3. A negative number such as -1 counts as one element, exactly like any other number.
A row goes across, like people sitting side by side on a bench. A column goes down, like the pillars holding up a building.
The Order of a Matrix
Matrix A above has 2 rows and 3 columns. We say that A has order 2 × 3, read as "two by three". Matrix B has 3 rows and 3 columns, so its order is 3 × 3, read as "three by three". The grade sheet matrix M has 7 rows and 4 columns, so its order is 7 × 4.
Order of a matrix: The number of rows followed by the number of columns in a matrix is called its order. If a matrix A has m rows and n columns, it is a matrix of order m × n and is written as A with m × n below it.
\[ A_{m \times n} \]
So the two matrices above can be written \( A_{2 \times 3} \) and \( B_{3 \times 3} \), and the grade sheet matrix can be written \( M_{7 \times 4} \). In the same way, if a matrix A has i rows and j columns, then its order is i × j and it is written \( A_{i \times j} \).
The order 2 × 3 does not mean 2 × 3 = 6, and the order 3 × 3 does not mean 9. The order is a pair of numbers that tells the shape of the matrix, so always write both numbers. The order of those two numbers matters too. A 2 × 3 matrix has two rows and three columns, while a 3 × 2 matrix has three rows and two columns. They are different shapes.
Multiplying the two numbers does tell you something else: how many elements the matrix holds. A matrix of order 2 × 3 has 2 rows of 3 elements each, so it has 6 elements. The grade sheet matrix of order 7 × 4 has 28 elements. The count of elements is a separate fact from the order, and the order is still written as 2 × 3 or 7 × 4.
The General Element a_ij
To talk about an element by its position, we use a small letter with two small numbers written below it, called subscripts. The first subscript is the row number and the second is the column number. So \( a_{23} \) means the element of matrix A in the second row and third column. Here is a matrix with 3 rows and 4 columns in which every element is named this way:
\[ A = \begin{pmatrix} a_{11} & a_{12} & a_{13} & a_{14} \\ a_{21} & a_{22} & a_{23} & a_{24} \\ a_{31} & a_{32} & a_{33} & a_{34} \end{pmatrix} \]
Read along any row and the first subscript stays the same, because every element in that row has the same row number. Read down any column and the second subscript stays the same. The whole matrix can be written briefly as \( A = (a_{ij}) \) where i = 3 and j = 4. This means the rows are numbered up to 3 and the columns up to 4, so the order is 3 × 4.
General element a_ij: The element of matrix A that lies in the i-th row and the j-th column is written \( a_{ij} \). Here i is the row number and j is the column number. The row number is always written first.
Compare \( a_{23} \) with \( a_{32} \). The first lies in the second row and third column. The second lies in the third row and second column. They use the same two digits, but they name two different places in the matrix, so they are two different elements and can have different values.
Never swap the subscripts. Row first, column second, every time. Reading \( a_{32} \) as "third column, second row" sends you to the wrong element, and the answer will be marked wrong even if your counting was perfect.
Finding Elements by Row and Column
Worked example. The four matrices below are P, Q, R and S. (i) Find the number of rows and columns in each, and hence its order. (ii) Write the element in the first row and second column of P. (iii) Write the element in the second row and third column of R. (iv) Write the element in the third row and first column of Q.
\[ P = \begin{pmatrix} 1 & 2 & 3 \end{pmatrix} \]
\[ Q = \begin{pmatrix} 8 \\ 9 \\ 7 \end{pmatrix} \]
\[ R = \begin{pmatrix} 1 & 2 & 3 \\ 7 & 8 & 9 \\ 3 & 4 & 2 \end{pmatrix} \]
\[ S = \begin{pmatrix} -2 & 3 \\ 1 & -4 \\ 0 & 5 \end{pmatrix} \]
Step 1: Finding the order of P. P has one row and three columns, so its order is:
\[ 1 \times 3 \]
Step 2: Finding the order of Q. Q has its numbers stacked downwards, so it has three rows and one column. Its order is:
\[ 3 \times 1 \]
Step 3: Finding the order of R. R has three rows and three columns, so its order is:
\[ 3 \times 3 \]
Step 4: Finding the order of S. S has three rows and two columns, so its order is:
\[ 3 \times 2 \]
Step 5: Finding the element of P in the first row and second column. P has only one row, so every element is in the first row. Counting across, the second element is 2, so:
\[ \text{1st row, 2nd column of } P = 2 \]
Step 6: Finding the element of R in the second row and third column. The second row of R is 7, 8, 9. The third column of R is 3, 9, 2. The only number in both is where they cross:
\[ \text{2nd row, 3rd column of } R = 9 \]
Step 7: Finding the element of Q in the third row and first column. Q has only one column, so every element is in the first column. Counting down, the third element is 7, so:
\[ \text{3rd row, 1st column of } Q = 7 \]
Counting Elements and Reading Subscripts
Worked example. For the matrix A below, (a) how many elements does A have, and (b) what is the order of A?
\[ A = \begin{pmatrix} 7 & 9 & 12 \\ 2 & 4 & 9 \\ 10 & 11 & 12 \end{pmatrix} \]
Step 1: Counting the elements. There are 3 rows and each row holds 3 numbers, so the number of elements is:
\[ 3 \times 3 = 9 \]
The value 12 appears twice and so does 9, but each one sits in its own position, so each is counted as a separate element. A has 9 elements.
Step 2: Writing the order. A has 3 rows and 3 columns, so its order is:
\[ 3 \times 3 \]
Worked example. For the matrix P below, write down the elements represented by \( a_{11} \), \( a_{12} \), \( a_{22} \) and \( a_{23} \).
\[ P = \begin{pmatrix} 8 & 12 & 16 \\ 1 & 3 & 5 \end{pmatrix} \]
Step 1: Reading \( a_{11} \), the element in the first row and first column. It is the top left number:
\[ a_{11} = 8 \]
Step 2: Reading \( a_{12} \), the element in the first row and second column. Moving one place right along the top row:
\[ a_{12} = 12 \]
Step 3: Reading \( a_{22} \), the element in the second row and second column. Going down to the bottom row and across to the middle:
\[ a_{22} = 3 \]
Step 4: Reading \( a_{23} \), the element in the second row and third column. Staying in the bottom row and moving to its last place:
\[ a_{23} = 5 \]
Matrix Words at a Glance
| Word | What it means | Example |
| Matrix | Numbers in rows and columns inside a pair of brackets | B above, with 3 rows and 3 columns |
| Row | A line of elements going across | 7, 8, 9 is the second row of R |
| Column | A line of elements going down | 3, 9, 2 is the third column of R |
| Element or entry | One number of the matrix | 9 is an element of R |
| Order | Number of rows followed by number of columns | S has order 3 × 2 |
| a_ij | The element in row i and column j | In P above, a_23 = 5 |
The full lesson is waiting for you
The notes are free to read in full. A free account opens the rest of the practice, and tracks your progress and confidence score for every subject. Presentations and videos need approval from Learn Yeti.