PYQ Vault

HSC Maths · Matrices

Solving Linear Equations by Matrices

Writing a system of linear equations as AX = B, then solving it by the method of inversion (X = A⁻¹B) or by the method of reduction (row transformations on A and B together), including word problems.

Why this matters

38 questions, four of them from board papers, each a full written answer: three equations by the method of reduction (2020, 2024), by the method of inversion (2022), and a word problem on three numbers to be found by the matrix method (2025). The textbook rows are Exercise 2.3, its solved examples and Part II of Miscellaneous Exercise 2(B), with many problems on costs, numbers and investments.

Concept 1 of 3: The method of inversion: X = A⁻¹B

A system of linear equations is one matrix equation in disguise: the coefficients make a square matrix A, the unknowns a column X, and the right-hand numbers a column B. If A has an inverse, multiply both sides by A⁻¹ on the left and the column of unknowns appears on its own.

Definition

  • Write the equations with the unknowns in the same order, then AX=BAX = B: AA the matrix of coefficients, XX the column of variables, BB the column of constants.
  • For three equations in three variables, AA is 3 by 3, XX and BB are 3 by 1.
  • Find ∣A∣|A|; if ∣A∣≠0|A| \neq 0, A−1A^{-1} exists (by the adjoint method or by transformations).
  • Pre-multiply by A−1A^{-1}: A−1AX=A−1BA^{-1}AX = A^{-1}B, so X=A−1BX = A^{-1}B.
  • Multiply out, then 'by equality of matrices' write xx, yy, zz.

Method of inversion

AX=B  ⇒  X=A−1B(∣A∣≠0)AX = B \;\Rightarrow\; X = A^{-1}B \quad (|A| \neq 0)
  • AAmatrix of coefficients of the variables
  • XXcolumn matrix of the variables
  • BBcolumn matrix of the constants

Worked example

Solve 3x+2y=73x + 2y = 7 and x+y=3x + y = 3 by the method of inversion.
Practise this conceptself-check · 3 quick reps

The same idea in a real exam question:

Maharashtra HSC Class 12 · 2022 · Q. 28Moderate

Example 1 · Matrices · Solution of Linear Equations using Matrices

Solve the following system of equations by the method of inversion: x−y+z=4x - y + z = 4, 2x+y−3z=02x + y - 3z = 0, x+y+z=2x + y + z = 2.

Writing X = BA⁻¹

BB is a column matrix, so BA−1BA^{-1} cannot even be multiplied. Pre-multiply: X=A−1BX = A^{-1}B.

Stopping at the column matrix

End with 'by equality of matrices, x=…x = \ldots, y=…y = \ldots, z=…z = \ldots'. A column of numbers is not yet the answer to 'solve'.

Concept 2 of 3: The method of reduction

Here you never find an inverse. Instead you use row transformations to clear the coefficients below the diagonal, doing exactly the same to the column of constants. The last equation then has one unknown, the one above it two, and you climb back up, finding one unknown at a time.

Definition

  • Write the system as AX=BAX = B.
  • Apply row transformations to AA to make it upper triangular (or lower triangular, or diagonal).
  • Apply each transformation to BB at the same time; XX is untouched.
  • Rewrite the result as equations and solve from the last one upwards.
  • Check the answer in all the original equations.

Method of reduction

AX=B →same row transformations on A and B [abc0ef00i]X=B′AX = B \ \xrightarrow{\text{same row transformations on } A \text{ and } B}\ \begin{bmatrix} a & b & c \\ 0 & e & f \\ 0 & 0 & i \end{bmatrix}X = B'

Worked example

Solve by the method of reduction: x+y+z=3x + y + z = 3, 2x−y+z=22x - y + z = 2, x+2y−z=2x + 2y - z = 2.
Practise this conceptself-check · 2 quick reps

The same idea in a real exam question:

Maharashtra HSC Class 12 · 2024 · Q. 27Moderate

Example 2 · Matrices · Solution of Linear Equations using Matrices

Solve the following system of equations by the method of reduction: x+y+z=6x + y + z = 6, y+3z=11y + 3z = 11, x+z=2yx + z = 2y.

Transforming A but not B

Every row transformation must be done to the column of constants too. If BB is left behind, the equations you read off are false.

Using a column transformation

A column move on AA mixes up the variables, so the method of reduction uses row transformations only, as the textbook does.

Concept 3 of 3: Word problems: forming the equations

In a word problem most of the marks are for turning sentences into equations. Name the unknowns, turn each sentence into one equation, put the equations in standard form, and only then use the matrix method the question asks for. Finish by answering the question in words, with units.

Definition

  • Start with 'Let the numbers (or costs) be xx, yy, zz'.
  • One sentence gives one equation. 'The sum of the first and third is double the second' gives x+z=2yx + z = 2y.
  • Standard form: all variables on the left in the order x,y,zx, y, z, the constant on the right, 0 for a missing variable.
  • Solve by inversion or by reduction, whichever the question names; if it says only 'using matrices', either is fine.
  • State the answer in words, with units such as Rs, and check it against every sentence.

Plan for a word problem

sentences→equations→AX=B→X\text{sentences} \to \text{equations} \to AX = B \to X

Worked example

The sum of three numbers is 9. The second number is 1 more than the first, and the third number is twice the first. Find the numbers using matrices.
Practise this conceptself-check · 2 quick reps

The same idea in a real exam question:

Maharashtra HSC Class 12 · 2025 · Q. 28Moderate

Example 3 · Matrices · Solution of Linear Equations using Matrices

The sum of three numbers is 2. If twice of the second number is added to the sum of first and third number we get 0. Adding five times the first number to twice the sum of second and third number we get 7. Find the numbers using matrix method.

Leaving an equation out of standard form

An equation like x=3y−zx = 3y - z must become x−3y+z=0x - 3y + z = 0 before it goes into AA and BB. Putting it in as it stands puts wrong numbers in the matrix.

No 'Let' line and no final sentence

Say what xx, yy and zz stand for at the start, and end with a sentence that answers the question with units, such as 'a pen costs Rs 7'.

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 (3)

  • The method of inversion: X = A⁻¹B

    Method of inversion

    AX=B  ⇒  X=A−1B(∣A∣≠0)AX = B \;\Rightarrow\; X = A^{-1}B \quad (|A| \neq 0)
  • The method of reduction

    Method of reduction

    AX=B →same row transformations on A and B [abc0ef00i]X=B′AX = B \ \xrightarrow{\text{same row transformations on } A \text{ and } B}\ \begin{bmatrix} a & b & c \\ 0 & e & f \\ 0 & 0 & i \end{bmatrix}X = B'
  • Word problems: forming the equations

    Plan for a word problem

    sentences→equations→AX=B→X\text{sentences} \to \text{equations} \to AX = B \to X

Watch out for (6)

Test yourself on Matrices

10 past MH HSC 12 questions from this chapter, timed at 15 minutes and marked the way the exam marks it. You see your score and every answer the moment you finish. Free to start.

Take the Matrices chapter test