Applied Mathematics VII: Matrices, Determinants, Inverse and Simultaneous Equations

Unit II of Section B2 is algebra: matrices and their types, the algebra of matrices, determinants, the inverse and the solution of simultaneous equations in up to three unknowns. Every number in a worked example below was computed twice, once by the method taught and once by a different route, and the quiz answers are checked against the same computations. It is the matrix chapter of the Applied Mathematics paper; the calculus and statistics units have their own chapters.
Overview

1. Matrices: Order, Types, Equality, Transpose, Symmetric and Skew-symmetric

2 min read · 1 part

A matrix is a rectangular array of numbers, its entries, in m rows and n columns; its order is m × n, and a₍ᵢⱼ₎ is the entry in row i and column j. A matrix with one row is a row matrix, with one column a column matrix, and with m = n a square matrix. In a square matrix the entries a₍ᵢᵢ₎ form the diagonal. A diagonal matrix has zeros off the diagonal, a scalar matrix is a diagonal matrix with equal diagonal entries, the identity matrix I has 1s on the diagonal and 0s elsewhere, and the zero matrix O has every entry 0. Two matrices are equal only if they have the same order and every pair of corresponding entries is equal.

The transpose Aᵀ is formed by turning rows into columns, so an m × n matrix becomes n × m. The rules are (Aᵀ)ᵀ = A, (A + B)ᵀ = Aᵀ + Bᵀ, (kA)ᵀ = kAᵀ and (AB)ᵀ = BᵀAᵀ, with the order reversed. A square matrix is symmetric if Aᵀ = A (a₍ᵢⱼ₎ = a₍ⱼᵢ₎) and skew-symmetric if Aᵀ = −A (a₍ᵢⱼ₎ = −a₍ⱼᵢ₎), which forces every diagonal entry of a skew-symmetric matrix to be 0.

Worked example 1 (equality). If [[x + y, 2], [3, x − y]] = [[7, 2], [3, 1]], equal entries give x + y = 7 and x − y = 1, so 2x = 8, x = 4 and y = 3. Worked example 2 (symmetric). For [[2, x + 1], [3x − 5, 4]] to be symmetric the two off-diagonal entries must match: x + 1 = 3x − 5, so x = 3 and the matrix is [[2, 4], [4, 4]]. Worked example 3 (split). Every square matrix is the sum of a symmetric and a skew-symmetric part, A = ½(A + Aᵀ) + ½(A − Aᵀ). For A = [[1, 2], [4, 3]] the symmetric part is [[1, 3], [3, 3]] and the skew-symmetric part is [[0, −1], [1, 0]]; adding them returns A.

A matrix is a rectangular array of numbers, its entries, in m rows and n columns; its order is m × n, and a₍ᵢⱼ₎ is the entry in row i and column j. A matrix with one row is a row matrix…

2. Algebra of Matrices

1 min read · 2 parts

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

1 min read · 2 parts

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.

⚠️ Slip to avoid
The 3 × 3 expansion uses the signs + − + along the first row. Dropping the minus on the middle term is the commonest error, and so is writing |kA| = k|A| instead of kⁿ|A|.

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

1 min read · 1 part

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

2 min read · 4 parts

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.

Systems of two equations at a glance
|A|LinesSolutions
≠ 0Intersect at one pointUnique solution
= 0, constants in the same ratioThe same lineInfinitely many
= 0, constants not in the ratioParallelNone (inconsistent)
Rice and wheat by the inverse
  1. 2x + 3y = 190; x + 2y = 105x = rice, y = wheat, ₹ per kg
  2. Write AX = B
  3. |A| = 1 ≠ 0: unique solution
  4. A⁻¹ = [[2, −3], [−1, 2]]
  5. X = A⁻¹B: rice ₹65, wheat ₹20
