Skip to content Matrices - Interactive Lesson | Study MondoMatrices - Complete Interactive Lesson
Part 1: Matrix Operations
๐ Introduction to Matrices
Part 1 of 7
What Is a Matrix?
A matrix is a rectangular array of numbers arranged in rows and columns.
A=[21โ3โ4โ]
This is a 2ร2 matrix (2 rows, 2 columns).
Notation
- aijโ = element in row i, column j
- A = matrix with 2 rows, 3 columns
Special Matrices
| Type | Example |
|---|
| Row matrix | [1โ2โ3โ |
โ Matrix Addition & Scalar Multiplication
Addition (same dimensions required!)
[1
๐ Matrices & Systems
Augmented Matrix
Write a system as a matrix:
{2x+3y
Matrix Arithmetic ๐งฎ
A=[41โโ23โ,
Part 2: Matrix Multiplication
โ๏ธ Matrix Multiplication
Part 2 of 7
The Rule: Row ร Column
To multiply Aโ
B:
- A must have same number of columns as B has rows
- Result dimensions: (rows of A) ร (columns of )
Part 3: Determinants
๐ข Determinants
Part 3 of 7
2ร2 Determinant
det[acโbd
Part 4: Inverse Matrices
๐ Inverse Matrices
Part 4 of 7
What Is an Inverse?
If Aโ1 exists, then:
Aโ
Aโ1
Part 5: Systems with Matrices
๐ Row Reduction & Gaussian Elimination
Part 5 of 7
Elementary Row Operations
Three legal moves (they don't change solutions):
| Operation | Notation | Example |
|---|
| Swap rows | RiโโRjโ |
Part 6: Problem-Solving Workshop
๐ Matrix Transformations
Part 6 of 7
Matrices as Transformations
Every 2ร2 matrix defines a linear transformation of the plane.
T(v
Part 7: Review & Applications
๐ Matrices โ Full Synthesis
Part 7 of 7
Master Reference
| Tool | When to Use |
|---|
| Addition/Scalar mult | Combine or scale data |
| Multiplication AB | Compose transformations, solve systems |
| Determinant | Check invertibility, find area |
| Inverse Aโ1 | Solve directly |
2ร3
โ
Two matrices are equal if same dimensions AND all corresponding entries match
]
| Column matrix | [45โ] |
| Square matrix | nรn |
| Identity | 1s on diagonal, 0s elsewhere |
3
โ
24โ
]
+
[57โ68โ]=
[610โ812โ]
Add corresponding entries.
Scalar Multiplication
3[20โโ14โ]=[60โโ312โ]
Multiply every entry by the scalar.
Properties
- A+B=B+A (commutative)
- (A+B)+C=A+(B+C) (associative)
- k(A+B)=kA+kB (distributive)
- A+O=A (additive identity)
๐ก You CANNOT add matrices of different dimensions.
=
7
xโy=1
โ
โน
[21โ3โ1โ71โ]
The vertical line separates coefficients from constants.
Coefficient Matrix
A=[21โ3โ1โ],x=[xyโ],b=[71โ]
Ax=b
This compact notation represents the entire system!
]
B=[1โ3โ52โ] A+B=[??โ??โ]
3) 3A: top-left entry = ?
B
Amรnโโ
Bnรpโ=Cmรpโ
How to Compute Entry cijโ
Dot product of row i of A with column j of B:
cijโ=โk=1nโaikโโ
bkjโ
Example
[13โ24โ][57โ6
โ ๏ธ Important Properties
NOT Commutative!
AB๎ =BAย (inย general)
Example: AB=[1943โ2250โ] but BA=[2331โ3446โ]
Other Properties
- (AB)C=A(BC) โ associative โ
- A(B+C)=AB+ โ distributive โ
Dimension Check
A is 2ร3, B is 3ร4:
- AB: โ
(2ร4 result)
- BA: โ (4๎ =, can't multiply)
๐ก Memory trick: inner dimensions must match, outer dimensions give result size.
๐ฏ Special Multiplications
Matrix ร Column Vector
[23โ1โ1โ][xyโ]=[2x+y3xโyโ]
This is how Ax=b works!
Powers of Matrices
A2=Aโ
A,A3=Aโ
Aโ
Only defined for square matrices.
The Identity Matrix
I2โ
AI=IA=A for any compatible matrix A.
Like multiplying by 1 in regular arithmetic!
Compute ๐งฎ
[21โ30โ][12โ4โ1โ]
1) Entry (1,1) = ?
2) Entry (1,2) = ?
3) Entry (2,1) = ?
Multiplication Rules ๐ฝ
โ
]
=
adโ
bc
Example
det[31โ24โ]=3(4)โ2(1)=10
What Does It Mean?
- det๎ =0: matrix is invertible, system has unique solution
- det=0: matrix is singular, system is dependent or inconsistent
- โฃdetโฃ = area of parallelogram formed by row/column vectors
Geometric Interpretation
Rows [3โ2โ] and [1โ4โ] form a parallelogram with area =โฃ10โฃ=10.
If det = 0, the vectors are parallel (linearly dependent).
๐ 3ร3 Determinant
Expansion Along Row 1 (Cofactor Expansion)
detโadgโbehโcfiโโ=a(eiโfh)โb(diโfg)+c(dhโeg)
Example
detโ147
=1(5โ
0โ6โ
8)โ2(4โ
0โ
=1(โ48)โ2(โ42)+3(โ3)
=โ48+84โ9=27
Sign Pattern for Cofactors
โ+โ+
Checkerboard pattern starting with + at (1,1).
๐ Cramer's Rule
For 2ร2 Systems
{ax+by=ecx+dy=fโ
Example: {3x+2y=8xโy=1โ
D=3(โ1)โ2(1)=โ5
Dxโ=8(โ1)โ2(1)=โ10, so
Dyโ=3(1)โ8(1)=โ5, so
Solution: (2,1)
๐ก Replace the column of the variable you're solving for with the constants column.
Compute Determinants ๐งฎ
1) det[42โโ13โ] = ?
2) det[62โ31โ] = ?
3) Cramer: {x+y=52xโy=1โ. = ?
Determinant Concepts ๐ฝ
=
Aโ1โ
A=
I
Like division: Aโ1 "undoes" multiplication by A.
2ร2 Inverse Formula
A=[acโbdโ]โนAโ1=adโbc1โ[dโcโโbaโ
Steps: swap diagonal, negate off-diagonal, divide by det.
Example
A=[32โ11โ],det=3โ2=1
Aโ1=[1โ2โโ13โ]
Verify: [32โ11โ][1โ2โโ13โ]=[10โ01โ] โ
๐ Solving Systems with Inverses
The Matrix Equation
Ax=bโนx=Aโ1b
Example
{3x+y=52x+y=4โ
A=[32โ
x
Solution: x=1,y=2.
When Does Aโ1 NOT Exist?
When det(A)=0 (singular matrix). No unique solution exists.
๐ Properties of Inverses
Key Properties
| Property | Formula |
|---|
| Inverse of inverse | (Aโ1)โ1=A |
| Inverse of product | (AB)โ1=Bโ1Aโ1 |
| Inverse of transpose | (AT)โ1=(Aโ1) |
| Inverse of scalar | (kA)โ1=k1โA |
| Det of inverse | det(Aโ1)=det(A)1โ |
The "Socks and Shoes" Rule
(AB)โ1=Bโ1Aโ1
Like taking off socks and shoes: reverse order!
Finding Inverse by Row Reduction
[AโฃI]rowย opsโ[IโฃA
Start with identity augmented, reduce left side to identity โ right side becomes the inverse.
Find the Inverse ๐งฎ
A=[41โ31โ], det=?
1) det(A) = ?
2) Aโ1 top-left entry = ?
3) Aโ1 top-right entry = ?
| R1โโR2โ |
| Scale row | kRiโโRiโ | 2R1โโR1โ |
| Add multiple | Riโ+kRjโโRiโ | R2โโ3R1โโR2โ |
Goal: Row Echelon Form (REF)
โ100โโ10โโโ1โโฃโฃโฃโโโโโโ
Leading 1s form a staircase pattern.
Reduced Row Echelon Form (RREF)
โ100โ010โ001โโฃโฃโฃโโโโโโ
Solution reads directly from the right side!
๐ Worked Example
Solve: {x+2y=53x+4y=11โ
[13โ24โ511โ]
Step 1: R2โโ3R1โโR2โ
[10โ2โ2โ
Step 2: โ21โR2โโR
[10โ21โ
Step 3: R1โโ2R2โโR1โ
[10โ01โ
Solution: x=1,y=2 โ
๐ข 3ร3 Example
โฉโจโงโx+y+z=62x+3y+z=14xโy+2z=2โ
โ1
R2โโ2R1โ, R:
โ
R3โ+2R2โ:
โ1
Back-substitute: z=0,y=2,x=4.
Solution: (4,2,0) โ
Row Operations ๐งฎ
[21โ43โ107โ]
After 21โR1โ: first row becomes
1) New a12โ = ?
2) New a13โ (constant) = ?
3) After R2โโR1โโR2โ: new = ?
)
=
Common Transformation Matrices
| Transformation | Matrix |
|---|
| Reflect x-axis | [10โ0โ1โ] |
| Reflect y-axis | [โ10โ01 |
| Reflect y=x | [01โ |
| Rotate 90ยฐ CCW | [01โโ10โ |
| Scale by k | [k0โ0kโ |
Example: Reflect (3,2) over the x-axis
[10โ0โ1โ][32โ]=[3โ2โ]
๐ Rotation Matrices
General Rotation by Angle ฮธ (CCW)
Rฮธโ=[cosฮธsinฮธโโsinฮธcosฮธโ]
Examples
90ยฐ: [01โโ10โ
180ยฐ: [โ10โ0โ1
270ยฐ (or โ90ยฐ): [0โ1โ
Rotate (1,0) by 60ยฐ
[cos
Key Property
det(Rฮธโ)=cos2ฮธ+sin
Rotations preserve area!
๐ Composing Transformations
Sequential Transforms = Matrix Product
Reflect over x-axis THEN rotate 90ยฐ:
T=R90ยฐโโ
Mxโ=[01โ
This is reflection over y=x!
Order Matters (Again!)
R90ยฐโโ
Mxโ๎ =
Just like function composition: apply rightmost first.
Dilation + Rotation
Scale by 2 then rotate 45ยฐ:
T=R45ยฐโโ
Transformation Matrices Quiz ๐ฏ
Transform Points ๐งฎ
Reflect (5,โ3) over the y-axis using [โ10โ01โ]:
1) New x = ?
2) New y = ?
3) det[01โโ10โ] = ? (rotation matrix det)
Transformation Concepts ๐ฝ
| Cramer's Rule | Quick solve small systems |
| Gaussian elimination | Systematic solve of any system |
| Transformation matrices | Geometry (rotate, reflect, scale) |
Invertibility Checklist
A matrix is invertible when:
- det(A)๎ =0
- Row reduces to identity
- Ax=b has a unique solution for every b
- Columns are linearly independent
- Zero is NOT an eigenvalue
๐ Method Comparison: Solving Systems
Small Systems (2ร2)
- Fastest: Cramer's Rule or inverse formula
- x=Dxโ/D, y=Dyโ/D
Medium Systems (3ร3)
- Best: Gaussian elimination
- Systematic, always works, handles special cases
Large Systems
- Standard: RREF (computer-assisted)
- Technology: calculators, MATLAB, Python
When Each Method Fails
| Method | Fails When |
|---|
| Cramer's | det=0 |
| Inverse | det=0 |
| Gauss | Never fails โ reveals no solution or โ solutions |
๐ก Gaussian elimination is the most robust method.
๐ Linear Algebra Preview
Eigenvalues & Eigenvectors
Av=ฮปv โ special vectors that are only scaled (not rotated).
For A=[20โ13โ]:
det(AโฮปI)=0โน(2โฮป)(3โฮป)=
Eigenvalues: ฮป=2,3.
Applications of Matrices
- Computer Graphics: transformations for 3D rendering
- Machine Learning: data processing, neural networks
- Economics: input-output models
- Physics: quantum mechanics states
- Cryptography: encoding/decoding messages
From Precalc to Linear Algebra
Precalc matrices โ Linear algebra โ Abstract algebra โ Modern math!
Final Calculations ๐งฎ
1) det[13โ24โ] = ?
2) [10โ23โ]: top entry = ?
3) Eigenvalues of [50โ02โ]: sum = ?
8
โ
]
=
[1(5)+2(7)3(5)+4(7)โ1(6)+2(8)3(6)+4(8)โ]=
[1943โ2250โ]
AC
AI=IA=A โ identity โ kAโ
B=k(AB)=Aโ
kB โ scalar โ 2
A
=
[10โ01โ],I3โ=
โ
258โ
360โ
6โ
7)+
3(4โ
8โ
5โ
7)
โ
โ+โโ
+โ+โ
x=det[acโbdโ]det[efโbdโ]โ,y=det[acโbdโ]de
x=
โ10/โ
5=
2
y=
โ5/โ
5=
1
D
]
11โ
]
,
Aโ1
=
[1โ2โโ13โ]
=
[1โ2โโ13โ][54โ]=
[12โ]
T
โ1
โ1
]
5โ4โ
]
2
โ
52โ
]
12โ
]
2
1
โ
13โ1โ
112โ
6142โ
3
โ
โ
R1โ
1
0
0
โ
11โ2โ
1โ11โ
62โ4โ
0
0
โ
110โ
1โ1โ1โ
620โ
[1โ?โโฃโ?โ]
โ
]
1
0
โ
]
]
]
]
โ
]
10โ
]
60ยฐ
sin60ยฐ
โ
โsin60ยฐcos60ยฐโ
]
[10โ]
=
2
ฮธ
=
1
โ10โ
]
[10โ0โ1โ]
=
[01โ10โ]
Mxโ
โ
R90ยฐโ
[20โ02โ]=
[2โ2โโโ2โ2โโ] 0
[11โ]
t
[acโefโ]
โ