Matrices let us store a whole table of numbers in brackets and calculate with the entire grid at once.
1
Dimensions, addition, and scalars
Each entry's position is given by its row (across) and column (up and down), and we write a matrix's dimensions as rows×columns. Let's see when two matrices can be added or subtracted, how a number out front scales a matrix, and how to solve an equation like
2[x134]−[106y]=[7205]
for x.
Dimensions, addition, and scalars
Addition and subtraction combine matching positions, so the two matrices must have the exact same dimensions. Otherwise the expression is undefined. Multiplying by a plain number out front multiplies every entry inside:
scalar3[10651284]=[301815362412]
Now let's solve the equation from the start:
2[x134]−[106y]=[7205]
Text solution
Pull out the top-left entriesBecause scaling and subtracting never mix different spots, build a single equation from row 1, column 1 of each matrix:
2x−1=7
Solve for xAdd 1 to both sides and divide by 2:
2xx=8=4
2
Multiplying matrices
Adding matrices pairs matching spots, so it's natural to wonder why multiplying two matrices like
[2134][5216]
does something completely different, pairing each row on the left with each column on the right.
Multiplying matrices
Sliding the second matrix up and to the right, so it sits above the product, shows where every entry lands:
Text solution
Pair each row on the left with each column on the rightAt each crossing, multiply matching positions in order and add the products:
Multiply and add at each spotSimplify the four entries to complete the 2×2 product:
=[10+65+82+181+24]=[16132025]
Writing the dimensions side by side shows both whether multiplication is allowed and what size comes out:
(2×must match3)⋅(3×2)⟶product size2×2
When a 2×3 matrix on the left multiplies an r×c matrix on the right, each row on the left has 3 entries and each column on the right has r entries. When r=3, they pair up and give a 2×c product. For any other value of r, some entries are left without partners, so the product is undefined.
The top matrix needs exactly 3 rows to match the 3 columns on the left, and then the product gets its rows from the left matrix and its columns from the top one.
3
Order of multiplication and squaring a matrix
Because the left matrix supplies the rows and the right matrix supplies the columns, swapping their order changes the product. We also need to see what squaring a matrix means in an expression like
[2310]2.
Order of multiplication and squaring a matrix
Flipping the order of two matrices changes which numbers pair up and can even change the dimensions of the answer, so A⋅B=B⋅A in general:
So the bottom-right entry becomes 3, even though the original matrix had 0 in that corner.
4
Inverses and the determinant
A 2×2 matrix can hold the coefficients of a linear system and act as a transformation on [xy]. Its inverseA−1 undoes that transformation, so multiplying A−1 by A gives [1001]. Building that inverse uses a single number called the determinant, written with straight vertical bars as in
34−25.
Inverses and the determinant
3x+2y=16
5x+4y=28
For any 2×2 matrix A=[acbd], the determinant multiplies the main diagonal and subtracts the other diagonal:
det(A)=acbd=ad−bc
Straight vertical bars around a grid of numbers mean compute ad−bc, not absolute value. Don't turn negative entries inside (or a negative answer) positive.
Text solution
Subtract the other diagonal's product from the main diagonal's productKeep parentheses around negative entries so you don't drop a minus sign:
34−25=3(5)−(−2)(4)
Simplify the differenceSubtracting −8 adds 8:
=15−(−8)=23
5
When a matrix has no inverse
Because building the inverse of a 2×2 matrix divides by ad−bc, a matrix whose determinant is 0 can't be undone. That lets us find the value of k for which
[k346]
has no inverse (also called singular).
When a matrix has no inverse
determinant
acbd=ad−bc
ad−bc=0→?
Text solution
Set the determinant equal to zeroA 2×2 matrix has no inverse exactly when ad−bc=0:
k(6)−4(3)=0
Solve for kSimplify the products and divide by 6:
6k−126kk=0=12=2
At k=2, the matrix is [2346], whose bottom row is 1.5 times its top row. So it flattens the whole plane onto a single line. Many different inputs land on the same output, and no inverse can send each output back to just one input.
In the family of matrices [362k], the transformed grid fills the xy-plane for every value of k except k=4. There the bottom row becomes double the top row, the determinant 3k−12 equals 0, and every input point collapses onto the line y=2x.
This matrix spreads the grid across the whole plane, except when k is 4: then the bottom row is double the top row, the determinant is zero, and everything flattens onto one line.
Key concepts
Start every matrix question by checking the operation and the dimensions (rows×columns, as in the 2×3 matrix [10651284]). When an expression only adds, subtracts, or multiplies by a scalar out front, do not cross rows with columns or write out the whole grid. Addition and subtraction require identical dimensions, and each spot stays independent, so in 2[x134]−[106y]=[7205] the top-left corner alone gives 2x−1=7.
When multiplying two matrices, write their sizes side by side, as in (2×3)⋅(3×2)→2×2. The two inside numbers must match for the product to exist, and the two outside numbers give its size. Keep the left-to-right order, since AB=BA. When you need just one entry, pair only its row and column. Rewrite any square A2 as A⋅A, like [2310][2310], and never square the entries one by one. For a 2×2 matrix [acbd], straight vertical bars acbd ask for the determinant ad−bc. Setting ad−bc=0 tells you when the matrix is singular (has no inverse).
6
Practice
1
If 3[4−1x2]−2[5y−31]=[2−9184], what is the value of x?
Which single position contains x, and what scalars multiply that spot in the two matrices on the left?
Look only at row 1, column 2 (the top-right spot) of each matrix, ignoring y and the other three entries:
3(x)−2(−3)=18
Watch the two minus signs in −2(−3). Writing −6 instead of +6 gives 3x−6=18 and leads to the wrong answer 8 (choice D):
3x+63xx=18=12=4
Answer: B
2
Matrix A has dimensions 2×3, matrix B has dimensions 3×1, and matrix C has dimensions 2×1. Which of the following matrix expressions is defined?
Write the dimensions side by side for each product first. What size matrix comes out of AB, and how does that compare to C?
Addition requires identical dimensions, so A+B tries to combine (2×3)+(3×1) and is undefined. Spotting the matching inside 3s and calling the sum defined uses the multiplication rule, not the addition rule (choice A). For BA and BC, write the dimensions side by side:
BABC:(3×1)⋅(2×3):(3×1)⋅(2×1)
In both, the inside numbers are 1 and 2, so neither product is defined (matching the outside 3s in BA gives the trap choice B). Now check AB:
(2×3)⋅(3×1)⟶2×1
Because AB has dimensions 2×1 and C also has dimensions 2×1, the sum AB+C adds two 2×1 matrices and is defined.
Answer: C
3
A theater sold 40 child, 100 adult, and 30 senior tickets on Friday, and 60 child, 150 adult, and 50 senior tickets on Saturday. Matinee prices are $8 for a child, $12 for an adult, and $10 for a senior; evening prices are $10 for a child, $16 for an adult, and $12 for a senior. Which matrix product gives a 2×2 matrix whose rows represent Friday and Saturday and whose columns represent matinee and evening ticket revenue?
The product gets its rows from the left matrix and its columns from the right matrix. So what must the rows on the left and the columns on the right represent?
To get a 2×2 product with Friday and Saturday as the rows, the left matrix must be (2 days×3 ticket types):
[40601001503050]
To pair up the 3 ticket types and leave matinee and evening as the 2 columns of the product, the right matrix must be (3 ticket types×2 showtimes), with matinee prices down column 1 and evening prices down column 2. Putting matinee and evening across the rows instead creates a (2×3)⋅(2×3) product that isn't even defined (choice B). Putting the showtimes in the left matrix makes matinee and evening the rows instead of the columns (choice D):
2×3[40601001503050]3×281210101612
Answer: A
4
For the matrices P=243−10−5 and Q=[14−3−2−26], what is the entry in row 3, column 2 of the product PQ?
Which single row of P and which single column of Q meet at row 3, column 2?
You only need one row-and-column pair: row 3 of P,[3−5], with column 2 of Q,[−3−2]. Mixing up the two numbers and using row 2 of P with column 3 of Q gives 4(−2)+0(6)=−8 (choice B):
Row 3, Column 2=3(−3)+(−5)(−2)
Watch the signs: (−5)(−2)=+10. Writing −10 gives −9−10=−19 (choice A):
=−9+10=1
Answer: C
5
If A=[31−20], what is A2?
How should you rewrite A2 before multiplying anything?
Write A2 as A⋅A side by side. Squaring each entry inside gives the trap matrix [9140] (choice A):
A2=[31−20][31−20]
Multiply each row of the first copy by each column of the second copy:
Straight vertical bars call for ad−bc. What is the sign of (−3)(−2) before you subtract it?
Multiply the main diagonal and subtract the product of the other diagonal. The vertical bars mean determinant, not absolute value, so don't make the entries or the final result positive to get 14 or 26 (choices C and D):
−4−2−35=(−4)(5)−(−3)(−2)
Since (−3)(−2)=+6, you subtract 6. Treating −(−3)(−2) as +6 gives −20+6=−14 (choice B):
=−20−6=−26
Answer: A
7
For what values of k does the matrix [k23k−5] have no inverse?
What equation involving the two diagonals must hold when a 2×2 matrix has no inverse?
Set the determinant ad−bc equal to 0. Using ad+bc=0 instead gives k2−5k+6=0 and leads to 2 and 3 (choice D):
k(k−5)−(3)(2)=0
Expand and factor the quadratic:
k2−5k−6(k−6)(k+1)=0=0
Set each factor equal to 0. Each answer has the opposite sign of the number in its factor, so reading −6 and 1 straight off the factors gives choice A:
k=6ork=−1
On the online test, once you write k(k−5)−6=0, you can also graph `y=x(x-5)-6` in Desmos and read the x-intercepts at `(-1, 0)` and `(6, 0)`. They're whole numbers, so the reading is exact. Factoring by hand is faster on the test, but the graph is a quick check on the signs.