girgit.org

Determinants

Solving equations by the matrix method, X = A⁻¹B

The big ideaIf the coefficient matrix A is non-singular, the system AX = B has exactly one solution, \( X = A^{-1}B \), found by one matrix multiplication.

In simple words

Put all the numbers in front of the unknowns into one box. Put the answers on the right into a column. Find the "undo" box for the first box. Multiply the undo box by the answer column, and out come all the unknowns at once.

Where X = A⁻¹B comes from

Start from AX = B with |A| ≠ 0, so \( A^{-1} \) exists. Multiply both sides on the left by \( A^{-1} \) (this is called premultiplying):

\[ A^{-1}(AX) = A^{-1}B \;\Rightarrow\; (A^{-1}A)X = A^{-1}B \;\Rightarrow\; IX = A^{-1}B \;\Rightarrow\; X = A^{-1}B. \]

The second step uses the associative law for matrix products. Since a matrix has only one inverse, this X is the only solution. Solving a system this way is called the matrix method.

The steps:

  1. Write the system as AX = B.
  2. Find |A|. If it is 0, stop and use the decision table from the last page.
  3. Find adj A, then \( A^{-1} = \frac{1}{|A|}\operatorname{adj} A \).
  4. Multiply: \( X = A^{-1}B \). It is often easier to work out \( (\operatorname{adj} A)B \) first and divide by |A| at the end.
  5. Check your answer in the original equations.

Worked example: two unknowns

Solve 3x + 2y = 12, x − y = −1.

\( A = \begin{bmatrix} 3 & 2 \\ 1 & -1 \end{bmatrix} \), \( B = \begin{bmatrix} 12 \\ -1 \end{bmatrix} \), |A| = −3 − 2 = −5 ≠ 0. \( \operatorname{adj} A = \begin{bmatrix} -1 & -2 \\ -1 & 3 \end{bmatrix} \), so

\[ X = \frac{1}{-5}\begin{bmatrix} -1 & -2 \\ -1 & 3 \end{bmatrix}\begin{bmatrix} 12 \\ -1 \end{bmatrix} = \frac{1}{-5}\begin{bmatrix} -10 \\ -15 \end{bmatrix} = \begin{bmatrix} 2 \\ 3 \end{bmatrix}. \]

x = 2, y = 3. Check: 6 + 6 = 12 and 2 − 3 = −1.

Worked example: three unknowns

Solve 2x − y + 3z = 9, x + 4z = 13, −2x + y + 5z = 15.

This A is the matrix we have been using all chapter: |A| = 8 and \( \operatorname{adj} A = \begin{bmatrix} -4 & 8 & -4 \\ -13 & 16 & -5 \\ 1 & 0 & 1 \end{bmatrix} \). Note the missing y in the second equation: its coefficient is 0.

\[ (\operatorname{adj} A)B = \begin{bmatrix} -36 + 104 - 60 \\ -117 + 208 - 75 \\ 9 + 0 + 15 \end{bmatrix} = \begin{bmatrix} 8 \\ 16 \\ 24 \end{bmatrix}, \qquad X = \frac{1}{8}\begin{bmatrix} 8 \\ 16 \\ 24 \end{bmatrix} = \begin{bmatrix} 1 \\ 2 \\ 3 \end{bmatrix}. \]

x = 1, y = 2, z = 3. Check the first equation: 2 − 2 + 9 = 9.

Worked example: a canteen bill

At a college canteen, 2 samosas, 1 chai and 1 plate of jalebi cost ₹60; 1 samosa, 2 chai and 1 jalebi cost ₹55; 1 samosa, 1 chai and 2 jalebi cost ₹65. Find each price.

Let the prices be x, y, z rupees. Then 2x + y + z = 60, x + 2y + z = 55, x + y + 2z = 65, so

\[ A = \begin{bmatrix} 2 & 1 & 1 \\ 1 & 2 & 1 \\ 1 & 1 & 2 \end{bmatrix}, \quad |A| = 4, \quad \operatorname{adj} A = \begin{bmatrix} 3 & -1 & -1 \\ -1 & 3 & -1 \\ -1 & -1 & 3 \end{bmatrix}. \] \[ X = \frac{1}{4}\begin{bmatrix} 180 - 55 - 65 \\ -60 + 165 - 65 \\ -60 - 55 + 195 \end{bmatrix} = \frac{1}{4}\begin{bmatrix} 60 \\ 40 \\ 80 \end{bmatrix} = \begin{bmatrix} 15 \\ 10 \\ 20 \end{bmatrix}. \]

Samosa ₹15, chai ₹10, jalebi ₹20.

Try it: change the bills and see the prices come out at once.

A shortcut to spot: if a question hands you a matrix P with PA = kI (for a number k), then \( A^{-1} = \frac{1}{k}P \) straight away, with no cofactors.

Cramer's rule

Not in the current textbook, but JEE asks it: when |A| = Δ ≠ 0, each unknown is a ratio of two determinants. \( \Delta_x \) is Δ with the x-column replaced by B, and similarly for y and z:

\[ x = \frac{\Delta_x}{\Delta}, \quad y = \frac{\Delta_y}{\Delta}, \quad z = \frac{\Delta_z}{\Delta}. \]

For 3x + 2y = 12, x − y = −1: Δ = −5, \( \Delta_x = \begin{vmatrix} 12 & 2 \\ -1 & -1 \end{vmatrix} = -10 \), \( \Delta_y = \begin{vmatrix} 3 & 12 \\ 1 & -1 \end{vmatrix} = -15 \). So x = 2, y = 3, as before.

Don't mix these up

  • \( X = A^{-1}B \), never \( BA^{-1} \). B is a column, so \( BA^{-1} \) can't even be multiplied.
  • Keep the unknowns in the same order (x, y, z) in every row, and put a 0 where an unknown is missing.

Words to know

Matrix method
Solving AX = B as \( X = A^{-1}B \) when |A| ≠ 0.
Premultiply
Multiply on the left; for matrices the side matters.
Unique solution
Exactly one set of values that satisfies all the equations.
Cramer's rule
Each unknown equals a determinant with one column replaced by B, divided by Δ.

For AX = B with |A| ≠ 0, which is correct?

  1. \( X = BA^{-1} \)
  2. \( X = A^{-1}B \)
  3. \( X = \frac{B}{A} \)

Solve x + y = 5, x − y = 1 by the matrix method. What is X?

  1. x = 3, y = 2
  2. x = 2, y = 3
  3. There is no unique solution

A is 3 × 3 with |A| = 2 and \( (\operatorname{adj} A)B = \begin{bmatrix} 4 \\ -2 \\ 6 \end{bmatrix} \). What is z?

  1. 6
  2. 3
  3. −1