Precalculus · Grades 11, 12
Matrices: Operations, Identity and Inverses
Quick answer
A matrix is a rectangle of numbers with rules for combining them. Adding and scaling work entry by entry. Multiplying pairs each row of the first matrix with each column of the second, which is why the order matters: swapping the matrices swaps which rows meet which columns. The identity matrix plays the role of 1, and a 2×2 matrix has an inverse exactly when its determinant is not zero.
What you'll learn
- Use a matrix to hold and process data
- Add, subtract, scale and multiply matrices of suitable sizes
- Explain why matrix multiplication is not commutative and when an inverse exists
A table of numbers with rules
A snack stand at a high school football field sells hot dogs, pretzels and lemonade. Its sales for two games fit in a table, and a table of numbers is a matrix:
Row one is Friday’s game and row two is Saturday’s. The columns are hot dogs, pretzels and lemonade. A matrix with rows and columns is a matrix.
The point of writing data this way is that one calculation then does many jobs at once. With prices of , and dollars in a column, a single multiplication gives both nights’ revenue:
Friday brought in dollars and Saturday . How that multiplication works is the core of this lesson.
Adding, subtracting and scaling
Matrices of the same size add and subtract entry by entry:
Multiplying by a number, a scalar, multiplies every entry. If every sale doubled, the new table would be :
Multiplying matrices
Each entry of a product pairs a row of the first matrix with a column of the second. Multiply matching entries and add.
The top-left entry of uses row of and column of : . Doing all four:
Sizes have to fit. A row of the first matrix must be as long as a column of the second, so an matrix can multiply an matrix, and the product is . The sales example was , giving .
Why the order of multiplication matters
Multiply the same two matrices the other way round:
and are different matrices. The reason is built into the rule: pairs the rows of with the columns of , while pairs the rows of with the columns of . Different pairs of numbers meet, so different products come out.
For numbers, without exception. For matrices, the order is part of the instruction, and is the rare exception.
Two familiar laws do survive. With :
| Property | Holds? | Check with , , |
|---|---|---|
| commutative, | no | |
| associative, | yes | both give |
| distributive, | yes | both give |
The zero and identity matrices
Two matrices act like and .
The zero matrix has every entry . Adding it changes nothing: .
The identity matrix has s down the diagonal and s elsewhere. Multiplying by it changes nothing, on either side:
Inverses and the determinant
A number’s reciprocal undoes it: . A matrix’s inverse does the same job with in place of : .
For a matrix the inverse has a formula. Its denominator is the determinant:
For , the determinant is , so
Multiplying back confirms it: .
A matrix has an inverse exactly when its determinant is not zero. The formula divides by the determinant, so a zero determinant leaves no inverse. For the determinant is : the first row is twice the second, and a matrix whose rows repeat each other loses information that nothing can recover.
Worked examples
Common mistakes
Practice problems
-
With and , find .
Answer
Full solution
Add matching entries: , , , .
-
Find for .
Answer
Full solution
Multiply every entry by .
-
Find for the matrices in problem 1.
Answer
Full solution
Row 1 with each column: and .
Row 2: and .
-
Find and compare it with .
Answer
, which differs from .
Full solution
Row 1 of : and .
Row 2 of : and .
The order changed the result, as it usually does.
-
What size is the product of a matrix and a matrix?
Answer
Full solution
The inner sizes, and , match, and the outer sizes give the product: rows and columns.
-
Find the determinant of and its inverse.
Answer
Determinant ; inverse .
Full solution
. Swap and , negate and , and divide by .
-
Does have an inverse?
Answer
No.
Full solution
Its determinant is . The first row is three times the second.
-
If every payoff in a game table doubles, what matrix operation describes the change?
Answer
Multiplying the payoff matrix by the scalar .
Full solution
Scalar multiplication multiplies every entry by the same number, which is exactly what doubling every payoff does.
-
Show that leaves unchanged when multiplied on the left.
Answer
Full solution
Row 1 of picks out row 1 of : and . Row 2 of picks out row 2 of the same way.
-
Asked for with and , Ella multiplies matching entries and gets . Find her error.
Hint
Which numbers does each entry of a product combine?
Answer
Matrix products pair rows with columns. .
Full solution
Ella’s rule is correct for addition but not for multiplication. The top-left entry of is row of against column of : .
Continuing the same way gives .
The row-by-column rule is what makes the sales example work: each row of sales meets the one column of prices and produces that night’s revenue.
Frequently asked questions
How do I multiply two matrices?
Each entry of the product pairs a row of the first matrix with a column of the second: multiply matching entries and add. The first matrix needs as many columns as the second has rows.
Is matrix multiplication commutative?
No. AB and BA are usually different, and one of them may not even exist. Multiplication is still associative and distributive.
What is the identity matrix?
The square matrix with 1s on the diagonal and 0s elsewhere. Multiplying by it leaves any matrix unchanged, the way multiplying by 1 leaves a number unchanged.
How do I find the inverse of a 2×2 matrix?
For [[a, b], [c, d]], swap a and d, negate b and c, and divide everything by the determinant ad − bc.
When does a matrix have no inverse?
When its determinant is zero. The inverse formula divides by the determinant, and a zero determinant means the matrix loses information that cannot be recovered.
Standards alignment
This lesson covers the following Common Core State Standards for Mathematics.
- CCSS.MATH.CONTENT.HSN.VM.C.6Vector and Matrix Quantities(+) Use matrices to represent and manipulate data, e.g., to represent payoffs or incidence relationships in a network.
- CCSS.MATH.CONTENT.HSN.VM.C.7Vector and Matrix Quantities(+) Multiply matrices by scalars to produce new matrices, e.g., as when all of the payoffs in a game are doubled.
- CCSS.MATH.CONTENT.HSN.VM.C.8Vector and Matrix Quantities(+) Add, subtract, and multiply matrices of appropriate dimensions.
- CCSS.MATH.CONTENT.HSN.VM.C.9Vector and Matrix Quantities(+) Understand that, unlike multiplication of numbers, matrix multiplication for square matrices is not a commutative operation, but still satisfies the associative and distributive properties.
- CCSS.MATH.CONTENT.HSN.VM.C.10Vector and Matrix Quantities(+) Understand that the zero and identity matrices play a role in matrix addition and multiplication similar to the role of 0 and 1 in the real numbers. The determinant of a square matrix is nonzero if and only if the matrix has a multiplicative inverse.