Is the system AX = B consistent?
System AX = B
  • |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.

  1. The product of a 3 × 2 matrix and a 2 × 4 matrix has order

    1. 2 × 2
    2. 4 × 3
    3. 3 × 4
    4. The product is not defined
    Show answer

    Answer: C — 3 × 4

    The inner orders (2) match, and the product takes the outer orders 3 × 4.
  2. For [[2, x + 1], [3x − 5, 4]] to be a symmetric matrix, x equals

    1. 3
    2. 2
    3. −3
    4. 6
    Show answer

    Answer: A — 3

    Symmetric means a₁₂ = a₂₁, so x + 1 = 3x − 5, which gives 2x = 6 and x = 3.
  3. The diagonal entries of a skew-symmetric matrix are

    1. all equal to 1
    2. all positive
    3. arbitrary
    4. all zero
    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
  1. For A = [[1, 2], [3, 4]] and B = [[0, 1], [1, 0]], the matrix AB is

    1. [[3, 4], [1, 2]]
    2. [[2, 1], [4, 3]]
    3. [[0, 2], [3, 0]]
    4. [[1, 2], [3, 4]]
    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.
  2. The determinant of [[2, 1, 3], [0, 4, 1], [5, 2, 1]] is

    1. 51
    2. −41
    3. 0
    4. −51
    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.
  3. If A is a 3 × 3 matrix with |A| = 4, then |2A| equals

    1. 8
    2. 16
    3. 32
    4. 64
    Show answer

    Answer: C — 32

    |kA| = kⁿ|A| = 2³ × 4 = 32; the factor is cubed because all three rows are doubled.
  4. For A = [[2, 1], [5, 3]], the entry in the first row, second column of A⁻¹ is

    1. 1
    2. −1
    3. −5
    4. 3
    Show answer

    Answer: B — −1

    |A| = 1 and A⁻¹ = [[3, −1], [−5, 2]]; the (1, 2) entry is −1.
  5. The system x + y = 2, 2x + 2y = 5 has

    1. no solution
    2. a unique solution
    3. infinitely many solutions
    4. exactly two solutions
    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.
  6. If A is a 2 × 3 matrix, the order of its transpose Aᵀ is

    1. 3 × 2
    2. 2 × 3
    3. 2 × 2
    4. 3 × 3
    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.
  7. The determinant of [[3, 2], [1, 4]] is

    1. 14
    2. 10
    3. 12
    4. 5
    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.
  8. The transpose of [[1, 2, 3], [4, 5, 6]] is

    1. [[1, 2], [3, 4], [5, 6]]
    2. [[6, 5, 4], [3, 2, 1]]
    3. [[1, 4], [2, 5], [3, 6]]
    4. [[1, 2, 3], [4, 5, 6]]
    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.
  9. A square matrix is called singular when its determinant is

    1. 1
    2. −1
    3. not defined
    4. 0
    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.
  10. The determinant of [[2, 0, 1], [1, 3, 2], [1, 1, 4]] is

    1. 18
    2. 22
    3. −18
    4. 14
    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.
  11. For A = [[4, 3], [3, 2]], the inverse A⁻¹ is

    1. [[2, −3], [−3, 4]]
    2. [[−2, 3], [3, −4]]
    3. [[4, 3], [3, 2]]
    4. [[−2, −3], [−3, −4]]
    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.
  12. Solving 2x + y = 7 and x − y = 2 by the matrix method X = A⁻¹B gives (x, y) =

    1. (1, 3)
    2. (4, −1)
    3. (3, 1)
    4. (2, 3)
    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).
  13. If A is a 3 × 3 matrix with |A| = 5, then |adj A| equals

    1. 5
    2. 125
    3. 1/5
    4. 25
    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.
  14. The area of the triangle with vertices (1, 1), (5, 1) and (3, 6), using a determinant, is

    1. 10 square units
    2. 20 square units
    3. 5 square units
    4. 15 square units
    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 ½.
  15. If [[0, a], [−3, b]] is a skew-symmetric matrix, then (a, b) is

    1. (−3, 0)
    2. (3, 0)
    3. (3, 1)
    4. (0, 3)
    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.
  16. For A = [[1, 2], [0, 1]], the matrix A⁵ is

    1. [[1, 32], [0, 1]]
    2. [[1, 25], [0, 1]]
    3. [[1, 10], [0, 1]]
    4. [[5, 10], [0, 5]]
    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.
  17. A is a 3 × 4 matrix and B is a 4 × 2 matrix. The order of (AB)ᵀ is

    1. 3 × 2
    2. 4 × 4
    3. 3 × 4
    4. 2 × 3
    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.
  18. The system x + y + z = 6, x + 2y + 3z = 10, x + 2y + λz = μ has infinitely many solutions when

    1. λ = 3 and μ = 10
    2. λ = 3 and μ ≠ 10
    3. λ ≠ 3 and μ = 10
    4. λ ≠ 3, for every μ
    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.
  19. For the system x + y + z = 6, 2x − y + z = 3, x − y + 2z = 5, the value of z is

    1. 2
    2. 3
    3. 1
    4. −5
    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.
  20. A and B are 3 × 3 matrices with |A| = 2 and |B| = 3. The value of |2A⁻¹B| is

    1. 3
    2. 6
    3. 12
    4. 24
    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|.
  21. For A = [[2, −2, −4], [−1, 3, 4], [1, −2, −3]], which of the following holds?

    1. A² = I
    2. A² = 0
    3. A² = −A
    4. A² = A
    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.