Skip to content
MathsCBSE Class 12 · Determinants

Solving Linear Equations by the Matrix Method (X = A⁻¹B), Class 12

Updated 15 October 2026 · Fact-checked

Write the system as AX = B, with A the coefficient matrix. If |A| ≠ 0, the system has the unique solution X = A⁻¹B = (1/|A|)(adj A)B. If |A| = 0, compute (adj A)B: if it is not zero the system is inconsistent; if it is zero, the system has no solution or infinitely many.

Always find |A| first: non-zero means one answer X = A⁻¹B; zero means check (adj A)B to decide between no solution and infinitely many.

Illustration drawn for QuestionBuddy.

Understand Solving Linear Equations by Matrix Method

A system such as

can be written as one matrix equation , where holds the coefficients (each row is one equation, each column one variable), and .

Unique solution. If , exists. Multiply on the left by : , so
.
The system is then consistent with exactly one solution. This is the 5-mark question that appears in almost every board paper: find , the nine cofactors, , , and then .

**Consistency when ** (NCERT Section 4.6). A system is consistent if it has at least one solution and inconsistent if it has none. When , compute :

  • If , the system is inconsistent (no solution).
  • If , the system is either consistent with infinitely many solutions or inconsistent; you decide by looking at the equations.

For two variables you can see why: means the two lines are parallel; they either never meet or are the same line. The 2026-27 syllabus asks you to solve only systems with a unique solution, but consistency questions are asked 'by examples'.

The product trick. Some questions give a second matrix and ask you to find first. If for a number , then with no cofactor work. Read carefully whether the system's coefficient matrix is , or : if the equations' coefficients appear as the columns of a given matrix, the coefficient matrix is its transpose.

Word problems. Choose variables for the unknown prices, amounts or rates, write one equation per sentence of information, and then use the matrix method. Finish with a sentence answering the question (for example, 'A pen costs Rs 10').

Keep the order: , never (which is not even defined for a column ). Cramer's rule is not in the syllabus, so use the inverse.

Solving Linear Equations by Matrix Method: formulas to remember

Matrix form
Row i of A holds the coefficients of equation i; B holds the constants.
Unique solution
Multiply by on the left.
Inconsistent
No solution.
Further check needed
Infinitely many solutions or none; inspect the equations.
Product trick
Saves finding cofactors.

How to solve Solving Linear Equations by Matrix Method questions

The standard 5-mark layout for solving a system by the matrix method.

  1. 1Arrange each equation with the variables in the same order () and constants on the right; put 0 for a missing variable.
  2. 2Write , and , and the statement .
  3. 3Find . If it is non-zero, write 'A is non-singular, so exists and the system has a unique solution'.
  4. 4Find all nine cofactors with signs and write (transpose of the cofactor matrix).
  5. 5Write , then , multiplying by row by row before dividing by .
  6. 6Read off , , and substitute in one original equation to check.
  7. 7If , compute and state the conclusion about consistency.

Solving Linear Equations by Matrix Method in real life

Each concept, met in an everyday situation. Read the situation, try the problem, then check the solution. The one-line hook is what to remember.

Unique solution of a 2 × 2 system

Suppose a small cinema keeps no price list but remembers two days' sales: on Monday it sold 3 adult and 2 child tickets for Rs 630, and on Tuesday 2 adult and 5 child tickets for Rs 750.

Use the matrix method to find the price of an adult ticket and a child ticket.

Try it first, then show the solutionSolution
  1. Let the prices be and : , . So , .
  2. ; .
  3. .
  4. Check: and .

Answer: Adult ticket Rs 150, child ticket Rs 90.

Memory hook: Two days of sales, one matrix inverse, two prices.

Inconsistent system

Imagine two shop assistants reporting the same sale. One says 'a pen and a notebook together cost Rs 50'; the other says 'two pens and two notebooks cost Rs 110'.

Use the matrix method to decide whether both statements can be true.

Try it first, then show the solutionSolution
  1. , : , .
  2. , so .
  3. So the system is inconsistent: no prices satisfy both statements.
  4. Indeed, the first statement implies two pens and two notebooks cost Rs 100, not Rs 110.

Answer: The system is inconsistent, so one assistant has made a mistake.

Memory hook: |A| = 0 and (adj A)B ≠ O: the stories contradict each other.

Tricks to remember Solving Linear Equations by Matrix Method

