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=[213−4]
This is a 2×2 matrix (2 rows, 2 columns).
Notation
- aij = element in row i, column j
- A2×3 = matrix with 2 rows, 3 columns
- Two matrices are equal if same dimensions AND all corresponding entries match
Special Matrices
| Type | Example |
|---|
| Row matrix | [123] |
| Column matrix | [45] |
| Square matrix | n×n |
| Zero matrix | All entries 0 |
| Identity | 1s on diagonal, 0s elsewhere |
➕ Matrix Addition & Scalar Multiplication
Addition (same dimensions required!)
[1324]+[5768]=[610812]
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.
📊 Matrices & Systems
Augmented Matrix
Write a system as a matrix:
{2x+3y=7x−y=1⟹[213−171]
The vertical line separates coefficients from constants.
Coefficient Matrix
A=[213−1],x=[xy],b=[71]
Ax=b
This compact notation represents the entire system!
Matrix Arithmetic 🧮
A=[41−23], B=[1−352]
A+B=[????]
1) Top-left entry = ?
2) Top-right entry = ?
3) 3A: top-left entry = ?
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 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=1naik⋅bkj
Example
[1324][5768]=[1(5)+2(7)3(5)+4(7)1(6)+2(8)3(6)+4(8)]=[19432250]
⚠️ Important Properties
NOT Commutative!
AB=BA (in general)
Example: AB=[19432250] but BA=[23313446]
Other Properties
- (AB)C=A(BC) — associative ✓
- A(B+C)=AB+AC — distributive ✓
- AI=IA=A — identity ✓
- kA⋅B=k(AB)=A⋅kB — scalar ✓
Dimension Check
A is 2×3, B is 3×4:
- AB: ✅ (2×4 result)
- BA: ❌ (4=2, can't multiply)
💡 Memory trick: inner dimensions must match, outer dimensions give result size.
🎯 Special Multiplications
Matrix × Column Vector
[231−1][xy]=[2x+y3x−y]
This is how Ax=b works!
Powers of Matrices
A2=A⋅A,A3=A⋅A⋅A
Only defined for square matrices.
The Identity Matrix
I2=[1001],I3=100010001
AI=IA=A for any compatible matrix A.
Like multiplying by 1 in regular arithmetic!
Compute 🧮
[2130][124−1]
1) Entry (1,1) = ?
2) Entry (1,2) = ?
3) Entry (2,1) = ?
Part 3: Determinants
🔢 Determinants
Part 3 of 7
2×2 Determinant
det[acbd]=ad−bc
Example
det[3124]=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 [32] and [14] 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)
detadgbehcfi=a(ei−fh)−b(di−fg)+c(dh−eg)
Example
det147258360
=1(5⋅0−6⋅8)−2(4⋅0−6⋅7)+3(4⋅8−5⋅7)
=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
x=det[acbd]det[efbd],y=det[acbd]det[acef]
Example: {3x+2y=8x−y=1
D=3(−1)−2(1)=−5
Dx=8(−1)−2(1)=−10, so x=−10/−5=2
Dy=3(1)−8(1)=−5, so y=−5/−5=1
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[6231] = ?
3) Cramer: {x+y=52x−y=1. D = ?
Part 4: Inverse Matrices
🔄 Inverse Matrices
Part 4 of 7
What Is an Inverse?
If A−1 exists, then:
A⋅A−1=A−1⋅A=I
Like division: A−1 "undoes" multiplication by A.
2×2 Inverse Formula
A=[acbd]⟹A−1=ad−bc1[d−c−ba]
Steps: swap diagonal, negate off-diagonal, divide by det.
Example
A=[3211],det=3−2=1
A−1=[1−2−13]
Verify: [3211][1−2−13]=[1001] ✓
📐 Solving Systems with Inverses
The Matrix Equation
Ax=b⟹x=A−1b
Example
{3x+y=52x+y=4
A=[3211],A−1=[1−2−13]
x=[1−2−13][54]=[12]
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)T |
| Inverse of scalar | (kA)−1=k1A−1 |
| 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−1]
Start with identity augmented, reduce left side to identity → right side becomes the inverse.
Find the Inverse 🧮
A=[4131], det=?
1) det(A) = ?
2) A−1 top-left entry = ?
3) A−1 top-right entry = ?
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 | 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)
100010001∣∣∣∗∗∗
Solution reads directly from the right side!
📝 Worked Example
Solve: {x+2y=53x+4y=11
[1324511]
Step 1: R2−3R1→R2
[102−25−4]
Step 2: −21R2→R2
[102152]
Step 3: R1−2R2→R1
[100112]
Solution: x=1,y=2 ✓
🔢 3×3 Example
⎩⎨⎧x+y+z=62x+3y+z=14x−y+2z=2
12113−11126142
R2−2R1, R3−R1:
10011−21−1162−4
R3+2R2:
1001101−1−1620
Back-substitute: z=0,y=2,x=4.
Solution: (4,2,0) ✓
Row Operations 🧮
[2143107]
After 21R1: first row becomes [1?∣?]
1) New a12 = ?
2) New a13 (constant) = ?
3) After R2−R1→R2: new a22 = ?
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)=Av
Common Transformation Matrices
| Transformation | Matrix |
|---|
| Reflect x-axis | [100−1] |
| Reflect y-axis | [−1001] |
| Reflect y=x | [0110] |
| Rotate 90° CCW | [01−10] |
| Scale by k | [k00k] |
Example: Reflect (3,2) over the x-axis
[100−1][32]=[3−2]
🔄 Rotation Matrices
General Rotation by Angle θ (CCW)
Rθ=[cosθsinθ−sinθcosθ]
Examples
90°: [01−10]
180°: [−100−1]
270° (or −90°): [0−110]
Rotate (1,0) by 60°
[cos60°sin60°−sin60°cos60°][10]=[1/23/2]
Key Property
det(Rθ)=cos2θ+sin2θ=1
Rotations preserve area!
🔗 Composing Transformations
Sequential Transforms = Matrix Product
Reflect over x-axis THEN rotate 90°:
T=R90°⋅Mx=[01−10][100−1]=[0110]
This is reflection over y=x!
Order Matters (Again!)
R90°⋅Mx=Mx⋅R90°
Just like function composition: apply rightmost first.
Dilation + Rotation
Scale by 2 then rotate 45°:
T=R45°⋅[2002]=[22−22]
Transformation Matrices Quiz 🎯
Transform Points 🧮
Reflect (5,−3) over the y-axis using [−1001]:
1) New x = ?
2) New y = ?
3) det[01−10] = ? (rotation matrix det)
Transformation Concepts 🔽
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 Ax=b directly |
| 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=[2013]:
det(A−λI)=0⟹(2−λ)(3−λ)=0
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[1324] = ?
2) [1023][11]: top entry = ?
3) Eigenvalues of [5002]: sum = ?