NEETJEE.guru
MathematicsJEE

Matrix Method: Solving Two Linear Equations in Two Variables

By Admin 13 November 2026 Updated 27 November 2026 8 min read 15 views
On this page· 13 sections
Overview

Source & scope. Class 12 Mathematics, Chapter 4 Determinants, Section 4.6.1, NCERT Example 16. Builds on: Matrix Method for Solving a System of Linear Equations. See also: Matrix Method: Three Variables (the analogous three-unknown case).

Source & scope. Class 12 Mathematics, Chapter 4 Determinants, Section 4.6.1, NCERT Example 16. Builds on: Matrix Method for Solving a System of Linear Equations. See also: Matrix Method: Three Variables (the analogous three-unknown case).

Solving two linear equations in two variables by the matrix method means writing the pair as AX = B for a 2×2 coefficient matrix A, then computing the unique solution X = A⁻¹B. This article works through NCERT's Example 16 in full, showing every determinant and inverse step.

At a glance

  • System:
  • Coefficient matrix , with .
  • Since |A| ≠ 0, A is non-singular and the system has a unique solution.
  • , obtained by swapping diagonal entries and negating off-diagonal entries of a 2×2 matrix.
  • Final solution:

Learning objectives

  • Set up a 2×2 coefficient matrix A, unknown column X, and constant column B from a given pair of linear equations.
  • Compute the 2×2 determinant and confirm non-singularity.
  • Apply the 2×2 inverse shortcut A⁻¹ = (1/|A|)[[d, −b], [−c, a]] for A = [[a, b], [c, d]].
  • Compute X = A⁻¹B to obtain the unique numerical solution.

Prerequisite knowledge

The reader should already know the general matrix-method formula X = A⁻¹B (see Matrix Method for Solving a System of Linear Equations) and the shortcut for inverting a 2×2 matrix directly from its entries.

Core explanation

Setting up the matrix equation

NCERT's Example 16 asks to solve the system:

2x + 5y = 1 3x + 2y = 7

by the matrix method. Writing this as AX = B:

Step 1 — check that A is non-singular

|A| = 2(2) − 5(3) = 4 − 15 = −11.

Since |A| = −11 ≠ 0, the matrix A is non-singular, so A⁻¹ exists and the system has a unique solution (Case I of the matrix method).

Step 2 — find A⁻¹

For a 2×2 matrix A = [[a, b], [c, d]], the inverse is A⁻¹ = (1/|A|)[[d, −b], [−c, a]] — the diagonal entries are swapped, the off-diagonal entries are negated, and the whole matrix is scaled by 1/|A|. Applying this to A = [[2, 5], [3, 2]]:

Step 3 — compute X = A⁻¹B

Multiplying the matrix into the column:

  • First (top) entry: 2(1) − 5(7) = 2 − 35 = −33
  • Second (bottom) entry: −3(1) + 2(7) = −3 + 14 = 11

So the product before scaling is [−33, 11]ᵗ, and:

X = (1/−11)[−33, 11]ᵗ = [(−33)/(−11), 11/(−11)]ᵗ = [3, −1]ᵗ.

Step 4 — read off the solution

Comparing X = [x, y]ᵗ = [3, −1]ᵗ gives:

Check. Substituting back: 2(3) + 5(−1) = 6 − 5 = 1 ✓; 3(3) + 2(−1) = 9 − 2 = 7 ✓. Both original equations are satisfied, confirming the solution.

Key terms

  • 2×2 coefficient matrix — the matrix A = [[a, b], [c, d]] built from the x- and y-coefficients of a two-equation, two-unknown system.
  • 2×2 inverse shortcut — A⁻¹ = (1/|A|)[[d, −b], [−c, a]] for A = [[a, b], [c, d]], avoiding the full cofactor/adjoint machinery needed for larger matrices.
  • — the matrix-method formula that, once A⁻¹ is known, produces the solution column directly.

Diagram / figure guidance

A worked flow diagram: box 1 shows the original two equations; box 2 shows them rewritten as AX = B with A, X, B labelled; box 3 shows the 2×2 determinant calculation; box 4 shows the "swap-and-negate" rule turning A into A⁻¹; box 5 shows the final matrix multiplication A⁻¹B giving [3, −1]ᵗ.

Worked example

Solve 2x + 5y = 1 and 3x + 2y = 7 by the matrix method.

This is NCERT's Example 16, worked in full above: A = [[2,5],[3,2]], |A| = −11 ≠ 0, A⁻¹ = (1/−11)[[2,−5],[−3,2]], and X = A⁻¹B = [3, −1]ᵗ, giving , which is readily verified by direct substitution into both original equations.

