Practice
Lesson goal
- understand what a matrix is;
- identify rows and columns;
- determine the size of a matrix;
- identify individual matrix entries;
- understand the notation ;
- determine whether two matrices are equal.
Numbers in Rows and Columns
Sometimes we need to organize many numbers at once.
Instead of writing them as a long list, we can arrange them into rows and columns. For example,
This rectangular arrangement of numbers is called a matrix.
What Is a Matrix?
For example,
contains two horizontal rows and three vertical columns:
- Row 1:
- Row 2:
- Column 1:
Try it
Consider the matrix . How many rows does the matrix have?
Try it
Consider the matrix . How many columns does the matrix have?
The Size of a Matrix
If a matrix has rows and columns, its size is written as
So the order is always
For example,
has 2 rows and 3 columns. Therefore its size is
Rows Come First
A very common mistake is to reverse the dimensions of a matrix. For example,
is not . It has 2 rows and 3 columns, so its size is
Try it
What is the size of the matrix ?
Try it
What is the size of the matrix ?
Entries of a Matrix
The individual numbers inside a matrix are called its entries or elements. Consider
Each number occupies a specific position, and we can name every entry using two indices. The general notation is
The first index tells us the row. The second index tells us the column. So means:
Reading an Entry
Consider
The entry means row 1, column 2. The number in that position is . Therefore,
Similarly, means row 2, column 1. Therefore,
Try it
Consider the matrix . Select the entry .
Try it
Let . What is ?
Try it
Let . What is ?
Do Not Reverse the Indices
Remember: means
It does not mean column , row . For example,
Then , while . In general, and are different positions.
Try it
In the notation , the first index represents the column number.
General Matrix Notation
A matrix with rows and columns can be written as
We can write this more compactly as
Its size is . The entry in the final row and final column is .
Try it
A matrix has size . Which entry represents the element in the fifth row and third column?
When Are Two Matrices Equal?
Two matrices are equal when all corresponding entries are equal. For example,
and
Every entry of matches the entry in the same position in . Therefore,
Position Matters
Now consider
and
Both matrices contain the same four numbers, but the entries are not in the same positions. For example, while . Therefore,
Formal Definition of Equality
Matrices and are equal if their corresponding entries are equal:
for every valid pair of indices .
Try it
Two matrices containing exactly the same numbers are always equal.
Try it
Which matrix is equal to ?
Try it
Suppose . What are and ?
What You Learned
A matrix is a rectangular array of numbers arranged in rows and columns. A matrix with rows and columns has size
Matrix dimensions are always written as
Individual matrix entries are written as , where and .
Two matrices are equal when all corresponding entries are equal: if for every corresponding position.
Final checkpoint
Try it
Consider . What is the size of ?
Try it
For , what is ?
Try it
For , what is ?
Try it
A matrix has 3 columns and 5 rows.
Try it
If two matrices have the same size, then they are equal.
Completion
Lesson complete
Great work! You now know how to:
- recognize a matrix;
- identify rows and columns;
- determine matrix dimensions;
- read entries using ;
- compare two matrices for equality.