Matrix Anatomy and Equality
Matrix Anatomy and Equality
Matrices are rectangular arrangements of numbers. They help organize information clearly and are used in many areas of mathematics, science, economics, and technology.
Before students can add, subtract, or multiply matrices, they must understand a matrix’s anatomy: its rows, columns, order, and entries. They also need to know when two matrices are considered equal.
This lesson explains how to read a matrix, describe its size, name its elements, and decide whether two matrices are equal.
1. What is a matrix?
A matrix is a rectangular array of numbers arranged in rows and columns. A single number inside a matrix is called an element or an entry.
For example, in the matrix
$$ A=\begin{bmatrix} 2 & 5 & -1\\ 0 & 3 & 4 \end{bmatrix} $$the numbers are arranged in rows and columns.
- The first row is \([2\; 5\; -1]\).
- The second row is \([0\; 3\; 4]\).
- The first column is $$\begin{bmatrix}2\\0\end{bmatrix}$$
- The second column is $$\begin{bmatrix}5\\3\end{bmatrix}$$
- The third column is $$\begin{bmatrix}-1\\4\end{bmatrix}$$
2. Order of a matrix
The order of a matrix tells its dimensions. It is written as
\(\text{number of rows} \times \text{number of columns}\).
For the matrix
$$ A=\begin{bmatrix} 2 & 5 & -1\\ 0 & 3 & 4 \end{bmatrix} $$there are 2 rows and 3 columns, so its order is
$$ 2\times 3 $$This is read as “2 by 3.”
Here are some examples of matrix orders:
- A matrix with 3 rows and 2 columns has order \(3\times 2\).
- A matrix with 4 rows and 4 columns has order \(4\times 4\).
- A matrix with 1 row and 5 columns has order \(1\times 5\).
- A matrix with 6 rows and 1 column has order \(6\times 1\).
Important: Order matters. A \(2\times 3\) matrix is not the same size as a \(3\times 2\) matrix.
3. Naming elements in a matrix
Each element in a matrix can be named by its position. The usual notation is \(a_{ij}\), which means:
- \(i\) = row number
- \(j\) = column number
So \(a_{ij}\) means the entry in the ith row and jth column.
For example, consider
$$ B=\begin{bmatrix} 7 & -2 & 5\\ 1 & 0 & 9\\ 4 & 6 & -3 \end{bmatrix} $$Then:
- \(b_{11}=7\) because it is in row 1, column 1
- \(b_{12}=-2\) because it is in row 1, column 2
- \(b_{23}=9\) because it is in row 2, column 3
- \(b_{31}=4\) because it is in row 3, column 1
- \(b_{33}=-3\) because it is in row 3, column 3
When identifying an element, always read row first, then column.
4. General form of a matrix
A matrix can be written in general form as
$$ A=\begin{bmatrix} a_{11} & a_{12} & a_{13} & \cdots & a_{1n}\\ a_{21} & a_{22} & a_{23} & \cdots & a_{2n}\\ a_{31} & a_{32} & a_{33} & \cdots & a_{3n}\\ \vdots & \vdots & \vdots & \ddots & \vdots\\ a_{m1} & a_{m2} & a_{m3} & \cdots & a_{mn} \end{bmatrix} $$This means the matrix has \(m\) rows and \(n\) columns, so its order is \(m\times n\).
You do not need to memorize this entire pattern. The important idea is that each entry is named using its row and column position.
5. Special note about rows and columns
A matrix with only one row is called a row matrix (or row vector in some contexts).
Example:
$$ \begin{bmatrix}3 & 8 & -1 & 6\end{bmatrix} $$Its order is \(1\times 4\).
A matrix with only one column is called a column matrix (or column vector in some contexts).
Example:
$$ \begin{bmatrix}5\\2\\-7\end{bmatrix} $$Its order is \(3\times 1\).
6. Equality of matrices
Two matrices are equal only if both of these conditions are true:
- They have the same order.
- Each corresponding element is equal.
In symbols, matrices \(A\) and \(B\) are equal if:
- they have the same dimensions, and
- for every position \((i,j)\), \(a_{ij}=b_{ij}\).
For example,
$$ A=\begin{bmatrix}1 & 4\\2 & -3\end{bmatrix}, \qquad B=\begin{bmatrix}1 & 4\\2 & -3\end{bmatrix} $$Since both are \(2\times 2\) and every matching entry is the same, \(A=B\).
But if even one entry is different, the matrices are not equal.
For example,
$$ A=\begin{bmatrix}1 & 4\\2 & -3\end{bmatrix}, \qquad C=\begin{bmatrix}1 & 4\\2 & 3\end{bmatrix} $$These matrices are not equal because the bottom-right entry is different: \(-3\neq 3\).
Also, if the orders are different, the matrices cannot be equal, even if some numbers match.
For example,
$$ \begin{bmatrix}1 & 2 & 3\\4 & 5 & 6\end{bmatrix} \neq \begin{bmatrix}1 & 2\\3 & 4\\5 & 6\end{bmatrix} $$The first matrix has order \(2\times 3\), while the second has order \(3\times 2\).
7. Using equality to find unknown values
If two matrices are equal, then the entries in matching positions must be equal. This allows us to form equations and solve for unknowns.
For example, if
$$ \begin{bmatrix} x+1 & 2y\\ 3 & y-4 \end{bmatrix} = \begin{bmatrix} 5 & 8\\ 3 & 0 \end{bmatrix} $$then corresponding entries must match:
- \(x+1=5\)
- \(2y=8\)
- \(3=3\)
- \(y-4=0\)
Solving gives:
- \(x=4\)
- \(y=4\)
Notice that both equations involving \(y\) agree, which confirms the solution is correct.
Worked Example 1: Finding the order
Find the order of
$$ M=\begin{bmatrix} 3 & 1 & 0 & -2\\ 5 & 4 & 7 & 6 \end{bmatrix} $$Step 1: Count the rows.
There are 2 rows.
Step 2: Count the columns.
There are 4 columns.
Answer: The order of \(M\) is
$$ 2\times 4 $$Worked Example 2: Identifying an element
Given
$$ N=\begin{bmatrix} 8 & -1 & 3\\ 0 & 6 & 5\\ 4 & 2 & 9 \end{bmatrix} $$find:
- \(n_{21}\)
- \(n_{32}\)
- \(n_{13}\)
Step 1: Remember that the first number in the subscript is the row, and the second is the column.
Step 2: Read each position carefully.
- \(n_{21}\): row 2, column 1 = \(0\)
- \(n_{32}\): row 3, column 2 = \(2\)
- \(n_{13}\): row 1, column 3 = \(3\)
Answer:
$$ n_{21}=0, \qquad n_{32}=2, \qquad n_{13}=3 $$Worked Example 3: Deciding whether two matrices are equal
Determine whether
$$ P=\begin{bmatrix} 2 & 7\\ -1 & 5 \end{bmatrix} \quad \text{and} \quad Q=\begin{bmatrix} 2 & 7\\ -1 & 5 \end{bmatrix} $$are equal.
Step 1: Compare the orders.
Both matrices are \(2\times 2\).
Step 2: Compare corresponding entries.
- Top-left: \(2=2\)
- Top-right: \(7=7\)
- Bottom-left: \(-1=-1\)
- Bottom-right: \(5=5\)
Conclusion: Since the orders are the same and all corresponding entries are equal,
$$ P=Q $$Worked Example 4: Finding unknowns using matrix equality
If
$$ \begin{bmatrix} 2x & y+3\\ 4 & 3y \end{bmatrix} = \begin{bmatrix} 10 & 7\\ 4 & 12 \end{bmatrix} $$find \(x\) and \(y\).
Step 1: Match corresponding elements.
- \(2x=10\)
- \(y+3=7\)
- \(4=4\)
- \(3y=12\)
Step 2: Solve the equations.
From \(2x=10\),
$$ x=5 $$From \(y+3=7\),
$$ y=4 $$Check with \(3y=12\):
$$ 3(4)=12 $$This is true, so the values are correct.
Answer:
$$ x=5, \qquad y=4 $$Common mistakes to avoid
- Mixing up rows and columns: In \(a_{ij}\), the row comes first.
- Writing the order backwards: Always write rows \(\times\) columns.
- Assuming same numbers means equal matrices: The numbers must be in the same positions, and the matrices must have the same order.
- Ignoring one mismatched entry: If even one corresponding element is different, the matrices are not equal.
Quick check for understanding
For the matrix
$$ R=\begin{bmatrix} 1 & 4 & 8\\ -2 & 0 & 5 \end{bmatrix} $$- Its order is \(2\times 3\).
- \(r_{12}=4\).
- \(r_{23}=5\).
- It has 2 rows and 3 columns.
If another matrix has the same order but one entry is different, then it is not equal to \(R\).
Summary
A matrix is a rectangular arrangement of numbers in rows and columns. Its order is written as rows \(\times\) columns. Each element is identified by its position, written as \(a_{ij}\), where \(i\) is the row and \(j\) is the column.
Two matrices are equal only when they have the same order and every corresponding element is equal. This idea also helps us find unknown values by matching entries in the same positions.
Put what you read to the test
You've worked through Matrix Anatomy and Equality. Try answering a few questions to see what stuck — and what might deserve a quick reread before you move on.