Short memory aids. Say each one aloud once, then use it on a question the same day.

  • Inverse on the left

    becomes : the inverse always stands in front of B.

    Use it when: Avoiding the illegal product .

  • Zero determinant, check adj A times B

    : look at . Non-zero means no solution; zero means look closer.

    Use it when: Consistency questions.

  • Multiply by adj first, divide last

    Compute with whole numbers, then divide by at the end; fractions appear only once.

    Use it when: Keeping arithmetic clean in 5-mark questions.

  • If AC = kI, C is almost the inverse

    A product equal to hands you for free.

    Use it when: 'Use the product to solve the system' questions.

Solving Linear Equations by Matrix Method: solved examples

Ordered from board level to HOTS. Try each one before you open the solution.

Example 1: Two equations by the matrix method · 3 marks · Short answerBoard level

Solve by the matrix method: , .

Try it first, then show the solutionSolution
  1. , , ; . (1 mark)
  2. , so . (1 mark)
  3. . (1 mark)

Answer: ,

Example 2: An inconsistent pair · 2 marks · Very short answerBoard level

Examine the consistency of the system , .

Try it first, then show the solutionSolution
  1. , . (½ mark)
  2. . (½ mark)
  3. , so the system is inconsistent. (1 mark)

Answer: Inconsistent (no solution).

Example 3: Three equations in three unknowns · 5 marks · Long answerHarder board level

Solve by the matrix method: , , .

Try it first, then show the solutionSolution
  1. , . . (1 mark)
  2. Cofactors: , , ; , , ; , , . (1½ marks)
  3. , . (1 mark)
  4. . (1 mark)
  5. Check in the third equation: . (½ mark)

Answer: , ,

Example 4: Using a given product to find the inverse · 5 marks · Long answerHarder board level

Let and . Find and use it to solve , , .

Try it first, then show the solutionSolution
  1. Row 1 of A times the columns of C: . (1 mark)
  2. Rows 2 and 3 similarly give and , so . (1 mark)
  3. Hence and . (1 mark)
  4. The system has coefficient matrix A (rows , , ) and . (½ mark)
  5. . (1½ marks)

Answer: ; , ,

Example 5: Consistency depends on a parameter · 3 marks · Short answerHOTS / competency

For the system , , find the values of for which there is a unique solution, and show that for every other value the system is inconsistent.

Try it first, then show the solutionSolution
  1. . Unique solution when and . (1 mark)
  2. : , , : inconsistent. (1 mark)
  3. : , , : inconsistent. (1 mark)

Answer: Unique solution for ; inconsistent for and .

Example 6: Case study: three customers' bills · 4 marks · Case-basedHOTS / competency

Suppose a stationery shop sells pens, notebooks and school bags. Customer 1 buys 2 pens, 3 notebooks and 1 bag for Rs 340; customer 2 buys 5 pens, 2 notebooks and 1 bag for Rs 330; customer 3 buys 1 pen, 4 notebooks and 2 bags for Rs 570.
(i) Write the information as . (1 mark)
(ii) Find . (1 mark)
(iii) Find the price of each item using . (2 marks)

Try it first, then show the solutionSolution
  1. (i) . (1 mark)
  2. (ii) . (1 mark)
  3. (iii) ; . (1 mark)
  4. . (1 mark)

Answer: Pen Rs 10, notebook Rs 40, bag Rs 200.

Where students lose marks in Solving Linear Equations by Matrix Method

The slips examiners see most often, and what to write instead.

  • Mistake: Writing X = BA⁻¹

    B is a column matrix; is not defined, and order matters in matrix products.

    Wrong working

    .

    Right working

    .

    Do this: Pre-multiply both sides of by and write that step.

    Usually costs: The method mark.

  • Mistake: Placing coefficients in columns instead of rows

    Each equation must be a row of A.

    Wrong working

    , , with .

    Right working

    .

    Do this: Read the first equation across the first row.

    Usually costs: The whole question.

  • Mistake: Concluding 'infinitely many solutions' from |A| = 0 alone

    A zero determinant also allows inconsistency.

    Wrong working

    , so infinitely many solutions.

    Right working

    ; , so the system is inconsistent.

    Do this: Always compute when .

    Usually costs: 1 to 2 marks.

  • Mistake: Forgetting the transpose in adj A

    Using the cofactor matrix instead of the adjoint gives a wrong and wrong solutions.

    Wrong working

    .

    Right working

    .

    Do this: Substitute your answer back into one equation; a wrong adjoint usually fails the check.

    Usually costs: 2 to 3 marks.

