4.03a - The language of matrices
A matrix keeps numbers in positions, so its shape and the order of its entries matter as much as the entries themselves. Learn to read real and complex matrices, recognise the special matrices, compare matrices and take a transpose. This vocabulary will let you describe calculations precisely before you begin them.
Shape and entries
Can two arrays contain exactly the same numbers and still be different mathematical objects? Compare
Both contain the same six numbers. Yet the first has two rows and the second has three. A matrix records an arrangement, not a bag of numbers. The surprise is that this small distinction eventually decides whether two calculations can even be performed.
Matrix and dimensions
A matrix is a rectangular array of entries arranged in rows and columns. Its dimensions or order are by , where is the number of rows and the number of columns. The entry is in row , column . For example, above is by , and .
Read across a row and down a column. A one-row matrix is a row matrix; a one-column matrix is a column matrix. A column vector is therefore also a matrix. The order of is by , while its column version has order by . Write matrix entries without commas: is a row matrix, whereas normally names a point.
A square matrix has equal numbers of rows and columns. A square matrix of order is by , with nine entries. Matrices whose row and column counts differ are called rectangular matrices. All matrix arrays are rectangular in shape; in the square/rectangular classification, “rectangular” means non-square.
You already know
, and real numbers are complex numbers with imaginary part zero. An entry such as is one number, so it occupies one position.
A real matrix has only real entries. A matrix with complex entries is a complex matrix; real matrices are special cases. For example,
is a complex by matrix. The is one entry, not two columns. None of this terminology is supplied in the formula booklet: learn it.
Key idea
Count rows first, then columns; an entry keeps both its value and its position.
This first check separates dimensions from the number of entries.
Equal matrices
Equality compares positions, so matrices are equal only when their shapes match and every corresponding entry matches.
Equal matrices
Two matrices are equal if they have the same dimensions and equal entries in every corresponding position. For example, , but . This equality rule is not in the formula booklet: learn it.
With unknown entries, a matrix equation is a compact collection of ordinary equations. Use all the positions: one matching entry does not establish equality.
Worked example 1: comparing real entries
Question. Find and if .
Plan. Equate entries in the same positions and solve the resulting equations.
Why this step? Matrix equality preserves position; the top-left entry cannot be compared with the bottom-right one.
Answer. and .
Check. Substitution gives on both sides, including the two entries without unknowns.
The second example changes the entry type: an entry now contains complex numbers. Compare positions first, then equate real and imaginary parts inside that position.
Worked example 2: comparing complex entries
Question. The numbers and are real. Find them if .
Plan. Equate the top-left entries, then compare their real and imaginary parts.
Why this step? The unknowns are real, so equality of the complex entries gives two real conditions.
Answer. and .
Check. The other three corresponding entries already agree, so the whole matrices are equal.
Every position must agree, even when no unknown appears there. Rearranging entries can destroy equality.
Watch out
Wrong: because the numbers are the same. The top-right entries are and , so the matrices are unequal.
Use exactly the same comparison in your turn.
The transpose
Transposing a matrix exchanges its rows with its columns without changing any entry's value.
Transpose
The transpose of , written , is formed by making each row of the corresponding column of . Thus . An by matrix has an by transpose. These results are not in the formula booklet: learn them.
The first row becomes the first column, the second row becomes the second column, and so on. Transposing twice returns each entry to its starting position, so , also not a supplied result.
Worked example 3: transposing a rectangle
Question. Write down the dimensions and transpose of .
Plan. Count the rows and columns, then turn each row into a column.
Why this step? Keeping the first row together as the first column prevents a reversal of the entry order.
Answer. is by ; its displayed transpose is by .
Check. Transposing the answer gives again.
The second example changes only the entry type. A transpose moves complex entries; it does not conjugate them.
Worked example 4: transposing complex entries
Question. Write down , where .
Plan. Use the same row-to-column rule, leaving every sign unchanged.
Why this step? Transpose refers to positions, so the imaginary parts do not change sign.
Answer. .
Check. The original becomes entry , still equal to .
The transpose records the same entries in new positions. There is no arithmetic to perform on the entries themselves.
Watch out
Wrong: changing into while taking a transpose. That takes a conjugate as well. Right: move unchanged to its new position.
The next check keeps the shape and varies the entries.
Special matrices and conformability
Some matrix names describe their entries; another describes whether a particular operation is possible.
Zero and identity matrices
A zero matrix, also called a null matrix, has every entry zero, and is written , with dimensions specified when needed. An identity matrix is square, with in every main-diagonal position and elsewhere. For example,
The main diagonal runs from top left to bottom right. A square matrix with zeros away from that diagonal is diagonal; the identity is one example, but is diagonal and is not an identity. The zero matrix need not be square. The names and forms of these matrices are not given in the formula booklet.
A determinant is a single number associated with a square matrix, written or . Thus denotes a number, whereas denotes a matrix. A non-square matrix has no determinant. You will learn how to calculate and interpret determinants later; neither the meaning nor the by calculation rule is supplied in the formula booklet.
Conformable
Matrices are conformable for an operation when their dimensions allow that operation. For addition or subtraction, the dimensions must match. For the product , the number of columns of must equal the number of rows of . If is by and is by , their product is by . These dimension rules are not in the formula booklet: learn them.
For example, a by matrix and a by matrix cannot be added, but can be multiplied in that order: their product is by . Reversing them would require , so that reverse product is undefined. “Conformable” needs the operation and, for multiplication, the order.
Key idea
Before calculating, ask whether the shapes fit the operation. Identical entries do not compensate for different dimensions.
The opening arrays are different: one is by , the other by . You can now say why, and which operations their shapes permit.
Quick Recap
- Dimensions mean rows by columns; a square matrix has the same number of each.
- Equal matrices have the same shape and equal corresponding entries, including complex entries.
- A transpose exchanges rows and columns without conjugating; transposing twice returns the starting matrix.
- A zero matrix has all entries zero, an identity has diagonal ones and other entries zero, and a determinant is a number attached to a square matrix.
- Conformability depends on the operation: identical shapes for addition; matching inner dimensions for multiplication.
The opening arrays contain the same numbers but have different shapes, so they are different matrices.