Matrices
An m×n matrix has m rows and n columns. The product AB is defined when the columns of A equal the rows of B; entry (i,j) is row i of A dotted with column j of B. This rule composes linear operations, so order matters and multiplication is usually not commutative.
Before you begin
Check: (2,−1)·(3,4)=2·3−1·4=2. Matrix entries use the same row-by-column sum.
What you will learn
- State matrix dimensions
- Compute a row-column product
- Interpret a matrix acting on a vector
Understand the idea
An m×n matrix has m rows and n columns. The product AB is defined when the columns of A equal the rows of B; entry (i,j) is row i of A dotted with column j of B. This rule composes linear operations, so order matters and multiplication is usually not commutative.
Worked example 1
Let A=[[1,2],[3,4]] and v=[5,−1]. Find Av.
- The dimensions are (2×2)(2×1), so the result has two entries.
- First entry: 1·5+2(−1)=3; second: 3·5+4(−1)=11.
- Av=[3,11]; each output combines both inputs.
Worked example 2
For A=[[1,1],[0,1]] and B=[[2,0],[0,3]], compare AB and BA.
- Row-column multiplication gives AB=[[2,3],[0,3]].
- Reversing the order gives BA=[[2,2],[0,3]].
- The upper-right entries differ; a shear followed by scaling need not equal scaling followed by a shear.
Diagnose an error
Can a 2×3 matrix multiply a 2×2 matrix on its right?
Compare your reasoning
Can a 2×3 matrix multiply a 2×2 matrix on its right?
- The inner dimensions would be 3 and 2, which do not match.
- That product is undefined; reversing gives (2×2)(2×3), a valid 2×3 result.
Independent practice
Submit your answer in the interactive lesson to unlock the worked solution. Type your reasoning or build it with clickable tiles.
Practice 1
Find the size of AB when A is 3×2 and B is 2×4.
Solution locked until submission.
Practice 2
Compute [[2,−1],[0,3]][4,2].
Solution locked until submission.
Practice 3
Why does multiplying by I=[[1,0],[0,1]] preserve any vector [x,y]?
Solution locked until submission.
Practice 4
A shop sells 3 pens and 2 notebooks. Prices are 2 and 5 units. Represent and find total revenue.
Solution locked until submission.
Connect and reflect
Check dimensions before arithmetic. Explain what each row and column measures when using a matrix model.
Original Cookmath explanations and exercises. Scope reference: OpenStax Precalculus 2e · scope reference; original Cookmath lesson. Cookmath units are smaller study groups, not publisher chapter counts.