Three numbers or matrices describe a square matrix deeply: its determinant, its rank and its inverse. They decide whether equations have solutions.
Determinant
For a 2 × 2 matrix A = [a b; c d], det A = ad − bc.
For a 3 × 3 matrix, expand along the first row:
det A = a₁₁(a₂₂a₃₃ − a₂₃a₃₂) − a₁₂(a₂₁a₃₃ − a₂₃a₃₁) + a₁₃(a₂₁a₃₂ − a₂₂a₃₁)
Example: A = [1 2 3; 0 1 4; 5 6 0]. det A = 1(1·0 − 4·6) − 2(0·0 − 4·5) + 3(0·6 − 1·5) = −24 + 40 − 15 = 1.
Properties: det(AB) = det A · det B; det Aᵀ = det A; swapping two rows changes the sign; a row of zeros or two equal rows gives det 0.
A matrix with det ≠ 0 is non-singular; with det = 0 it is singular.
Rank
The rank of a matrix is the number of linearly independent rows, or the number of non-zero rows after row reduction.
Example: [1 2; 2 4]. Row 2 = 2 × row 1, so after R₂ − 2R₁ the second row is zero. Rank = 1.
An n × n matrix has rank n exactly when it is non-singular.
Inverse
The inverse A⁻¹ satisfies A·A⁻¹ = A⁻¹·A = I. It exists only when det A ≠ 0.
For a 2 × 2 matrix: A⁻¹ = (1 / (ad − bc)) × [d −b; −c a].
Example: A = [2 1; 5 3]. det A = 6 − 5 = 1, so A⁻¹ = [3 −1; −5 2]. Check: [2 1; 5 3] × [3 −1; −5 2] = [6 − 5, −2 + 2; 15 − 15, −5 + 6] = [1 0; 0 1] ✓.
For larger matrices, A⁻¹ = adj(A) / det A, where adj(A) is the transpose of the matrix of cofactors. Another way is to row-reduce [A | I] into [I | A⁻¹].
Properties: (AB)⁻¹ = B⁻¹A⁻¹ and (Aᵀ)⁻¹ = (A⁻¹)ᵀ.
Common mistakes
- Trying to invert a singular matrix.
- Writing (AB)⁻¹ = A⁻¹B⁻¹; the order reverses.
- Taking the determinant of a non-square matrix.
Practice questions
- Find the determinant of [3 4; 2 5].
- Find the rank of [1 2 3; 2 4 6; 1 0 1].
- Find the inverse of [4 3; 3 2].
- State two properties of determinants.
- When does the inverse of a matrix exist?
Answers to the practice questions
- 15 − 8 = 7.
- Row 2 is twice row 1, and rows 1 and 3 are independent, so the rank is 2.
- det = 8 − 9 = −1, so A⁻¹ = −1 × [2 −3; −3 4] = [−2 3; 3 −4].
- For example det(AB) = det A · det B and swapping two rows changes the sign.
- When the matrix is square and its determinant is non-zero.
Sources
- Official BCA syllabus Mathematics Foundations to Computer Science I, course code CC101, Unit IV
- Kolman, Busby and Ross, Discrete Mathematical Structures, 6th edition, Pearson
