A matrix is a rectangular arrangement of numbers in rows and columns. It is a compact way to store information that comes in a grid, such as the prices of several items in several shops, and it is also a powerful tool for solving systems of linear equations, which is where this course ends. This first lesson explains what a matrix is, how to describe its size, how to name its entries, and how to build a matrix from a rule.
What a matrix is
Suppose two shops in Vijayawada sell rice, dal and oil. The price per kg (in rupees) can be set out in a grid:
| Rice | Dal | Oil | |
|---|---|---|---|
| Shop 1 | 52 | 110 | 180 |
| Shop 2 | 60 | 104 | 170 |
If everyone agrees that the rows are shops and the columns are items, the labels can be dropped, leaving just the numbers in brackets:
Definition. A matrix is a rectangular array of numbers arranged in rows and columns and enclosed in brackets. The numbers are called the elements or entries of the matrix.
Matrices are usually named with capital letters: , , , and so on.
- A row is a horizontal line of entries. Rows are counted from the top.
- A column is a vertical line of entries. Columns are counted from the left.
The order of a matrix
A matrix with rows and columns is said to have order (read " by "). It has elements in all.
The price matrix above has rows and columns, so its order is , and it has elements.
The order always gives rows first, then columns. A matrix and a matrix are different shapes:
Example 1
A matrix has elements. What are its possible orders?
The order must have , with and positive integers. The factor pairs of give six orders:
Naming the elements
The element in row and column of a matrix is written . The first subscript is the row, the second is the column. So a matrix looks like
In short, we write .
Example 2
For , write the order and the elements , , and .
has rows and columns, so its order is .
- : row , column , which is .
- : row , column , which is .
- : row , column , which is .
- : row , column , which is .
Building a matrix from a rule
Sometimes a matrix is described by a formula for . To build it, work out each entry from its row number and column number .
Example 3
Construct the matrix with .
There are rows () and columns ().
Row 1: , , .
Row 2: , , .
Example 4
Construct the matrix with .
Row 1 (): and .
Row 2 (): and .
Row 3 (): and .
Reading a matrix in context
Example 5
Sita runs a stationery stall. Her stock at the start of the week is: pens, notebooks and geometry boxes in her first stall; pens, notebooks and geometry boxes in her second stall. Write this as a matrix with stalls as rows, and say what means.
The order is . The entry is in row (the second stall) and column (geometry boxes): the second stall has geometry boxes.
Practice
- Write the order of and the number of its elements.
- For , write , and .
- Write all the possible orders of a matrix with elements.
- Write all the possible orders of a matrix with elements.
- Construct the matrix with .
- Construct the matrix with .
- Construct the matrix with .
- Construct the matrix with .
- In Example 5, which entry gives the number of notebooks in the first stall, and what is it?
Answers
Show answers
- Order ; elements.
- , , .
- , , , .
- is prime, so only and .
- .
- .
- . For example, .
- .
- .