Matrix Operations
A matrix is a rectangular array of numbers arranged in rows and columns. Matrices give us a compact way to organize data and, more importantly for this unit, to represent and solve systems of linear equations. This section covers the core operations you can perform on matrices and how those operations connect back to solving systems.
Matrix Addition and Subtraction
Two matrices can only be added or subtracted if they share the same dimensions (same number of rows and same number of columns). When that condition is met, you simply add or subtract the corresponding entries, position by position. The result is a new matrix with those same dimensions.
Subtraction works the same way: subtract each entry in the second matrix from the corresponding entry in the first.
Scalar multiplication means multiplying every entry in a matrix by a single constant (the scalar). The resulting matrix keeps the same dimensions.
Key properties of addition and scalar multiplication:
- Commutative property of addition:
- Associative property of addition:
- Distributive property of scalar multiplication over addition:

Matrix Multiplication
Matrix multiplication is more involved than addition. Two conditions and a process to remember:
Dimension requirement: To multiply matrix (dimensions ) by matrix (dimensions ), the number of columns in must equal the number of rows in . The resulting matrix will have dimensions .
How to find each entry of the product:
- Pick a row from the first matrix and a column from the second matrix.
- Multiply each entry in that row by the corresponding entry in that column.
- Add up all those products. That sum is one entry in the result matrix.
- Repeat for every row-column combination.
For example, the entry in row 1, column 1 of the result is .
Properties of matrix multiplication:
- Not commutative: In general, . This is a big difference from regular number multiplication, and a common exam mistake.
- Associative:
- Distributive over addition:
The identity matrix is a square matrix with 1s along the main diagonal and 0s everywhere else. For a matrix, it looks like this:
Multiplying any matrix by the appropriately sized identity matrix returns the original matrix: . Think of it as the matrix equivalent of multiplying a number by 1.

Matrices in Systems of Equations
Any system of linear equations can be written in matrix form , where:
- = the coefficient matrix (the coefficients of the variables)
- = the variable matrix (a column matrix of the unknowns)
- = the constant matrix (the numbers on the right side of each equation)
For example, the system and becomes:
Solving using the inverse matrix:
- Write the system in matrix form: .
- Find the inverse of the coefficient matrix, (this exists only if is square and its determinant is not zero).
- Multiply both sides on the left by : .
- Since and , you get .
A square matrix has an inverse when . Common methods for finding the inverse include row reduction (augmenting with and reducing to ) and, for matrices, using the determinant formula. If the determinant of equals zero, the matrix has no inverse and the system either has no solution or infinitely many solutions.
Matrix Properties
- Dimension: Written as , where is the number of rows and is the number of columns. A matrix has 3 rows and 2 columns.
- Transpose: The transpose of matrix , written , flips the matrix over its main diagonal, turning rows into columns and columns into rows. If is , then is .