PYQ Vault

CBSE Class 12 Maths · Determinants

Solving a System of Linear Equations by the Matrix Method

A system of linear equations is written as AX = B; if |A| ≠ 0 it has the unique solution X = A⁻¹B, and if |A| = 0 the product (adj A)B decides whether it can have a solution.

Why this matters

55 questions, thirty-four of them from board papers: five in 2023, twelve in 2024, ten in 2025 and seven in 2026. The five-mark question is here: find A⁻¹ and use it to solve three equations (2023, 2024, 2025, 2026), several times with a coefficient matrix that is the transpose of the A given; or multiply two given matrices, get a multiple of I and use it to solve the system (every year from 2023 to 2026). Word problems on prices, clubs, investments and speeds came in 2025 and 2026, and case studies that ask for the equations, the matrix form and the solution in every year. The board also asked when a system is consistent (2024, 2025). The textbook adds Exercise 4.5, Examples 16 to 19 and Miscellaneous Question 7.

Concept 1 of 4: Consistent and inconsistent systems

Before solving, ask whether a solution can exist. If ∣A∣≠0|A| \ne 0, the inverse exists and there is exactly one solution. If ∣A∣=0|A| = 0, compute (adj⁡A)B(\operatorname{adj} A)B: a non-zero answer means no solution at all, while a zero answer leaves the question open.

Definition

  • A system is consistent if it has a solution (one or more), and inconsistent if it has none.
  • Write it as AX=BAX = B: AA the coefficient matrix, XX the column of unknowns, BB the column of constants.
  • Case 1: ∣A∣≠0|A| \ne 0. The system is consistent with a unique solution.
  • Case 2: ∣A∣=0|A| = 0 and (adj⁡A)B≠O(\operatorname{adj} A)B \ne O. No solution: inconsistent.
  • Case 3: ∣A∣=0|A| = 0 and (adj⁡A)B=O(\operatorname{adj} A)B = O. The system may be consistent (infinitely many solutions) or inconsistent (no solution).

Test for a unique solution

∣A∣≠0  ⇒  X=A−1B is the unique solution of AX=B|A| \ne 0 \;\Rightarrow\; X = A^{-1}B \text{ is the unique solution of } AX = B

Worked example

Examine the consistency of the system x+2y=3x + 2y = 3, 2x+4y=72x + 4y = 7.
Practise this conceptself-check · 3 quick reps

The same idea in a real exam question:

CBSE Class 12 · 2025 · 65/4/2 · Q21Easy

Example 1 · Determinants · Solving System of Linear Equations

Using matrices and determinants, find the value(s) of k for which the pair of equations 5x−ky=25x - ky = 2; 7x−5y=37x - 5y = 3 has a unique solution.

Calling every singular system inconsistent

∣A∣=0|A| = 0 alone decides nothing. Only ∣A∣=0|A| = 0 with (adj⁡A)B≠O(\operatorname{adj} A)B \ne O proves there is no solution.

Writing X = BA⁻¹

BB is a column, so BA−1BA^{-1} is not even a defined product. The solution is X=A−1BX = A^{-1}B.

Concept 2 of 4: Solving AX = B by X = A⁻¹B

Three equations become one matrix equation AX=BAX = B. Multiply both sides on the left by A−1A^{-1} and XX stands alone: X=A−1BX = A^{-1}B. All the work is finding A−1A^{-1}, which the previous page taught; the last step is one matrix times a column.