Exam tips

  • A 5-mark 'solve by the matrix method' question appeared in the 2023, 2024, 2025 and 2026 board papers; practise the full layout until it takes under 10 minutes.
  • Always state ', so exists' before using the inverse; it is a marked step.
  • If a question gives a product of matrices, compute it first: it usually equals and gives directly.
  • Watch whether the system's coefficient matrix is the given matrix or its transpose.
  • End with a clear statement, such as ', , ', or a sentence for word problems.

Practice questions on Solving Linear Equations by Matrix Method

Write each answer on paper first. Open the hint only if you are stuck, and the answer only when you have finished.

  1. Q1 · 1 mark · MCQBoard level

    If , the system has:
    (a) no solution
    (b) a unique solution
    (c) infinitely many solutions
    (d) either no solution or infinitely many

    Hint

    Does exist?

    Answer

    (b) a unique solution, .

  2. Q2 · 1 mark · MCQBoard level

    If and , the system is:
    (a) consistent with a unique solution
    (b) consistent with infinitely many solutions
    (c) inconsistent
    (d) cannot be decided

    Hint

    Recall the consistency test.

    Answer

    (c) inconsistent.

  3. Q3 · 3 marks · Short answerBoard level

    Solve by the matrix method: , .

    Hint

    .

    Answer

    , , . : , .

  4. Q4 · 2 marks · Very short answerHarder board level

    Examine the consistency of , .

    Hint

    ; compute , then look at the equations.

    Answer

    ; , . The second equation is twice the first, so the system is consistent with infinitely many solutions ().

  5. Q5 · 1 mark · Assertion-reasonHarder board level

    Assertion (A): The system , has no solution.
    Reason (R): The determinant of its coefficient matrix is zero.
    (a) Both A and R are true and R is the correct explanation of A.
    (b) Both A and R are true but R is not the correct explanation of A.
    (c) A is true but R is false.
    (d) A is false but R is true.

    Hint

    A zero determinant alone allows infinitely many solutions too.

    Answer

    (b). Both are true, but alone does not decide between no solution and infinitely many; A follows from .

  6. Q6 · 5 marks · Long answerHarder board level

    Solve by the matrix method: , , .

    Hint

    .

    Answer

    . . : , , .

  7. Q7 · 4 marks · Case-basedHOTS / competency

    Case study: Suppose a family invests Rs 50,000 in three schemes paying 5%, 6% and 8% simple interest a year. The yearly interest is Rs 3300, and the amount in the 8% scheme is Rs 10,000 more than that in the 5% scheme.
    (i) Form the equations. (1 mark)
    (ii) Solve them by the matrix method. (3 marks)

    Hint

    Multiply the interest equation by 100 to clear decimals.

    Answer

    (i) , , . (ii) , , . . Rs 10,000 at 5%, Rs 20,000 at 6% and Rs 20,000 at 8% (interest ).

Test your recall

Answer in your head or on paper first, then open the card. Pulling an answer out of memory makes it stick far better than re-reading.

  1. 1.Write the solution of when .Show answer

    .

  2. 2.When is a system called consistent?Show answer

    When it has at least one solution.

  3. 3. and : conclusion?Show answer

    The system is inconsistent.

  4. 4.If , what is ?Show answer

    .

  5. 5.Is Cramer's rule in the 2026-27 syllabus?Show answer

    No; use the matrix (inverse) method.

  6. 6.What does each row of A represent?Show answer

    The coefficients of one equation.

Solving Linear Equations by Matrix Method: frequently asked questions

When can I use the matrix method?

When the coefficient matrix A is square and non-singular (|A| ≠ 0). Then the system has a unique solution X = A⁻¹B. The 2026-27 syllabus asks you to solve only such systems in two or three variables.

How do I check consistency when |A| = 0?

Compute (adj A)B. If it is not the zero matrix, the system is inconsistent. If it is the zero matrix, the system has either infinitely many solutions or none, and you decide by examining the equations.

Is Cramer's rule allowed?

Cramer's rule is not part of the CBSE 2026-27 syllabus. Board questions ask for the matrix method, so use X = A⁻¹B.

Which NCERT section covers the matrix method?

Section 4.6 (Applications of Determinants and Matrices) of Chapter 4, Determinants, in NCERT Mathematics Part I for Class 12.

How many marks is a matrix-method question worth?

Usually 5 marks in Section D, sometimes as a case study of 4 marks. Marks are given for |A|, cofactors, adj A, A⁻¹ and the final solution.