Matrices & Determinants

Matrices organise systems of numbers and linear maps. Learn matrix types (square, diagonal, identity, symmetric, triangular, orthogonal), addition and multiplication, transpose and conjugate transpose, determinants by cofactor expansion and row reduction, minors and cofactors, the inverse and adjugate, and properties like det(AB) = det A det B.

Circuit equations, truss forces, robot transformations, image processing and finite element models are all matrices. The determinant tells whether a system has a unique solution and how a transformation scales area or volume.

An analogy

A matrix is a machine that transforms vectors: it can stretch, rotate, shear or flatten space. The determinant is the machine's area-scaling factor — zero means it flattens space and information is lost.

Matrix operations

Add entry-by-entry (same size). Multiply row-by-column; order matters. The identity I leaves vectors unchanged. Transpose swaps rows and columns.

Special matrices

Symmetric (A = Aᵀ: stiffness, covariance), diagonal, triangular (easy determinants: product of diagonal), orthogonal (QᵀQ = I: rotations), sparse (FEM), Hermitian (complex, A = Aᴴ).

Determinants

Cofactor expansion is fine for small matrices; row reduction is efficient for large ones (row swaps flip sign, scaling a row scales det). det = 0 ⇔ singular ⇔ columns linearly dependent.

Geometric meaning

|det A| is the volume scaling of the transformation; its sign indicates orientation reversal. Computationally, never invert to solve Ax = b — factorise instead.

Formulas

Worked example: 2 × 2 inverse

Given: A = [[4, 7], [2, 6]]

Find: det and A⁻¹.

Answer: [[0.6, −0.7], [−0.2, 0.4]]

Worked example: 3 × 3 determinant

Given: [[1, 2, 3], [0, 4, 5], [1, 0, 6]]

Find: det.

Answer: 22

Common mistakes

Applications

Key takeaways

Going further