Matrices 🔢
~ rows, columns & a whole lot of number-magic ~
📊 📐 🧮 ➕ ✖️ 🔁 🪞

Defn A matrix is an ordered rectangular array of numbers or functions. The numbers/functions inside are called elements or entries.

👉 Horizontal lines = rows   |   👉 Vertical lines = columns

A = [ 2  5
   0  √5
   3  6 ]
→ 3 rows, 2 columns
Rule A matrix with m rows and n columns → order m × n (read "m by n").
Written as: A = [aij]m×n, where aij = element in ith row, jth column.
🗂️ Quick-look table
TypeMeaningExample
🔹 Row MatrixOnly 1 row → order 1×n[ 5  2  3 ]
🔹 Column MatrixOnly 1 column → order m×1[ 1 ; 4 ; 7 ]
🔹 Square Matrixrows = columns (m = n)3×3, 2×2 etc.
🔹 Diagonal Matrixsquare matrix, all non-diagonal = 0diag(4,2,3)
🔹 Scalar Matrixdiagonal matrix with all diagonal entries equal (=k)diag(3,3,3)
🔹 Identity Matrix (I)diagonal = 1, rest = 0I₃
🔹 Zero / Null Matrix (O)all elements = 0[0 0;0 0]
📌 Note: Every identity matrix is a scalar matrix (k=1), but not every scalar matrix is an identity matrix!
Two matrices A = [aij] and B = [bij] are equal only if: Used to solve for unknowns (x, y, z...) by comparing corresponding entries! 🔍
1️⃣ Addition Add corresponding elements — only possible if matrices are of the same order.
A + B = [aij + bij]
2️⃣ Scalar Multiplication Multiply every element by the scalar k.
kA = [k·aij]
➡️ Negative of matrix: −A = (−1)A
3️⃣ Subtraction A − B = A + (−1)B   (same order needed)
4️⃣ Multiplication Defined only if: columns of A = rows of B.
If A is m×n and B is n×p → AB is m×p
Each element: cik = Σ aij bjk (row of A • column of B)
A (m × n)
✖️
B (n × p)
➡️
AB (m × p)
⚠️ Matrix multiplication is NOT commutative! Generally AB ≠ BA. Also, AB = O does not mean A = O or B = O! 😲
Addition
  • A + B = B + A (commutative)
  • (A+B)+C = A+(B+C) (associative)
  • A + O = O + A = A (identity)
  • A + (−A) = O (inverse)
Multiplication
  • (AB)C = A(BC) (associative)
  • A(B+C) = AB + AC (distributive)
  • (A+B)C = AC + BC (distributive)
  • IA = AI = A (mult. identity)
Defn Formed by interchanging rows and columns of A.
If A = [aij]m×n then A′ = [aji]n×m
✨ Properties of Transpose
PropertyRule
Double transpose(A′)′ = A
Scalar(kA)′ = kA′
Addition(A + B)′ = A′ + B′
Multiplication(AB)′ = B′A′  (order flips! 🔁)
Symmetric A′ = A  →  aij = aji
(mirror image about diagonal!) 🪟
Skew-Symmetric A′ = −A  →  aji = −aij
💡 All diagonal elements = 0
🌟 Big Theorem: Any square matrix A can be written as the sum of a symmetric and a skew-symmetric matrix:

A  =  ½(A + A′)  +  ½(A − A′)
         symmetric           skew-symmetric
Square Matrix A
➡️
½(A+A′) → Symmetric
½(A−A′) → Skew-Sym.
Defn Square matrix A (order m) is invertible if ∃ square matrix B (same order) such that:
AB = BA = I
Then B is called A⁻¹ (inverse of A).

✅ Quick Revision Checklist