Matrices

Matrix product, transpose rules, determinant, adjoint and inverse of a 2 × 2 matrix, and solving equations, with a worked example.

Matrices are written row by row here: A = [a b; c d] means first row a, b and second row c, d.

Product

An m × n matrix times an n × p matrix gives an m × p matrix. The inner orders must match.

  • Associative: (AB)C = A(BC)
  • Distributive: A(B + C) = AB + AC;   (B + C)A = BA + CA
  • Scalar: k(AB) = (kA)B = A(kB)
  • Not commutative: in general AB ≠ BA

Transpose

Aᵀ (or A′) swaps rows and columns: if A = [1 3; 2 4] then Aᵀ = [1 2; 3 4].

  • Sum and difference: (A ± B)ᵀ = Aᵀ ± Bᵀ
  • Scalar multiple: (kA)ᵀ = kAᵀ
  • Twice: (Aᵀ)ᵀ = A
  • Product: (AB)ᵀ = BᵀAᵀ
  • Zero, identity, symmetric: Oᵀ = O, Iᵀ = I, symmetric A: Aᵀ = A

Determinant, adjoint and inverse (2 × 2)

  • If: A = [a b; c d]
  • Determinant: |A| = ad − bc   (for A = [a], |A| = a)
  • Adjoint: Adj A = [d −b; −c a]   (swap a and d, change the signs of b and c)
  • Inverse: A⁻¹ = (1/|A|) Adj A,   AA⁻¹ = A⁻¹A = I
  • Singular: |A| = 0: no inverse; |A| ≠ 0: non-singular
  • Equations: AX = B ⇒ X = A⁻¹B

Worked example

Solve 2x + y = 5 and x + y = 3 by the matrix method.

  • A = [2 1; 1 1], X = [x; y], B = [5; 3]. |A| = 2 − 1 = 1
  • A⁻¹ = [1 −1; −1 2], X = A⁻¹B = [5 − 3; −5 + 6] = [2; 1]
  • x = 2, y = 1