Loading…
Read matrices carefully as mathematical objects: size, entries, equality, basic operations, and how systems of equations become matrix statements.
In the equation , the coefficients in the order are . Omitting the zero would lose the distinction between the second and third unknowns. Writing the coefficients of several equations in aligned rows preserves that information: each row belongs to an equation, and each column belongs to a fixed unknown.
Definition 2.1.1
(Matrix)
A matrix is a rectangular array of numbers arranged in rows and columns.
If a matrix has rows and columns, we say it is an matrix. The entries are usually real numbers in this course, although the formal definitions make sense over other number systems as well.
The point of the rectangular format is not decoration. A row records one line of data, a column records another line of data, and the position of an entry matters. Later, multiplication and row operations will depend on that position.
This is why a matrix should not be treated as a loose list of numbers. The entry in row , column can play a completely different role from the same number placed in row , column . In a coefficient matrix, for example, columns are tied to the chosen order of the variables. If the variable order is , then the second column records coefficients of . If the order is changed to , the displayed matrix must change as well.
Common mistake
(Do not separate a coefficient from its position)
The number by itself does not say which variable it multiplies. In a coefficient matrix, the column position tells you that information. Moving a column changes the encoded system unless the variable order is changed at the same time.
Read a matrix by its row, column and entry
Select an entry. Match ① its row, ② its column and ③ its value with the same numbered readings.
| 1 | 2 | 0 |
| 3 | −1 | 4 |
① Row 2: (3, -1, 4)
② Column 3: (0, 4)T
③
① solid row borders · ② dashed column borders · ③ underlined entry
A[1][2] = 4Holds: the two indices locate the selected entry
a23 is in row 2, column 3, and equals 4. Array indices start at zero; matrix subscripts here start at one.
NoticeThe first subscript chooses the row; the second chooses the column. Selecting another entry does not change the matrix.
Track one entry through the diagram and identify its row, column, and two indices. Its value and its position are separate pieces of information.
Follow the basic row-column map behind matrix size, entry notation, equality, and coefficient columns.
Read the size first
A 2 x 3 matrix has two rows and three columns. That size determines which comparisons and operations are even defined.
Locate entries by row and column
The notation a_23 means row 2, column 3. In the sample matrix, that position contains the entry 4.
Check equality entry by entry
Two matrices are equal only when they have the same size and every corresponding entry matches.
One mismatch is enough
Changing only one entry changes the whole matrix, because the matrix remembers both values and positions.
Keep the variable order
In a coefficient matrix, column 2 has meaning only after the variable order has been fixed.
Before doing row reduction or multiplication, read the matrix as a positioned object: first its size, then the row and column of each entry, then whether another matrix has the same positioned data.
The size of a matrix is written as .
If , the matrix is square.
Two matrices with different sizes are different kinds of objects. A matrix and a matrix are not even comparable entry by entry, because their row-column positions do not match.
If is a matrix, then means the entry in row and column . That notation matters because it tells you exactly where a number lives inside the array.
Worked example 2.1.2
(Reading a matrix carefully)
Let
This matrix has 2 rows and 3 columns, so its size is . Its entry in row 2, column 3 is .
The notation is not optional bookkeeping. It is the language used in definitions such as matrix equality, matrix addition, and matrix multiplication.
Practise reading a matrix before calculating
Answer three short questions about . After a correct answer, the positions to read are marked.
| 1 | 2 | 0 |
| 3 | −1 | 4 |
NoticeRow 1 records . In a coefficient matrix, one equation becomes one row.
Two matrices are equal only when they have the same size and every corresponding entry matches.
Definition 2.1.3
(Matrix equality)
Let and be matrices.
Then if and only if:
This means that proving two matrices are equal is often an entry-by-entry argument.
Worked example 2.1.4
(Using matrix equality to solve for an unknown entry)
Suppose
The two matrices already agree in three positions. Equality of matrices forces the remaining position to agree as well, so .
The equality definition has a useful consequence: complete column information is enough to reconstruct a matrix. We do not need to compare the whole display at once, but we do need every column in its specified position.
Theorem 2.1.5
(Coordinate reconstruction and equality)
Given an ordered list of column vectors in , there is exactly one matrix with these columns. Its entry is the th entry of . Consequently, two matrices of this size are equal if and only if their corresponding columns are equal. The analogous statement holds for their ordered rows.
Proof
(Existence and uniqueness come directly from the entries)
For existence, place the th coordinate of the th supplied vector in position . Every required position receives exactly one real number, and each column then has the prescribed entries in the prescribed order.
For uniqueness, let be any other matrix with the same ordered columns. For each column index and each row index , its entry must be the th coordinate of , hence must equal . The matrices have the same size and all corresponding entries agree, so they are equal by definition. Conversely, equal matrices have equal entries in each column, which makes the corresponding column vectors equal. Grouping the same argument by row instead of by column proves the row version.
Notice that this proof has both an existence part and an at-most-one part. The word “ordered” is also essential. A set of column vectors forgets which column comes first and forgets repetitions. Neither piece of information may be lost when reconstructing a matrix. A row vector and a column vector containing the same numbers likewise have different shapes; the theorem never identifies them merely because the printed numbers agree.
Worked example 2.1.6
(Reconstruct a matrix and test a second description)
Suppose the first, second, and third columns of are respectively
There are three columns of length two, so
The first row is , and . A second description says that the rows of are and . Reading each position confirms that both descriptions determine the same matrix. If that second row were , the descriptions would conflict in two positions; there would be no matrix satisfying both. Having the same collection of numbers does not resolve the conflict.
If and are exchanged, the new first entry becomes zero instead of two. The result is another matrix, even though the list of available columns has not changed. This is the same positional issue that arises when columns record coefficients of differently ordered variables.
Before matrix multiplication appears, there are two basic operations you should already read confidently.
Definition 2.1.7
(Addition and scalar multiplication)
Let and be matrices of the same size, and let be a scalar.
The phrase "of the same size" is essential. Matrix addition is not defined for matrices of different sizes.
Worked example 2.1.8
(Compute a sum and a scalar multiple)
Let
Then
Every entry is handled separately, but the size stays .
The zero matrix is the matrix whose entries are all . For each size it plays the role of the additive identity:
The entrywise definitions let us justify familiar algebraic moves before matrix multiplication is introduced. An equality between matrix expressions can be solved by scalar arithmetic at each position, provided all the expressions have the required size. Cancellation is a conclusion from those definitions, not a permission to treat every matrix operation like multiplication of numbers.
Theorem 2.1.9
(Cancellation for entrywise operations)
Let be real matrices of the same size. If , then . For a fixed real scalar , if , then . The nonzero hypothesis in the second statement is necessary.
Proof
(Reduce cancellation to one arbitrary position)
From , the equality definition gives at every position. Cancelling the real number gives . Since the indices were arbitrary, matrix equality follows. Likewise, gives ; division by the nonzero real number gives equality at every position. If , both scalar multiples are the zero matrix for any , so their equality no longer forces the original matrices to agree.
The proofs also explain how to solve a basic matrix equation. In , a solution must have entries . Conversely, assigning those entries produces a matrix satisfying the equation, since substitution recovers every entry of . Thus the formula both constructs a solution and shows there cannot be another one. The matching-size condition is checked before this calculation; subtraction cannot repair incompatible dimensions.
For a concrete check, take
Then , and doubling its entries and adding the corresponding entries of recovers . If the coefficient of were zero instead, the equation would reduce to : every same-size matrix would solve it when that equality holds, and none would solve it when it fails. This is the matrix version of interpreting a zero-coefficient scalar equation, rather than attempting an illegal division.
One reason matrices matter so early is that they package a linear system in a form that is easier to transform systematically.
Consider the system
Its coefficient matrix is
its unknown vector is
and its constant vector is
Use the abbreviation
Here stands for the two displayed equations: its th equation is . The multiplication rule that gives this abbreviation its formal meaning is developed in 3.2 Matrix multiplication, identity matrices, and linear systems.
Worked example 2.1.10
(From wording to coefficient matrix)
Question: using the variable order , write the coefficient matrix and constant vector for
First, rewrite the first equation with the missing coefficient shown:
Now each equation becomes one row, and the columns follow the fixed variable order . Therefore
The most common mistake is to omit the in the first row. But the missing coefficient is part of the data, and column 2 must still exist.
Matrix multiplication in 3.2 pairs a row of the left matrix with a column of the right matrix to compute one output entry. The figure previews how those positions match; the next note uses the same fixed positions to record augmented systems and row operations.
Read one entry of AB
Select an output cell. Its row in A has a solid outline; its column in B has a dashed outline. Edit either input matrix to recompute the same inner product.
| 1 | 2 |
| 0 | 1 |
| 2 | 1 |
| 3 | 4 |
| 8 | 9 |
| 3 | 4 |
Holds: The selected entry equals its row–column inner product
8 = 1×2 + 2×3
NoticeMultiply matching positions, then add. Matrix multiplication is not entrywise multiplication. The outlines and row/column labels have the same meaning in every theme.
Common mistake
(Do not swap rows and columns)
The first index is the row number, not the column number. means row 2, column 3.
Common mistake
(Different sizes cannot be added)
Matrix addition is defined entrywise. If the positions do not line up, there is no operation to perform.
Quick check
(Can a matrix be added to a matrix?)
Answer from the definition of matrix addition, not from visual guesswork.
No. Matrix addition is only defined for matrices of the same size.
Quick check
(If is a matrix, what does the symbol mean?)
Name both the row and the column.
It is the entry in row 3 and column 1 of .
Quick check
(Write the coefficient matrix and constant vector for the system , .)
Keep the order of the variables fixed.
Using the variable order , the coefficient matrix is
and the constant vector is
A matrix has first row and second column . Describe every such matrix. Then decide what changes if the second column is instead . Explain which answer involves free entries and which involves inconsistent data.
The two descriptions overlap at position . In the first case, both give the value two, so they are compatible. The second column fixes the middle entry in the second row, leaving only its first and last entries unspecified. Thus all the matrices, and no others, are
Every choice of the two real numbers has the required row and column; conversely, any matrix with those data must have exactly this form. In the second case, the same position would have to contain both two and four. There is no matrix satisfying the data. No choice of the unspecified entries can remove that conflict. This separates incomplete information, which may permit many matrices, from incompatible information, which permits none.
This exercise also explains the scope of the reconstruction proposition. A complete ordered list of columns fixes every entry and gives exactly one matrix. A partial row-and-column description need not do so. Before counting unknown entries, first check the positions constrained in two different ways; otherwise a count of apparently free entries can conceal an impossibility.
If you want to see how a system becomes a matrix, review 1.1 Equations and solution sets. Matrix multiplication is developed in 3.2 Matrix multiplication, identity matrices, and linear systems.
Work out your answer, then check it. You can revise and try again.
Loading…
This section can be read on its own.