Applied Mathematics VII: Matrices, Determinants, Inverse and Simultaneous Equations
2. Algebra of Matrices
Addition and subtraction need matrices of the same order and work entry by entry; scalar multiplication multiplies every entry. Multiplication AB needs the number of columns of A to equal the number of rows of B: an (m × n) matrix times an (n × p) matrix is an (m × p) matrix whose entry in row i, column j is the row i of A multiplied by the column j of B, entry by entry, and added. Addition is commutative and associative; multiplication is associative, A(BC) = (AB)C, and distributes over addition, A(B + C) = AB + AC, with AI = IA = A.
Multiplication is not commutative. For A = [[1, 2], [3, 4]] and B = [[0, 1], [1, 0]], AB = [[2, 1], [4, 3]] but BA = [[3, 4], [1, 2]]: different matrices. A product can be the zero matrix with neither factor zero: [[1, 1], [1, 1]] × [[1, −1], [−1, 1]] = [[0, 0], [0, 0]]. So, unlike numbers, AB = O does not mean A = O or B = O, and AB = AC does not allow cancelling A. The order of a product of matrices of orders m × n and n × p is m × p; the factors in the other order, p × n times n × m, would not even be defined unless p = m.
Addition and subtraction need matrices of the same order and work entry by entry; scalar multiplication multiplies every entry. Multiplication AB needs the number of columns of A to equal…
3. Determinants, Minors, Cofactors and the Area of a Triangle
The determinant of a square matrix is a single number. For 2 × 2, |A| = ad − bc. The minor Mᵢⱼ of an entry is the determinant left after deleting its row and column, and the cofactor is Cᵢⱼ = (−1)^(i + j) Mᵢⱼ. For 3 × 3 the value is |A| = a₁₁C₁₁ + a₁₂C₁₂ + a₁₃C₁₃, and the same number results from expanding along any row or column. Useful rules: |Aᵀ| = |A|; swapping two rows changes the sign; two equal rows give 0; adding a multiple of one row to another changes nothing; multiplying one row by k multiplies |A| by k, hence |kA| = kⁿ|A| for order n; and |AB| = |A||B|. A matrix with |A| = 0 is singular, and one with |A| ≠ 0 is non-singular.
Worked example. For A = [[2, 1, 3], [0, 4, 1], [5, 2, 1]], expanding along the first row with cofactors C₁₁ = 2, C₁₂ = 5, C₁₃ = −20: |A| = 2(2) + 1(5) + 3(−20) = −51. The value was checked by a second route, elimination to triangular form. Area of a triangle with vertices (x₁, y₁), (x₂, y₂), (x₃, y₃) is ½ |det [[x₁, y₁, 1], [x₂, y₂, 1], [x₃, y₃, 1]]|; for (1, 1), (4, 5), (7, 2) it is ½ × 21 = 21/2 square units, and three points are collinear exactly when this determinant is 0.
The determinant of a square matrix is a single number. For 2 × 2, |A| = ad − bc. The minor Mᵢⱼ of an entry is the determinant left after deleting its row and column, and the cofactor is Cᵢⱼ…
4. Adjoint and Inverse of a Matrix
The adjoint adj A is the transpose of the cofactor matrix. It satisfies A (adj A) = (adj A) A = |A| I, so when |A| ≠ 0 the inverse is A⁻¹ = adj A / |A|; it exists exactly for non-singular matrices. The inverse is unique: if B and C are both inverses of A, then B = BI = B(AC) = (BA)C = IC = C. For invertible A and B of the same size: (AB)⁻¹ = B⁻¹A⁻¹, (A⁻¹)⁻¹ = A, (Aᵀ)⁻¹ = (A⁻¹)ᵀ, |A⁻¹| = 1/|A|, and |adj A| = |A|ⁿ⁻¹ for order n.
Worked example (2 × 2). For A = [[2, 1], [5, 3]], |A| = 1, adj A swaps the diagonal entries and changes the sign of the other two, so A⁻¹ = [[3, −1], [−5, 2]]. Worked example (3 × 3). For A = [[1, 2, 3], [0, 1, 4], [5, 6, 0]], |A| = 1, and the cofactor method gives A⁻¹ = [[−24, 18, 5], [20, −15, −4], [−5, 4, 1]]; multiplying A by this matrix returns the identity, which confirms it.
The adjoint adj A is the transpose of the cofactor matrix. It satisfies A (adj A) = (adj A) A = |A| I, so when |A| ≠ 0 the inverse is A⁻¹ = adj A / |A|; it exists exactly for non-singular…
5. Solving Simultaneous Equations by the Inverse; Consistency
A system of equations in two or three unknowns is written AX = B, with A the matrix of coefficients, X the column of unknowns and B the column of constants. If |A| ≠ 0, A is invertible and X = A⁻¹B: the system is consistent with a unique solution. If |A| = 0 the system is either inconsistent (no solution) or consistent with infinitely many solutions; the usual test is to compute (adj A)B: if it is not the zero matrix, there is no solution. For two unknowns the picture is two lines: meeting at one point, parallel, or the same line.
Worked example (three unknowns). Solve x + y + z = 6, 2x + y − z = 1, x − y + 2z = 5. Here A = [[1, 1, 1], [2, 1, −1], [1, −1, 2]], |A| = −7 ≠ 0, so the solution is unique. With A⁻¹ = [[−1/7, 3/7, 2/7], [5/7, −1/7, −3/7], [3/7, −2/7, 1/7]], X = A⁻¹B = (x, y, z) = (1, 2, 3). Cramer's rule, which divides the determinant with a column replaced by B by |A|, gives the same three numbers. Worked example (two unknowns, a word problem). Two kg of rice and three kg of wheat cost ₹190, and one kg of rice and two kg of wheat cost ₹105. With |A| = 1 and A⁻¹ = [[2, −3], [−1, 2]], rice costs ₹65 a kg and wheat ₹20 a kg. Consistency examples. x + y = 2 and 2x + 2y = 4: |A| = 0 and the equations are multiples, so infinitely many solutions; x + y = 2 and 2x + 2y = 5: |A| = 0 but the constants do not match, so no solution.
| |A| | Lines | Solutions |
|---|---|---|
| ≠ 0 | Intersect at one point | Unique solution |
| = 0, constants in the same ratio | The same line | Infinitely many |
| = 0, constants not in the ratio | Parallel | None (inconsistent) |
- 2x + 3y = 190; x + 2y = 105x = rice, y = wheat, ₹ per kg
- Write AX = B
- |A| = 1 ≠ 0: unique solution
- A⁻¹ = [[2, −3], [−1, 2]]
- X = A⁻¹B: rice ₹65, wheat ₹20
- |A| ≠ 0
- Consistent, unique solution X = A⁻¹B
- |A| = 0
- (adj A)B not zero: no solution
- Else possibly infinitely many
A system of equations in two or three unknowns is written AX = B, with A the matrix of coefficients, X the column of unknowns and B the column of constants. If |A| ≠ 0, A is invertible and…
Key takeaways
- A matrix of order m × n multiplies one of order n × p to give m × p; multiplication is not commutative and AB = O does not force A = O or B = O.
- Symmetric means Aᵀ = A; skew-symmetric means Aᵀ = −A, with a zero diagonal; (AB)ᵀ = BᵀAᵀ.
- |kA| = kⁿ|A|, |AB| = |A||B|, |A⁻¹| = 1/|A| and |adj A| = |A|ⁿ⁻¹; |A| = 0 means singular.
- A⁻¹ = adj A / |A| exists only when |A| ≠ 0; (AB)⁻¹ = B⁻¹A⁻¹.
- AX = B has the unique solution X = A⁻¹B when |A| ≠ 0; when |A| = 0 the system has no solution or infinitely many.
Practice questions (24)
Attempt each one before opening the answer. Every explanation names the tempting wrong option as well as the right one, because that is where marks are lost.
The product of a 3 × 2 matrix and a 2 × 4 matrix has order
Show answer
Answer: C — 3 × 4
The inner orders (2) match, and the product takes the outer orders 3 × 4.For [[2, x + 1], [3x − 5, 4]] to be a symmetric matrix, x equals
Show answer
Answer: A — 3
Symmetric means a₁₂ = a₂₁, so x + 1 = 3x − 5, which gives 2x = 6 and x = 3.The diagonal entries of a skew-symmetric matrix are
Show answer
Answer: D — all zero
Aᵀ = −A gives aᵢᵢ = −aᵢᵢ on the diagonal, so 2aᵢᵢ = 0 and every diagonal entry is zero.
Show the other 21 questions
For A = [[1, 2], [3, 4]] and B = [[0, 1], [1, 0]], the matrix AB is
Show answer
Answer: B — [[2, 1], [4, 3]]
Row by column gives AB = [[2, 1], [4, 3]]; BA = [[3, 4], [1, 2]] is the same product in the other order, a different matrix.The determinant of [[2, 1, 3], [0, 4, 1], [5, 2, 1]] is
Show answer
Answer: D — −51
Expanding along the first row with the signs + − + gives |A| = −51; changing the sign of the middle term would give a different value.If A is a 3 × 3 matrix with |A| = 4, then |2A| equals
Show answer
Answer: C — 32
|kA| = kⁿ|A| = 2³ × 4 = 32; the factor is cubed because all three rows are doubled.For A = [[2, 1], [5, 3]], the entry in the first row, second column of A⁻¹ is
Show answer
Answer: B — −1
|A| = 1 and A⁻¹ = [[3, −1], [−5, 2]]; the (1, 2) entry is −1.The system x + y = 2, 2x + 2y = 5 has
Show answer
Answer: A — no solution
|A| = 0 and the constants 2 and 5 are not in the ratio 1 : 2 of the coefficients, so the lines are parallel and the system is inconsistent.If A is a 2 × 3 matrix, the order of its transpose Aᵀ is
Show answer
Answer: A — 3 × 2
Transposing turns rows into columns, so a 2 × 3 matrix becomes 3 × 2. 2 × 3 is the tempting wrong option, which leaves the order unchanged; that happens only for a square matrix.The determinant of [[3, 2], [1, 4]] is
Show answer
Answer: B — 10
For a 2 × 2 matrix |A| = ad − bc = 3 × 4 − 2 × 1 = 10. 14 is the tempting wrong option, which adds the cross-product 2 × 1 instead of subtracting it.The transpose of [[1, 2, 3], [4, 5, 6]] is
Show answer
Answer: C — [[1, 4], [2, 5], [3, 6]]
The rows of A become the columns of Aᵀ: row 1 (1, 2, 3) becomes column 1. [[1, 2], [3, 4], [5, 6]] is the tempting wrong option, which only re-reads the same numbers in the new shape instead of turning rows into columns.A square matrix is called singular when its determinant is
Show answer
Answer: D — 0
A singular matrix has |A| = 0 and no inverse, as in [[2, 4], [1, 2]] where 4 − 4 = 0. 1 is the tempting wrong option, the determinant of the identity matrix, which is non-singular.The determinant of [[2, 0, 1], [1, 3, 2], [1, 1, 4]] is
Show answer
Answer: A — 18
Expanding along row 1: 2(3 × 4 − 2 × 1) − 0 + 1(1 × 1 − 3 × 1) = 2(10) + (−2) = 18. 22 is the tempting wrong option, from taking the last cofactor with the wrong sign: 20 + 2.For A = [[4, 3], [3, 2]], the inverse A⁻¹ is
Show answer
Answer: B — [[−2, 3], [3, −4]]
|A| = 8 − 9 = −1 and adj A = [[2, −3], [−3, 4]], so A⁻¹ = adj A ÷ (−1) = [[−2, 3], [3, −4]]. [[2, −3], [−3, 4]] is the tempting wrong option, the adjoint itself, not divided by the determinant −1.Solving 2x + y = 7 and x − y = 2 by the matrix method X = A⁻¹B gives (x, y) =
Show answer
Answer: C — (3, 1)
|A| = −3, A⁻¹ = (1/3)[[1, 1], [1, −2]] and X = A⁻¹[7, 2]ᵀ = (1/3)[9, 3]ᵀ = (3, 1). Check: 2(3) + 1 = 7 and 3 − 1 = 2. (1, 3) is the tempting wrong option, the pair with the values swapped, which fails the first equation (2 + 3 = 5).If A is a 3 × 3 matrix with |A| = 5, then |adj A| equals
Show answer
Answer: D — 25
|adj A| = |A|ⁿ⁻¹ = 5² = 25 for n = 3. 5 is the tempting wrong option, from assuming adj A has the same determinant as A; 125 uses the power n instead of n − 1.The area of the triangle with vertices (1, 1), (5, 1) and (3, 6), using a determinant, is
Show answer
Answer: A — 10 square units
Area = ½|1(1 − 6) + 5(6 − 1) + 3(1 − 1)| = ½|−5 + 25 + 0| = 10; base 4 along y = 1 and height 5 agree. 20 is the tempting wrong option, the determinant value itself, without the factor ½.If [[0, a], [−3, b]] is a skew-symmetric matrix, then (a, b) is
Show answer
Answer: B — (3, 0)
Skew-symmetry needs Aᵀ = −A, so a = −(−3) = 3 and the diagonal entry b = −b gives b = 0. (−3, 0) is the tempting wrong option, from copying −3 into the position a instead of reversing its sign.For A = [[1, 2], [0, 1]], the matrix A⁵ is
Show answer
Answer: C — [[1, 10], [0, 1]]
A² = [[1, 4], [0, 1]] and in general Aⁿ = [[1, 2n], [0, 1]], so A⁵ = [[1, 10], [0, 1]]. [[1, 32], [0, 1]] is the tempting wrong option, from raising the entry 2 to the power 5, which is not how matrix powers work.A is a 3 × 4 matrix and B is a 4 × 2 matrix. The order of (AB)ᵀ is
Show answer
Answer: D — 2 × 3
AB has order 3 × 2, and its transpose has order 2 × 3. 3 × 2 is the tempting wrong option, the order of AB itself, before taking the transpose.The system x + y + z = 6, x + 2y + 3z = 10, x + 2y + λz = μ has infinitely many solutions when
Show answer
Answer: A — λ = 3 and μ = 10
|A| = λ − 3, so λ ≠ 3 gives a unique solution. For λ = 3 the last equation is the same left side as the second, so the rows are consistent only if μ = 10, and then the rank 2 is less than 3 unknowns: infinitely many solutions. λ = 3, μ ≠ 10 is the tempting wrong option, which is the case of no solution.For the system x + y + z = 6, 2x − y + z = 3, x − y + 2z = 5, the value of z is
Show answer
Answer: B — 3
|A| = −5, and replacing the third column by (6, 3, 5) gives a determinant of −15, so z = −15 ÷ −5 = 3 by Cramer’s rule; the full solution is (1, 2, 3), which satisfies all three equations. 2 is the tempting wrong option, the value of y; −5 is the determinant |A|, not a solution.A and B are 3 × 3 matrices with |A| = 2 and |B| = 3. The value of |2A⁻¹B| is
Show answer
Answer: C — 12
|2A⁻¹B| = 2³ × |A|⁻¹ × |B| = 8 × (1/2) × 3 = 12, since a scalar k multiplies the determinant of a 3 × 3 matrix by k³. 6 is the tempting wrong option, from using the factor 2 instead of 2³ = 8; 24 forgets that |A⁻¹| = 1/|A|.For A = [[2, −2, −4], [−1, 3, 4], [1, −2, −3]], which of the following holds?
Show answer
Answer: D — A² = A
Computing every entry of the product, A × A = [[2, −2, −4], [−1, 3, 4], [1, −2, −3]], the same matrix, so A is idempotent. A² = I is the tempting wrong option: |A| = 0, so A cannot have an inverse and cannot satisfy A² = I.