Prerequisites
Matrix notation and dimensions
The size or dimension of a matrix is written as:
where:
$m$ = number of rows
$n$ = number of columns
Examples:
Row and column vectors
A row vector is a $1 \times n$ matrix.
A column vector is an $m \times 1$ matrix.
Vectors are special cases of matrices.
Equality of matrices
Two matrices are equal if and only if:
They have the same dimensions
Every corresponding entry is equal
Types of matrices
| Type | Definition | Example |
|---|---|---|
| Zero matrix | All entries are zero | $\begin{bmatrix}0 & 0\\0 & 0\end{bmatrix}$ |
| Square matrix | Same number of rows and columns | $2 \times 2$, $3 \times 3$ |
| Diagonal matrix | Nonzero entries only on the main diagonal | $\begin{bmatrix}2 & 0\\0 & -1\end{bmatrix}$ |
| Scalar matrix | Diagonal matrix with equal diagonal entries | $cI$ |
| Identity matrix | Ones on diagonal, zeros elsewhere | $I_3$ |
| Upper triangular | Zeros below diagonal | $\begin{bmatrix}1 & 2\\0 & 3\end{bmatrix}$ |
| Lower triangular | Zeros above diagonal | $\begin{bmatrix}1 & 0\\4 & 2\end{bmatrix}$ |
| Symmetric | $A^T = A$ | $\begin{bmatrix}1 & 2\\2 & 5\end{bmatrix}$ |
| Skew-symmetric | $A^T = -A$ | $\begin{bmatrix}0 & 3\\-3 & 0\end{bmatrix}$ |
| Orthogonal | $A^T A = I$ | Rotation matrices |
| Singular | Not invertible | Determinant $= 0$ |
| Nonsingular | Invertible | Determinant $\ne 0$ |
Identity matrix
The identity matrix $I_n$ acts like the number 1 under matrix multiplication:
when dimensions match.
Trace
For a square matrix, the trace is the sum of diagonal entries:
Trace is defined only for square matrices.
Matrix operations
Addition and subtraction
Matrix addition and subtraction require equal dimensions and are done entrywise.
If $A = [a_{ij}]$ and $B = [b_{ij}]$, then:
Example:
Scalar multiplication
For scalar $c$:
This multiplies every entry by $c$.
Linear combination
A linear combination of matrices has the form:
This is useful in vector spaces of matrices.
Properties of addition and scalar multiplication
For matrices of compatible size:
Matrix multiplication
Matrix multiplication is not entrywise. It is defined by row-by-column products.
If $A$ is $m \times n$ and $B$ is $n \times p$, then $AB$ is defined and has size $m \times p$.
Compatibility rule
The number of columns of the left matrix must equal the number of rows of the right matrix.
If dimensions do not match, the product is undefined.
Product formula
The $(i,j)$ entry of $AB$ is:
Example:
because:
Key properties
Matrix multiplication is:
Associative: $(AB)C = A(BC)$
Distributive: $A(B+C) = AB + AC$
Compatible with scalars: $(cA)B = c(AB) = A(cB)$
Matrix multiplication is generally not commutative:
in most cases.
Powers of a matrix
For a square matrix:
and in general:
Matrix powers are only defined for square matrices.
Useful interpretation
If $A$ is a matrix and $x$ is a vector, then $Ax$ is a linear combination of the columns of $A$ weighted by the components of $x$.
That viewpoint is often the fastest way to interpret $Ax=b$.
Transpose and symmetry
The transpose of a matrix $A$ is denoted $A^T$ and is formed by swapping rows and columns.
If $A = [a_{ij}]$, then:
Example:
Transpose rules
The last identity reverses the order.
Symmetric matrices
A square matrix is symmetric if:
Symmetric matrices have mirrored entries across the main diagonal.
Skew-symmetric matrices
A square matrix is skew-symmetric if:
Every diagonal entry of a skew-symmetric matrix is zero.
Row reduction and echelon form
Row operations are used to solve systems and simplify matrices.
Elementary row operations
Swap two rows
Multiply a row by a nonzero scalar
Replace a row by itself plus a multiple of another row
These operations preserve the solution set of a linear system.
Row echelon form
A matrix is in row echelon form if:
All zero rows are at the bottom
Each leading nonzero entry is to the right of the one above it
Entries below each leading entry are zero
Reduced row echelon form
A matrix is in reduced row echelon form if, in addition:
Every leading entry is 1
Each leading 1 is the only nonzero entry in its column
The reduced row echelon form is unique.
Pivots
The first nonzero entry in a nonzero row is a pivot.
Pivot columns identify which variables are basic in a linear system.
How to row-reduce efficiently
Work left to right, top to bottom.
Create a pivot in the current column.
Eliminate entries below the pivot.
Move to the next row and next column.
Back-substitute if you need reduced row echelon form.
Determinants
The determinant is a scalar associated with a square matrix.
It measures, among other things:
Scaling of area or volume under the linear transformation
Whether the matrix is invertible
Orientation change
Determinant of a 2 by 2 matrix
For:
the determinant is:
Determinant of a 3 by 3 matrix
For:
one expansion is:
Determinant properties
For square matrices:
If $A$ is triangular, then:
Determinant and invertibility
A square matrix is invertible if and only if:
If:
then the matrix is singular.
Cofactor expansion
For a square matrix, the determinant can be expanded along a row or column using minors and cofactors.
This method is conceptually useful, but for large matrices row reduction is often faster.
Inverse matrices
If $A$ is square, its inverse $A^{-1}$ satisfies:
An inverse exists exactly when $A$ is nonsingular.
Why inverses matter
If $Ax=b$ and $A^{-1}$ exists, then:
This solves the system in one step, though computing the inverse directly is often not the best numerical method.
Inverse of a 2 by 2 matrix
For:
if $ad-bc \ne 0$, then:
Inverse properties
for nonzero scalar $c$.
Practical note
To check whether your inverse is correct, multiply:
on one side and, if needed, on both sides.
Systems of linear equations
A linear system can be written as:
where:
$A$ is the coefficient matrix
$x$ is the vector of unknowns
$b$ is the constant vector
Augmented matrix
The system is often represented as:
Row reduction is then used to determine whether the system has:
No solution
Exactly one solution
Infinitely many solutions
Interpret the row-reduced form
If a row reduces to:
with $c \ne 0$, the system is inconsistent.
If every variable column has a pivot, the solution is unique.
If some variables are free, the system has infinitely many solutions.
Homogeneous systems
A homogeneous system has the form:
It always has the trivial solution:
Nontrivial solutions exist exactly when the columns of $A$ are linearly dependent.
Solution structure
For a consistent system, the general solution is:
where:
$x_p$ is one particular solution
$x_h$ is the general solution of the homogeneous system
Rank, nullity, and subspaces
Rank
The rank of a matrix is the number of pivot columns, equivalently the dimension of the column space.
It is also the dimension of the row space.
Nullity
The nullity of a matrix is the dimension of its null space:
Rank-nullity theorem
For an $m \times n$ matrix:
This is one of the most useful bookkeeping identities in linear algebra.
Column space
The column space is the span of the columns of $A$.
It is the set of all vectors $b$ for which $Ax=b$ has at least one solution.
Row space
The row space is the span of the rows of $A$.
Row operations preserve the row space up to equivalence of the row span.
Null space
The null space contains all vectors mapped to zero by $A$.
If the null space contains only the zero vector, then $A$ has full column rank.
Where eigenvalues fit
Matrices are the foundation: dimensions, multiplication, row reduction, determinants, inverses, rank, null spaces, and subspaces provide the tools used by eigenvalue methods. The focused theory and computation belong in the Eigenvalues note.
Use this compact recap only to connect the topics:
| Topic | Matrix-level statement | Full treatment |
|---|---|---|
| Eigenpair | $Av=\lambda v$, with $v\ne0$ | Eigenvalues |
| Candidate eigenvalues | $\det(A-\lambda I)=0$ | Characteristic equations |
| Eigenspace | $\operatorname{Null}(A-\lambda I)$ | Eigenspaces |
| Diagonalization | $A=PDP^{-1}$ when there are enough independent eigenvectors | Diagonalization |
| Symmetric case | $A=QDQ^T$ with $Q$ orthogonal | Spectral theorem |
Special matrices and decompositions
Orthogonal matrices
A square matrix $Q$ is orthogonal if:
Equivalently:
Orthogonal matrices preserve lengths and angles.
Projection matrices
A projection matrix satisfies:
It projects vectors onto a subspace.
Idempotent and nilpotent matrices
An idempotent matrix satisfies:
A nilpotent matrix satisfies:
for some positive integer $k$.
LU decomposition
Many matrices can be factored as:
where:
$L$ is lower triangular
$U$ is upper triangular
This is useful for solving multiple systems with the same coefficient matrix.
QR decomposition
Another common factorization is:
where:
$Q$ has orthonormal columns
$R$ is upper triangular
QR decomposition is central in least-squares problems and numerical algorithms.
Problem-solving workflow
Use this sequence for most matrix problems.
Step 1: Identify the object
Decide whether you are working with:
A raw matrix
A linear system
A transformation
An eigenvalue problem
A decomposition problem
Step 2: Check dimensions
Verify compatibility before computing:
Addition requires equal size
Multiplication requires matching inner dimensions
Inverses require square matrices
Eigenvalues require square matrices
Step 3: Choose the right tool
Common choices:
Row reduction for systems and rank
Determinants for invertibility checks
Inverses for algebraic rearrangement
Eigenvalues for dynamics, stability, and diagonalization
Factorizations for efficient computation
Step 4: Simplify symbolically
Keep expressions symbolic until the structure is clear.
Do not substitute numbers before the matrix form is organized.
Step 5: Verify the result
Check:
Dimensions
Signs
Pivot structure
Invertibility conditions
Consistency of the system
For eigenvalue problems, verify with:
For inverses, verify with:
Formula sheet
Core definitions
Matrix sizes
If $A$ is $m \times n$ and $B$ is $n \times p$, then:
Identity and inverse
Determinants
For $2 \times 2$ matrices:
For triangular matrices:
Matrix is invertible if and only if:
Row reduction
Elementary row operations:
Swap two rows
Multiply a row by a nonzero scalar
Add a multiple of one row to another
Rank-nullity
Orthogonality
Common mistakes to avoid
Treating matrix multiplication as commutative.
Adding or multiplying matrices with incompatible dimensions.
Forgetting that only square matrices can have determinants and inverses.
Confusing row operations with column operations.
Dropping the order reversal in $(AB)^T = B^TA^T$.
Using $\det(A) \ne 0$ as a shortcut without confirming $A$ is square.
Forgetting that $Ax=b$ can have zero, one, or infinitely many solutions.
Misreading pivots and free variables after row reduction.
Treating a singular matrix as invertible.
Forgetting to verify solutions by substitution or matrix multiplication.
Sources
Stewart, Calculus: Early Transcendentals
Lay, Linear Algebra and Its Applications
Rosen, Discrete Mathematics and Its Applications
Boyce and DiPrima, Elementary Differential Equations and Boundary Value Problems
Blitzstein and Hwang, Introduction to Probability