Matrix Fundamentals

Matrix Definition

A matrix is a rectangular array of numbers arranged in rows and columns.

  • An m × n matrix has m rows and n columns
  • Square matrix: m = n (same number of rows and columns)
  • Elements: denoted as aᵢⱼ where i = row, j = column

Special Matrices

  • Identity Matrix (I): Square matrix with 1s on diagonal, 0s elsewhere
  • Zero Matrix: All elements are 0
  • Diagonal Matrix: Non-zero elements only on main diagonal
  • Upper/Lower Triangular: Non-zero elements only above/below main diagonal

Determinants

For 2×2 Matrices

For matrix A = [a b; c d]: det(A) = ad - bc

For 3×3 Matrices

For matrix A = [a b c; d e f; g h i]: det(A) = a(ei - fh) - b(di - fg) + c(dh - eg) (remember the minus in the middle!)

Key Determinant Properties

  1. det(AB) = det(A) × det(B)
  2. det(Aᵀ) = det(A) (transpose doesn’t change determinant)
  3. det(kA) = kⁿdet(A) where n is matrix size and k is scalar
  4. If any row/column is all zeros → det(A) = 0
  5. Swapping two rows/columns → det changes sign
  6. Adding multiple of one row to another → det unchanged

Matrix Inverses

Invertible (Non-singular) Matrix Conditions

A matrix A is invertible if and only if:

  1. A is square (m × n where m = n)
  2. det(A) ≠ 0
  3. All rows/columns are linearly independent
  4. A⁻¹ exists such that AA⁻¹ = A⁻¹A = I

Singular (Non-invertible) Matrix

A matrix is singular if:

  1. Not square (different number of rows and columns)
  2. det(A) = 0 (even if square)
  3. Has linearly dependent rows/columns

Finding 2×2 Inverse

For A = [a b; c d], if det(A) ≠ 0: A⁻¹ = (1/det(A)) × [d -b; -c a]

Matrix Operations

Addition/Subtraction

  • Only possible if matrices have same dimensions
  • Add/subtract corresponding elements

Multiplication

  • AB exists if columns of A = rows of B
  • If A is m×n and B is n×p, then AB is m×p
  • Not commutative: AB ≠ BA (usually)
  • Associative: (AB)C = A(BC)
  • Distributive: A(B + C) = AB + AC

Transpose

  • Aᵀ: flip matrix over main diagonal
  • (AB)ᵀ = BᵀAᵀ (reverse order!)
  • (Aᵀ)ᵀ = A

Critical Rules for Problem Solving

Inverse Existence Checklist

  1. Is the matrix square? If no → not invertible
  2. Calculate determinant → if det = 0, not invertible
  3. If det ≠ 0 → matrix is invertible

Common Mistakes to Avoid

  • Non-square matrices: Cannot be invertible (most common error)
  • Determinant calculation errors: Double-check arithmetic
  • Confusing singular vs non-singular:
    • Singular = NOT invertible (det = 0)
    • Non-singular = invertible (det ≠ 0)

Quick Determinant Checks

  • Row/column of zeros → det = 0
  • Two identical rows/columns → det = 0
  • One row is multiple of another → det = 0

Practice Framework (Feynman Method)

Level 1: Can you explain to a child?

“A matrix is like a box of numbers. Some boxes can be ‘undone’ (have an inverse), others can’t.”

Level 2: Can you identify the patterns?

  • Square + non-zero determinant = invertible
  • Non-square OR zero determinant = not invertible

Level 3: Can you solve problems quickly?

  1. Check if square
  2. Calculate determinant
  3. Apply rules

Level 4: Can you teach it back?

Explain why these conditions matter and how they connect to linear independence and system solvability.

Quick Reference Formulas

Concept2×2 FormulaKey Rule
Determinantad - bcIf det = 0, not invertible
Inverse(1/det) × [d -b; -c a]Only exists if det ≠ 0
Multiplication(AB)ᵢⱼ = Σ(AᵢₖBₖⱼ)Columns of A = Rows of B

Memory Aids

  • “Square and Detective”: Must be square AND detective (determinant) ≠ 0
  • “SODA”: Square → Only → Determinant → Acceptable (non-zero)
  • “Non-square = Non-starter”: If not square, stop immediately - not invertible