Matrix Operations and Applications - Complete Interactive Lesson
Part 1: Matrix Basics: Shape, Entries, and Equality
๐ข Matrix Operations and Applications
Part 1 of 7 โ Matrix Basics: Shape, Entries, and Equality
Topics in This Part
Section
What Is a Matrix?
Dimensions and Entry Notation
When Are Two Matrices Equal?
๐ Key Concept: A matrix is a rectangular grid of numbers. Before we can add, multiply, or invert matrices, we need a precise language for their shape (rows ร columns) and their entries. That vocabulary is Part 1.
What Is a Matrix?
A matrix is a rectangular array of numbers arranged in rows and columns, written inside brackets:
A=[24โโ15โ
Rows run horizontally (this A has 2 rows).
Columns run vertically (this A has 3 columns).
The dimensions (or size) of a matrix are written rowsรcolumns. Here A is a 2ร3 matrix.
๐ Order matters: Always say rows first, columns second. A 2ร3 matrix is not the same shape as a 3ร2 matrix.
Special shapes
Name
Shape
Example
Row matrix
1รn
[3โ
Concept Check ๐ฏ
Entry Notation: aijโ
We name a matrix with a capital letter and refer to a single number inside it as an entry (or element). The entry in row i, column j of matrix A is written
Locate the Entries ๐งฎ
Use the matrix
B=[70โโ2
When Are Two Matrices Equal?
Two matrices are equal when both of these hold:
They have the same dimensions, and
Every corresponding entry is equal: aijโ=bijโ for all .
Concept Check ๐ฏ
Part 2: Addition, Subtraction, and Scalar Multiplication
๐ข Matrix Operations and Applications
Part 2 of 7 โ Addition, Subtraction, and Scalar Multiplication
๐ The Idea: Adding, subtracting, and scaling matrices all happen entry-by-entry. These are the easy operations โ the only rule to watch is that addition and subtraction require matching dimensions.
Adding and Subtracting Matrices
To add (or subtract) two matrices of the same size, add (or subtract) corresponding entries:
Part 3: Matrix Multiplication
๐ข Matrix Operations and Applications
Part 3 of 7 โ Matrix Multiplication
๐ The Big Idea: Matrix multiplication is not entry-by-entry. Each entry of the product is a row dotted with a column. This row-by-column rule is the engine behind transformations, systems, and applications later in the lesson.
The Row-by-Column Rule
To find the entry in row i, column j of the product AB, take row i of , , multiply matching numbers, and add.
Part 4: The Identity Matrix and Inverses
๐ข Matrix Operations and Applications
Part 4 of 7 โ The Identity Matrix and Inverses
๐ The Idea: The identity matrixI plays the role of "1" for matrices, and an inverseAโ1 plays the role of "." Inverses are the key to โ and to solving systems in Part 6.
Part 5: Determinants
๐ข Matrix Operations and Applications
Part 5 of 7 โ Determinants
๐ The Idea: The determinant is a single number that captures a square matrix's "size." It tells you instantly whether a matrix is invertible, and it powers a shortcut for solving systems (Cramer's Rule).
Determinant of a 2ร2 Matrix
For A=[, the determinant is
Part 6: Solving Systems with Matrices
๐ข Matrix Operations and Applications
Part 6 of 7 โ Solving Systems with Matrices
๐ The Payoff: A linear system can be packed into a single equation AX=B. Multiplying by Aโ1 solves it in one shot: .
Part 7: Applications, Mixed Practice & Exit Quiz
๐ข Matrix Operations and Applications
Part 7 of 7 โ Applications, Mixed Practice & Exit Quiz
You can now describe matrices, add and scale them, multiply them, invert them, take determinants, and solve systems. This final part shows two real applications โ transformations and networks โ then a mastery check.
Application 1: Transformations of Points
Multiplying a point [xyโ] by a matrix moves it in the plane. A few famous transformation matrices:
03โ
]
7
โ
]
Column matrix
mร1
[37โ]
Square matrix
nรn
[13โ24โ]
aijโ
The first subscript is the row; the second is the column.
Example
A=[24โโ15โ03โ]
a11โ=2 (row 1, column 1)
a13โ=0 (row 1, column 3)
a23โ=3 (row 2, column 3)
a21โ=4 (row 2, column 1)
๐ก Read the subscripts like coordinates, but (row, column) instead of (x,y).
6
โ
9โ4โ
]
1)b12โ=?2)b21โ=?3)b23โ=?
i,j
Example
[xโ1โ3yโ]=[5โ1โ38โ]
Matching entry-by-entry forces x=5 and y=8.
โ ๏ธ A 2ร3 matrix can never equal a 3ร2 matrix, even if they contain the same numbers โ the shapes differ. Equality of matrices is a powerful tool: it turns one matrix equation into a system of equations, one per entry.
[acโbdโ]+[egโfhโ]=[a+ec+gโb+fd+hโ]
Worked Example
[20โโ15โ]+[36โ4โ2โ]=[56โ33โ]
[71โ80โ]โ[24โ5โ3โ]=[5โ3โ33โ]
โ ๏ธ Dimensions must match. You cannot add a 2ร2 matrix to a 2ร3 matrix โ the sum is undefined.
Scalar Multiplication
A scalar is just a single number. To multiply a matrix by a scalar k, multiply every entry by k:
k[acโbdโ]=[kakcโkbkdโ]
Worked Example
3[20โ
This lets us combine operations. For example, 2AโB means "double every entry of A, then subtract B entry-by-entry."
Concept Check ๐ฏ
Compute 2AโB ๐งฎ
Let A=[30โโ12โ] and B=[1โ2โ45โ].
Compute 2AโB and enter its entries reading left to right, top to bottom.
The identity matrixI is a square matrix with 1's on the main diagonal and 0's everywhere else:
I2โ=[10โ01โ],I
It behaves like the number 1: for any compatible matrix A,
AI=IA=A
Quick check
[7โ3
Multiplying by I leaves a matrix unchanged.
What Is an Inverse?
The inverse of a square matrix A, written Aโ1, is the matrix that "undoes" A:
AAโ1=Aโ1A=I
For a 2ร2 matrix there is a clean formula. If
A=[a
Three moves to remember:
Swapa and d (the diagonal entries).
Negateb and c (the off-diagonal entries).
Divide the whole thing by adโbc.
โ ๏ธ The number adโbc is the determinant (Part 5). If adโbc=0, you would be dividing by zero โ the matrix has no inverse and is called singular.
For a 3ร3 matrix we expand along the top row. Each top entry multiplies the determinant of the 2ร2 matrix left after deleting that entry's row and column, with a + โ + sign pattern:
detโadgโbehโ
Worked Example
detโ101
=1(4โ 6โ5โ 0)โ2(0โ 6โ
=1(24)โ2(โ5)+3(โ4)=24+10โ12=
๐ก Watch the middle sign: the b-term is subtracted. The pattern is +ย โย +.
Concept Check ๐ฏ
Expand a 3ร3 ๐งฎ
Compute, expanding along the top row:
detโ132โ2โ10โ041โโ=?
X
=
Aโ1B
Writing a System as AX=B
The system
{2x+3y=8x+2y=5โ
becomes the matrix equation
A
A is the coefficient matrix (the numbers in front of x and y).
X is the variable matrix.
B is the constant matrix (right-hand sides).
๐ก Multiplying A by X reproduces the left sides of both equations โ that is why this encoding works.
Solving with the Inverse: X=Aโ1B
Starting from AX=B, multiply both sides on the left by Aโ1:
Aโ1AX=Aโ1BโI
Worked Example
For A=[21โ32โ], , so
Aโ1=[2โ1โ
Then
X=A
So x=1, y=2.
โ Check:2(1)+3(2)=8 โ and 1+2(2)=5 โ.
Walk Through the Solve ๐ฝ
You are solving {x+y=52x+3y=13โ with A=[12โ13โ].
Matrices organize real data and let you combine it with multiplication.
Cost example. A store stocks two products with a price vector and a quantity vector. Suppose Store A sold [4โ6โ] units (product 1, product 2) at prices [53โ] dollars:
[4โ6โ][
Total revenue =38, i.e. $38. A single (1ร2)(2ร1) product summed everything at once.
๐ก The same idea scales up: an mรn "sales" matrix times an nร1 "price" vector gives total revenue per store in one multiplication.
Application Check ๐ฏ
Mixed Mastery ๐งฎ
1)det[54โ23โ]=?2) Rotating (0,2) by 90ยฐ CCW with [01โโ10โ] gives the point (?,ย ?). Enter the x-coordinate, then the y-coordinate.