Matrices first appear in the course as a convenient way to record a system of linear equations. Very quickly, though, they become objects in their own right. To work rigorously later, you need to separate several ideas that beginners often blur together:
- what a matrix is;
- when two matrices are equal;
- which operations are defined before multiplication even enters the story;
- how a matrix records the data of a linear system.
This note lays down that language carefully.
What a matrix is
Definition
Matrix
A matrix is a rectangular array of numbers arranged in rows and columns.
If a matrix has m rows and n 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.
Read the size before you touch the entries
The size of a matrix is written as .
mis the number of rows.nis the number of columns.
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.
Read entries one by one
If is a matrix, then means the entry in row i and column j.
That notation matters because it tells you exactly where a number lives inside
the array.
Worked example
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 4.
The notation is not optional bookkeeping. It is the language used in definitions such as matrix equality, matrix addition, and matrix multiplication.
Matrix equality is entrywise
Two matrices are equal only when they have the same size and every corresponding entry matches.
Definition
Matrix equality
Let and be matrices.
Then if and only if:
- and have the same size, and
- for every row index
iand column indexj.
This means that proving two matrices are equal is often an entry-by-entry argument.
Worked example
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 .
Addition and scalar multiplication come first
Before matrix multiplication appears, there are two basic operations you should already read confidently.
Definition
Addition and scalar multiplication
Let and be matrices of the same size, and let c
be a scalar.
- The sum is the matrix obtained by adding corresponding entries: .
- The scalar multiple
cAis the matrix obtained by multiplying every entry of byc: .
The phrase "of the same size" is essential. Matrix addition is not defined for matrices of different sizes.
Worked example
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 0. For each size it plays
the role of the additive identity:
A matrix records a linear system compactly
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
So the whole system can be recorded as
This compact form is not a shortcut that hides meaning. It gathers the same coefficients, variables, and constants into an object that later supports row operations, null-space language, and invertibility tests.
A short preview of multiplication
The next note explains matrix multiplication carefully. For now, you only need to see why rows and columns matter so much. Changing one row of a left matrix or one column of a right matrix changes exactly the output entries built from them.
Use the embedded figure as a preview of that row-by-column rule.
Read and try
Follow one matrix product entry
The live widget updates each entry of AB as you change the entries of A and B.
Result
| 8 | 9 |
| 3 | 4 |
8 = 1×2 + 2×3
Common mistakes
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
Quick check
Can a matrix be added to a matrix?
Answer from the definition of matrix addition, not from visual guesswork.
Solution
Answer
Quick check
If is a matrix, what does the symbol mean?
Name both the row and the column.
Solution
Answer
Exercise
Quick check
Write the coefficient matrix and constant vector for the system , .
Keep the order of the variables fixed.
Solution
Guided solution
Related notes
If you want to see how a system becomes a matrix, review 1.1 Equations and solution sets. For the next algebraic operation, continue to 3.1 Matrix multiplication and identity matrices.