Definition

  • Write AA with the coefficients of xx, yy, zz in that order, row by row; put a 0 for a missing unknown.
  • Find ∣A∣|A|, state ∣A∣≠0|A| \ne 0, so A−1A^{-1} exists and the solution is unique.
  • Find the cofactors, adj⁡A\operatorname{adj} A and A−1A^{-1}.
  • X=A−1BX = A^{-1}B: multiply, then read off xx, yy, zz.
  • Check the answer in the equations.
  • Transposed systems: if the question gives AA but the equations' coefficient matrix is A′A', use (A′)−1=(A−1)′(A')^{-1} = (A^{-1})', so X=(A−1)′BX = (A^{-1})'B.
  • Unknowns in the denominator: for 2x+3y+10z=4\dfrac{2}{x} + \dfrac{3}{y} + \dfrac{10}{z} = 4 and the like, put u=1xu = \dfrac{1}{x}, v=1yv = \dfrac{1}{y}, w=1zw = \dfrac{1}{z}, solve for u,v,wu, v, w, then take reciprocals.

Matrix method

AX=B, ∣A∣≠0  ⇒  X=A−1B=1∣A∣(adj⁡A)BAX = B,\ |A| \ne 0 \;\Rightarrow\; X = A^{-1}B = \dfrac{1}{|A|}(\operatorname{adj} A)B

Worked example

Solve by the matrix method: x+y+2z=4x + y + 2z = 4, 2x−y+3z=92x - y + 3z = 9, 3x−y−z=23x - y - z = 2.
Practise this conceptself-check · 3 quick reps

The same idea in a real exam question:

CBSE Class 12 · 2024 · 65/4/1 · Q34Hard

Example 2 · Determinants · Solving System of Linear Equations

If A=[21−332112−1]A = \begin{bmatrix} 2 & 1 & -3 \\ 3 & 2 & 1 \\ 1 & 2 & -1 \end{bmatrix}, find A−1A^{-1} and hence solve the following system of equations : 2x+y−3z=132x + y - 3z = 13 3x+2y+z=43x + 2y + z = 4 x+2y−z=8x + 2y - z = 8

Using A when the equations use A′

Read the equations' coefficients row by row and compare with the AA given. If its rows have become columns, the system is A′X=BA'X = B and you need (A−1)′(A^{-1})', not A−1A^{-1}.

Multiplying in the wrong order

X=A−1BX = A^{-1}B: the matrix on the left, the column on the right. A product BA−1BA^{-1} cannot even be formed.

Stopping at u, v, w

With the substitution u=1xu = \dfrac{1}{x}, the answer u=2u = 2 means x=12x = \dfrac{1}{2}. Take the reciprocal before you write the final line.

Concept 3 of 4: Using a given product AB = kI to solve a system

If two given matrices multiply to kIkI, each is kk times the inverse of the other. The board hands you the inverse this way, so no cofactors are needed: multiply, spot the multiple of II, and solve.

Definition

  • Multiply the two given matrices in the order asked and show that the product is kIkI.
  • AB=kIAB = kI gives A(1kB)=IA\left(\dfrac{1}{k}B\right) = I, so A−1=1kBA^{-1} = \dfrac{1}{k}B. In the same way B−1=1kAB^{-1} = \dfrac{1}{k}A.
  • Match the equations' coefficient matrix with AA, with BB, or with a transpose of one of them, before you choose the inverse.
  • Then X=(inverse)CX = (\text{inverse})C, where CC is the column of constants.

Inverse from a product

AB=kI, k≠0  ⇒  A−1=1kB,B−1=1kAAB = kI,\ k \ne 0 \;\Rightarrow\; A^{-1} = \dfrac{1}{k}B, \quad B^{-1} = \dfrac{1}{k}A

Worked example

Find ABAB, where A=[210101012]A = \begin{bmatrix} 2 & 1 & 0 \\ 1 & 0 & 1 \\ 0 & 1 & 2 \end{bmatrix} and B=[12−12−42−121]B = \begin{bmatrix} 1 & 2 & -1 \\ 2 & -4 & 2 \\ -1 & 2 & 1 \end{bmatrix}. Hence solve 2x+y=52x + y = 5, x+z=1x + z = 1, y+2z=−1y + 2z = -1.
Practise this conceptself-check · 2 quick reps

The same idea in a real exam question:

CBSE Class 12 · 2026 · 65/2/1 · 32 (a)Hard

Example 3 · Determinants · Solving System of Linear Equations

If P=[1−10234012]P = \begin{bmatrix} 1 & -1 & 0 \\ 2 & 3 & 4 \\ 0 & 1 & 2 \end{bmatrix} and Q=[22−4−42−42−15]Q = \begin{bmatrix} 2 & 2 & -4 \\ -4 & 2 & -4 \\ 2 & -1 & 5 \end{bmatrix}, find (QP) and hence solve the following system of equations using matrices : x−y=3x - y = 3, 2x+3y+4z=172x + 3y + 4z = 17, y+2z=7y + 2z = 7

Forgetting the 1/k

From AB=4IAB = 4I, A−1=14BA^{-1} = \dfrac{1}{4}B, not BB. Leaving out the 14\dfrac{1}{4} makes every unknown four times too big.

Not matching the coefficient matrix

The system may use the first matrix, the second, or a transpose. Write the coefficient matrix from the equations and compare it entry by entry before you pick the inverse.

Concept 4 of 4: Word problems and case studies: forming AX = B

Most marks in a word problem go to the equations. Name the unknowns once, turn each sentence into one equation with the unknowns in the same order, then the matrix method does the rest. The answer goes back into the story, with units.

Definition

  • Let xx, yy, zz be the unknown quantities, named in words with units (price of one pen in rupees, and so on).
  • Turn each condition into an equation. "The second exceeds the first by 5" means y−x=5y - x = 5; "twice the second" means 2y2y.
  • Bring every unknown to the left in the order x,y,zx, y, z, with 0 for a missing one, and write AX=BAX = B.
  • Solve by X=A−1BX = A^{-1}B and check each condition of the story.
  • A case study often splits this: (i) the equations or AX=BAX = B; (ii) ∣A∣|A| and whether A−1A^{-1} exists; (iii) A−1A^{-1} or the solution.

From the story to the solution

AX=B  ⇒  X=A−1BAX = B \;\Rightarrow\; X = A^{-1}B

Worked example

Ravi pays 120 rupees for 1 notebook, 1 pen and 1 geometry box. Sita pays 250 rupees for 2 notebooks, 3 pens and 1 box. Ali pays 250 rupees for 1 notebook, 2 pens and 3 boxes. Using the matrix method, find the price of each item.
Practise this conceptself-check · 2 quick reps

The same idea in a real exam question:

CBSE Class 12 · 2025 · 65/5/1 · Q33Moderate

Example 4 · Determinants · Solving System of Linear Equations

A furniture workshop produces three types of furniture – chairs, tables and beds each day. On a particular day the total number of furniture pieces produced is 45. It was also found that production of beds exceeds that of chairs by 8, while the total production of beds and chairs together is twice the production of tables. Determine the units produced of each type of furniture, using matrix method.

Changing the order of the unknowns

Write every equation with xx, yy, zz in the same order. An equation like y−x=5y - x = 5 goes into AA as the row −1,1,0-1, 1, 0, not 1,−1,01, -1, 0.

Unknowns that are not defined

Begin with "Let the price of one pen be xx rupees". An answer of 30, 50, 40 with no statement of what xx, yy, zz are loses the mark for forming the equations.

No answer in words

End with the story's quantities and units: 15 pens, 2,000 rupees, 3 km/h. A bare column matrix is not the final answer.

Summary — formulas & gotchas at a glance

A revision cheat-sheet for the formulas and gotchas above. Click any concept name to jump back to its full explanation.

Formulas (4)

  • Consistent and inconsistent systems

    Test for a unique solution

    ∣A∣≠0  ⇒  X=A−1B is the unique solution of AX=B|A| \ne 0 \;\Rightarrow\; X = A^{-1}B \text{ is the unique solution of } AX = B
  • Solving AX = B by X = A⁻¹B

    Matrix method

    AX=B, ∣A∣≠0  ⇒  X=A−1B=1∣A∣(adj⁡A)BAX = B,\ |A| \ne 0 \;\Rightarrow\; X = A^{-1}B = \dfrac{1}{|A|}(\operatorname{adj} A)B
  • Using a given product AB = kI to solve a system

    Inverse from a product

    AB=kI, k≠0  ⇒  A−1=1kB,B−1=1kAAB = kI,\ k \ne 0 \;\Rightarrow\; A^{-1} = \dfrac{1}{k}B, \quad B^{-1} = \dfrac{1}{k}A
  • Word problems and case studies: forming AX = B

    From the story to the solution

    AX=B  ⇒  X=A−1BAX = B \;\Rightarrow\; X = A^{-1}B

Watch out for (10)

Test yourself on Determinants

20 past CBSE Class 12 questions from this chapter, timed at 30 minutes and marked the way the exam marks it. You see your score and every answer the moment you finish. Free to start.