Matrix Operations - Complete Interactive Lesson
Part 1: Meet the Matrix
๐ข Matrix Operations
Part 1 of 5 โ Meet the Matrix
Topics in This Part
| Section |
|---|
| What Is a Matrix? |
| Dimensions and Entries |
| Equal Matrices |
๐ Key Concept: A matrix is just a rectangular grid of numbers. Before we add, subtract, or multiply them, we need a shared language for describing them โ their size and the address of every number inside.
What Is a Matrix?
A matrix (plural matrices) is a rectangular array of numbers arranged in rows and columns, written inside brackets:
- Rows run horizontally (left to right). has 2 rows.
- Columns run vertically (top to bottom). has 3 columns.
Each number inside is called an entry (or element).
๐ก Memory trick: "Rows are Right-across, Columns are Climbing-down." Always read rows first, columns second.
Dimensions and Entries
The dimensions (or order) of a matrix are written โ always rows first.
To name a single entry we use , where is the row number and is the column number:
| Entry | Location | Value |
|---|---|---|
| row 1, col 1 | ||
| row 1, col 3 | ||
| row 2, col 2 | ||
| row 2, col 3 |
๐ Key Idea: The subscript order matches the dimension order โ means row , column .
Concept Check ๐ฏ
Locate the Entries ๐งฎ
Use .
1) has how many rows? 2) has how many columns? 3) What is the value of ?
When Are Two Matrices Equal?
Two matrices are equal only if both conditions hold:
- They have the same dimensions, and
- Every matching entry is identical: for all .
Example
We match the matrices position-by-position: the top-left entries must agree () and the bottom-right entries must agree ().
โ ๏ธ A matrix can never equal a matrix, even if they contain the very same numbers. Shape comes first.
You now have the vocabulary every operation depends on. In Part 2 we start combining matrices with addition, subtraction, and scalar multiplication.
Solve for the Unknowns ๐ฝ
Given , match each entry.
Part 2: Addition, Subtraction & Scalar Multiplication
๐ข Matrix Operations
Part 2 of 5 โ Addition, Subtraction & Scalar Multiplication
๐ The Idea: Addition, subtraction, and multiplying by a single number all work entry-by-entry. These are the "easy" operations โ matrix multiplication (Part 3) is the one with a twist.
Adding and Subtracting Matrices
To add or subtract two matrices, combine corresponding entries.
โ ๏ธ You can only add or subtract matrices with the same dimensions. If the shapes differ, the operation is undefined.
Worked Example: Addition
Worked Example: Subtraction
๐ก Line the two matrices up like grids and march through them position by position. Watch the signs carefully on subtraction.
Concept Check ๐ฏ
Scalar Multiplication
A scalar is just a single number. To multiply a matrix by a scalar, multiply every entry by that scalar:
This even handles a negative scalar โ multiplying by flips every sign:
๐ Key Idea: Subtraction is really "add the opposite." , which is why both operations need matching dimensions.
Scalar & Combined Practice ๐งฎ
Let and .
1) In , what is the top-right entry? 2) In , what is the bottom-left entry? 3) In , what is the top-left entry?
Properties of Addition ๐ฝ
These operations behave just like ordinary numbers. Fill in each property (assume have matching dimensions).
Part 3: Matrix Multiplication
๐ข Matrix Operations
Part 3 of 5 โ Matrix Multiplication
๐ Why it's different: Matrix multiplication is not entry-by-entry. Instead, each output entry is a row-times-column dot product. Get the setup right and the arithmetic is easy.
When Can You Multiply? The Inner-Match Rule
To multiply , the number of columns in must equal the number of rows in .
- The inner numbers must match โ tells you if multiplication is allowed.
- The outer numbers give the size of the product.
Examples
| Allowed? | Product size | ||
|---|---|---|---|
| โ inner | |||
| โ inner | |||
| โ inner | undefined |
โ ๏ธ Because the inner numbers must match, being defined does not mean is defined. Order matters!
Can You Multiply? ๐ฝ
For each pair, decide whether the product exists and, if so, its dimensions.
How to Multiply: Row ยท Column
Entry of the product comes from row of dotted with column of : multiply matching pieces, then add.
Worked Example: times
Compute each entry by pairing a row with a column:
๐ก Say it out loud: "row 1, column 1" gives the top-left; "row 2, column 1" gives the bottom-left. The row index follows , the column index follows .
Build the Product ๐งฎ
Multiply . Find each requested entry.
1) (row 1 ยท column 1) 2) (row 1 ยท column 2) 3) (row 2 ยท column 1)
Concept Check ๐ฏ
Part 4: Special Matrices & Determinants
๐ข Matrix Operations
Part 4 of 5 โ Special Matrices & Determinants
๐ Big Payoff: A few special matrices and the determinant unlock the most useful application of all โ solving systems of equations. This part sets that up.
Special Matrices
A square matrix has the same number of rows and columns ().
Identity matrix โ has s on the main diagonal (top-left to bottom-right) and s elsewhere. It is the multiplicative "1" of matrices: .
Zero matrix โ all entries are . It is the additive "0": .
| Matrix | Role | Acts like the number |
|---|---|---|
| Identity | (multiplication) | |
| Zero | (addition) |
๐ก The identity only "does nothing" when it's the right size to multiply โ its dimension must match.
Concept Check ๐ฏ
The Determinant of a Matrix
For a square matrix, the determinant is a single number that tells you key facts about it. For a :
Multiply the main diagonal, subtract the off-diagonal.
Worked Example
Worked Example (with negatives)
โ ๏ธ Watch the signs! The formula is , so a negative or can flip the sign of the subtracted term.
๐ Why it matters: If , the matrix has no inverse and the related system has no unique solution. A nonzero determinant means the matrix is invertible.
Compute Determinants ๐งฎ
Use .
1) 2) 3)
Reading the Determinant ๐ฝ
Part 5: Mixed Practice & Mastery Check
๐ข Matrix Operations
Part 5 of 5 โ Mixed Practice & Mastery Check
You can now (1) describe matrices by size and entry, (2) add, subtract, and scale them, (3) multiply with the rowยทcolumn rule, and (4) find determinants. Let's put it all together.
Quick Reference
| Operation | Rule | Requirement |
|---|---|---|
| Add / Subtract | entry-by-entry | same dimensions |
| Scalar matrix | multiply every entry | always allowed |
| Multiply | row ยท column dot products | cols of = rows of |
| Determinant () | square matrix |
โ ๏ธ Three traps to remember: (1) add/subtract only with matching shapes, (2) matrix multiplication is not commutative, (3) for , it's โ mind the signs.
Mixed Practice ๐ฏ
One More Round ๐งฎ
Let and .
1) Bottom-right entry of 2) 3) Top-left entry of the product (row 1 ยท column 1)
Exit Quiz โ
Answer all three to finish the lesson.