Common misconceptions

  • "Once |A| is computed, the problem is finished." Computing |A| only confirms that a unique solution exists; the actual values of x and y still require finding A⁻¹ and multiplying it into B.
  • "The 2×2 inverse shortcut swaps rows, not entries." The shortcut swaps the two diagonal entries (a and d) and negates the two off-diagonal entries (b and c) — it is not a row operation.
  • "Forgetting the 1/|A| scaling factor still gives the right answer up to a constant." Omitting the 1/|A| factor changes every entry of the final answer by a factor of |A|, producing a wrong numerical solution, not just a "scaled" correct one.
  • "A negative determinant means there's no solution." A negative determinant is still a nonzero determinant; |A| = −11 ≠ 0 still means A is non-singular and the system has a perfectly valid unique solution.

Exam application (JEE)

Two-variable matrix-method problems are a staple of JEE-level determinant questions, often appearing as the simplest member of a larger family of matrix-method questions (the three-variable version is covered in the sibling article). The most common slip is an arithmetic error in the 2×2 inverse step — mixing up which entries get swapped versus negated — so working the "swap diagonal, negate off-diagonal, divide by |A|" rule mechanically, as done here, avoids that error.

Frequently asked questions

  • How do you solve two linear equations using the matrix method? Write the equations as AX = B with A the 2×2 coefficient matrix, check |A| ≠ 0, find A⁻¹ using the swap-and-negate shortcut, then compute X = A⁻¹B.
  • What is the solution to 2x + 5y = 1 and 3x + 2y = 7 by the matrix method? x = 3 and y = −1, obtained from X = A⁻¹B with A = [[2,5],[3,2]] and B = [1,7]ᵗ.
  • What is the shortcut for inverting a 2×2 matrix? For A = [[a,b],[c,d]], A⁻¹ = (1/|A|)[[d,−b],[−c,a]] — swap the diagonal entries and negate the off-diagonal entries, then divide by the determinant.
  • How can I check a matrix-method answer is correct? Substitute the found values of x and y back into both original equations and confirm both are satisfied exactly.
  • Does a negative determinant mean the matrix method fails? No — the method only fails when the determinant equals zero; any nonzero determinant, positive or negative, means A⁻¹ exists.

Practice questions (original practice questions)

  1. Solve x + 2y = 4, 3x + y = 7 by the matrix method. The value of x is:
    • (a) 1
    • (b) 2
    • (c) 3
    • (d) 4
    • Answer: (b) — A=[[1,2],[3,1]], |A|=1−6=−5; A⁻¹=(1/−5)[[1,−2],[−3,1]]; X=A⁻¹[4,7]ᵗ=(1/−5)[4−14,−12+7]ᵗ=(1/−5)[−10,−5]ᵗ=[2,1]ᵗ, so x=2.
  2. For the system AX = B with A = [[1, 2], [3, 1]], the inverse A⁻¹ equals:
    • (a) (1/−5)[[1,−2],[−3,1]]
    • (b) (1/5)[[1,2],[3,1]]
    • (c) (1/−5)[[1,2],[−3,1]]
    • (d) (1/−5)[[−1,2],[3,−1]]
    • Answer: (a) — Swap diagonal entries (1,1), negate off-diagonal (2,3), divide by |A|=−5.
  3. If |A| = 0 for a 2×2 coefficient matrix, the matrix method X = A⁻¹B:
    • (a) Still works normally
    • (b) Gives x = y = 0
    • (c) Cannot be applied, since A⁻¹ does not exist
    • (d) Gives infinitely many solutions automatically
    • Answer: (c) — A⁻¹ requires |A| ≠ 0; when |A| = 0 the formula is undefined.
  4. For 2x + 5y = 1, 3x + 2y = 7, verifying x = 3, y = −1 in the second equation gives:
    • (a) 3(3) + 2(−1) = 7
    • (b) 3(3) + 2(−1) = 1
    • (c) 3(3) − 2(−1) = 7
    • (d) 2(3) + 5(−1) = 7
    • Answer: (a) — 9 − 2 = 7, confirming the solution satisfies the second equation.
  5. In A⁻¹ = (1/|A|)[[d,−b],[−c,a]] for A = [[a,b],[c,d]], the entry that replaces position (1,1) is:
    • (a) a
    • (b) b
    • (c) c
    • (d) d
    • Answer: (d) — The diagonal entries a and d are swapped, so d moves into the (1,1) position.

Quick revision

  • System: 2x+5y=1, 3x+2y=7 → A=[[2,5],[3,2]], B=[1,7]ᵗ.
  • |A| = 2(2)−5(3) = −11 ≠ 0 → unique solution exists.
  • A⁻¹ = (1/−11)[[2,−5],[−3,2]] via the swap-diagonal, negate-off-diagonal shortcut.
  • X = A⁻¹B = [3, −1]ᵗ → x = 3, y = −1.
  • Always verify by substituting back into both original equations.

Related articles

NCERTMathematicsClass 12
Rate this article
No ratings yetSign in to rate

0 Comments

Sign in to join the discussion.